@import url('https://fonts.googleapis.com/css2?family=Alex+Brush&family=Allura&family=Caveat:wght@400;500;600&family=Great+Vibes&family=DM+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  --paper: #F8F3EA;
  --ink: #002248;
  --muted: #78716c;
  --gold: #f7b518;
  --gold-light: #fac527;
  --gold-dark: #df9210;
  --blush: #E8D5C0;
  --rosegold: #D9A48F;
  --line: rgba(0, 34, 72, 0.14);
  --white: #ffffff;
  --glass-bg: rgba(255, 255, 255, 0.82);
  --serif: 'Playfair Display', Georgia, serif;
}

* { box-sizing: border-box; }

html {
  background: #F6EEE3;
}

body {
  margin: 0;
  background: transparent;
  color: var(--ink);
  font: 14px/1.6 'DM Sans', Arial, sans-serif;
  min-height: 100vh;
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
}

header, main, footer, dialog {
  position: relative;
  z-index: 1;
}

/* Header Bar */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 4%;
  border-bottom: 1px solid rgba(239,181,27, 0.18);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 20px rgba(239,181,27, 0.05);
}

.logo {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  color: #06264a;
  font: 23px var(--serif);
  font-weight: 700;
  letter-spacing: -0.3px;
}
.logo b {
  font: 10px 'DM Sans', sans-serif;
  color: var(--gold-dark);
  border: 1px solid rgba(239,181,27, 0.35);
  background: rgba(239,181,27, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 4px;
}
.logo small {
  display: block;
  font: 8px 'DM Sans', sans-serif;
  letter-spacing: 2.5px;
  margin-top: 3px;
  color: #78716c;
}
.diamond { font-size: 32px; color: var(--gold); }

.top-nav-menu { display: flex; align-items: center; gap: 10px; }
.nav-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(239,181,27, 0.22);
  border-radius: 20px;
  padding: 8px 18px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #44403c;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}
.nav-pill-btn:hover {
  background: #ffffff;
  border-color: var(--gold);
  box-shadow: 0 4px 14px rgba(239,181,27, 0.2);
  transform: translateY(-1px);
}
.nav-pill-btn.active {
  background: #ffffff;
  border-color: var(--gold);
  color: #06264a;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(239,181,27, 0.15);
}
.nav-icon { width: 15px; height: 15px; stroke: var(--gold); flex-shrink: 0; }
.user-avatar-badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  cursor: pointer;
  margin-left: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.user-avatar-badge svg { width: 100%; height: 100%; }

/* Main Container */
main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 4% 60px;
}

.page-top, .steps {
  display: none !important;
}

/* Upload Section */
.upload-section { max-width: 620px; margin: 0; position: relative; }

/* Upload stays within the viewport without document scrolling. */
html:has(body.step-1), body.step-1 {
  overflow: hidden !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-height: 100vh !important;
  max-height: 100dvh !important;
  margin: 0 !important;
}

body.step-1 {
  position: fixed;
  inset: 0;
  width: 100%;
}

body.step-1 main {
  padding: 16px 4% 16px;
  height: calc(100dvh - 66px);
  max-height: calc(100dvh - 66px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

body.step-1 .upload-section {
  max-width: 620px;
  margin: 0;
  position: relative;
  max-height: 100%;
}

body.step-1 .step-header {
  margin-bottom: clamp(8px, 1.8vh, 18px);
}

body.step-1 .upload-left-col {
  gap: clamp(8px, 1.8vh, 18px);
}

body.step-1 .upload-card-container {
  padding: clamp(18px, 3vh, 36px) clamp(16px, 2.5vw, 28px) clamp(14px, 2.5vh, 26px);
}

body.step-1 .cloud-upload-icon {
  width: clamp(42px, 5.5vh, 62px) !important;
  height: clamp(42px, 5.5vh, 62px) !important;
  margin: 0 auto clamp(4px, 1vh, 12px) !important;
}

body.step-1 .upload-supports-text {
  margin: clamp(8px, 1.5vh, 18px) 0 clamp(10px, 1.8vh, 20px);
}

.step-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.step-title {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.step-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd34e 0%, #e5a10b 100%);
  color: #06264a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  font-family: 'DM Sans', sans-serif;
  box-shadow: 0 6px 18px rgba(239,181,27, 0.35);
  flex-shrink: 0;
  margin-top: 2px;
}

.step-title h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 38px;
  font-weight: 700;
  color: #121826;
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.step-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: #6b7280;
  margin: 4px 0 0 0;
  font-weight: 400;
}

/* USER SPECIFIED TAGLINE CSS */
.tagline { display: none !important;
  position: static;          /* remove any absolute/fixed/top/left/transform */
  transform: none;
  margin: 4px 0 20px 60px;   /* aligns under the "Upload" text */
  font-family: 'Caveat', cursive;
  font-size: 1.5rem;
  line-height: 1.2;
  color: #B8893A;
}

/* the arrow was breaking because the script font has no proper → glyph */
.tagline-arrow { display: none !important;
  font-family: 'DM Sans', Arial, sans-serif;
  margin: 0 8px;
  font-size: 1.2rem;
}

@media (max-width: 768px) {
  .tagline { display: none !important; margin-left: 0; font-size: 1.25rem; }
}

.upload-left-col {
  max-width: 620px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Upload Dropzone Card Container */
.upload-card-container {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px dashed #efb51b;
  border-radius: 24px;
  padding: 38px 28px 28px;
  text-align: center;
  box-shadow: 0 16px 48px rgba(196, 153, 56, 0.12), 0 2px 10px rgba(0, 0, 0, 0.02);
  position: relative;
  transition: all 0.25s ease;
  cursor: pointer;
}
.upload-card-container:hover, .upload-card-container.dragover {
  border-color: #a27b23;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 20px 56px rgba(196, 153, 56, 0.22);
  transform: translateY(-2px);
}

/* Cloud Upload Icon Constraints */
.cloud-upload-icon {
  width: 62px !important;
  height: 62px !important;
  max-width: 62px !important;
  max-height: 62px !important;
  margin: 0 auto 12px !important;
  display: block !important;
  filter: drop-shadow(0 4px 10px rgba(239,181,27, 0.25));
}

.upload-card-heading {
  font-family: 'DM Sans', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #121826;
  margin: 0 0 4px;
}
.upload-or-divider {
  font-size: 13px;
  color: #9ca3af;
  display: block;
  margin: 4px 0 14px;
  font-weight: 400;
}

.browse-files-btn {
  background: linear-gradient(135deg, #ffd34e 0%, #e5a10b 100%);
  color: #06264a;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 36px;
  border-radius: 22px;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(239,181,27, 0.38);
  transition: all 0.2s ease;
  display: inline-block;
}
.browse-files-btn:hover {
  background: linear-gradient(135deg, #b79039 0%, #9a781f 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(239,181,27, 0.48);
  color: #ffffff;
}

.upload-supports-text {
  font-size: 12px;
  color: #6b7280;
  margin: 20px 0 22px;
  font-weight: 400;
}

.file-format-badges { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.format-badge {
  cursor: pointer;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(226, 213, 196, 0.8);
  border-radius: 12px;
  padding: 8px 6px 6px;
  width: 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.02);
  transition: all 0.15s ease;
}
.format-badge:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(239,181,27, 0.2); }
.format-badge svg { width: 28px; height: 28px; display: block; }
.format-badge span { font-size: 9px; font-weight: 700; color: #374151; letter-spacing: 0.2px; font-family: 'DM Sans', sans-serif; }

.actions { display: flex; gap: 14px; margin-top: 24px; }
.actions button {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 22px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.actions button:not(.primary) {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--gold);
  color: #06264a;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}
.actions button:not(.primary):hover {
  background: #ffffff;
  border-color: #a27b23;
  box-shadow: 0 6px 16px rgba(239,181,27, 0.25);
  transform: translateY(-1px);
}

.actions button.primary {
  background: linear-gradient(135deg, #ffd34e 0%, #e5a10b 100%);
  color: #06264a;
  border: none;
  box-shadow: 0 6px 20px rgba(239,181,27, 0.38);
}
.actions button.primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #b79039 0%, #9a781f 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(239,181,27, 0.48);
}
.actions button.primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

#aiSetup { display: none !important; }

@media (max-width: 640px) {
  .step-title h1 { font-size: 28px; }
  .file-format-badges { gap: 6px; }
  .format-badge {
  cursor: pointer; width: 48px; padding: 6px 4px; }
  .actions { flex-direction: column; }
}
.bg-slider {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: visible;
}

.bg-slider::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(246, 238, 227, 0.95) 0%, rgba(246, 238, 227, 0.65) 35%, rgba(246, 238, 227, 0) 48%);
}

.bg-slider::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100px;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, #F6EEE3 0%, rgba(246, 238, 227, 0.92) 65%, rgba(246, 238, 227, 0) 100%);
}

.bg-slide {
  position: absolute;
  inset: 0;
  clip-path: none;
  background-repeat: no-repeat;
  background-position: 92% top;
  background-size: cover;
  opacity: 0;
  transition: opacity 1.8s ease-in-out;
}

.bg-slide.active {
  opacity: 1;
}

.bg-tagline-layer {
  display: block !important;
  position: absolute;
  right: 25%;
  top: 110px;
  width: auto;
  max-width: 320px;
  z-index: 2;
  font-family: 'Alex Brush', 'Great Vibes', 'Allura', 'Caveat', cursive;
  font-weight: 400;
  font-size: clamp(24px, 2.3vw, 36px);
  color: #2b2f3a;
  line-height: 1.25;
  letter-spacing: 0.5px;
  transform: rotate(-6deg);
  text-align: center;
  pointer-events: none;
  overflow: visible;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.9);
}

@media (max-width: 1280px) {
  .bg-tagline-layer {
    right: 23%;
    top: 105px;
    font-size: clamp(22px, 2.1vw, 32px);
  }
}

@media (max-width: 1024px) {
  .bg-tagline-layer {
    right: 18%;
    top: 100px;
    font-size: clamp(20px, 2vw, 28px);
  }
}

@media (max-width: 768px) {
  .bg-tagline-layer {
    display: none !important;
  }
  .bg-slide {
    background-position: center bottom;
    background-size: cover;
  }
  .bg-slider::after {
    background: linear-gradient(180deg, rgba(246, 238, 227, 0.85) 0%, rgba(246, 238, 227, 0.45) 50%, rgba(246, 238, 227, 0) 100%);
  }
}
/* Panel & Uploaded File Thumbnails Styling */
.panel {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(226, 213, 196, 0.8);
  border-radius: 20px;
  padding: 22px 24px;
  box-shadow: 0 12px 36px rgba(196, 153, 56, 0.08);
  margin-top: 16px;
}

.panel h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #06264a;
  margin: 0 0 14px 0;
}

.thumbs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.thumb {
  width: 96px;
  background: #ffffff;
  border: 1px solid rgba(239,181,27, 0.3);
  border-radius: 14px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.thumb:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(239,181,27, 0.2);
}

.thumb img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  background: #f8f5ee;
}

.thumb .brand-sample {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  background: #f4efe6;
  color: #b38d2a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

.thumb span {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 600;
  color: #44403c;
  margin-top: 6px;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

.thumb button {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  margin-top: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  width: 100%;
}

.thumb button:hover {
  background: #dc2626;
  color: #ffffff;
  border-color: #dc2626;
}

/* Sample Designs Row */
.samples-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.sample-card {
  width: 90px;
  height: 90px;
  border-radius: 14px;
  border: 1px solid rgba(226, 213, 196, 0.8);
  background: #ffffff;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.sample-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(239,181,27, 0.25);
}

.sample-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.library-view {
  width: min(100%, 980px);
  margin: 0 auto;
}
.library-heading { margin-bottom: 20px; }
.library-heading h1 {
  margin: 0;
  font: 600 30px/1.2 var(--serif);
}
.library-heading p {
  margin: 6px 0 0;
  color: var(--muted);
}
.enquiry-list { margin-top: 0; }
.library-empty {
  margin: 0;
  padding: 18px 0;
  color: var(--muted);
  text-align: center;
}
.enquiry-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.enquiry-row:last-child { border-bottom: 0; }
.design-library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
}
.design-library-item {
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.design-library-item img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 4px;
}
.design-library-item span {
  display: block;
  padding-top: 8px;
  font-weight: 600;
}
.sample-designs {
  margin-top: 16px;
}
.sample-designs p {
  margin: 0 0 8px;
  color: #44403c;
  font-size: 12px;
  font-weight: 600;
}
.sample-designs .samples-row { gap: 8px; }
.sample-designs .sample-card {
  width: clamp(62px, 8vw, 84px);
  height: clamp(62px, 8vw, 84px);
  padding: 0;
}
@media (max-height: 760px) and (min-width: 701px) {
  body.step-1 main {
    height: calc(100dvh - 66px);
    max-height: calc(100dvh - 66px);
    justify-content: center;
    overflow: hidden;
    padding-top: 20px;
    padding-bottom: 8px;
  }
  body.step-1 .upload-card-container { padding: 12px 16px 10px; }
  body.step-1 .upload-supports-text { margin: 6px 0 8px; }
  body.step-1 .format-badge { width: 52px; padding: 5px 4px 4px; gap: 3px; }
  body.step-1 .format-badge svg { width: 24px; height: 24px; }
  body.step-1 .actions { margin-top: 12px; }
  body.step-1 .sample-designs { margin-top: 8px; }
  body.step-1 .sample-designs .sample-card { width: 68px; height: 68px; }
}
@media (max-width: 700px) {
  header { height: 106px; }
  body.step-1 {
    height: 100vh !important;
    height: 100dvh !important;
  }
  body.step-1 main {
    height: calc(100dvh - 106px);
    max-height: calc(100dvh - 106px);
    overflow: hidden;
  }
  body.step-1 .actions {
    flex-direction: row;
    gap: 8px;
  }
  body.step-1 .actions button {
    flex: 1;
    min-width: 0;
    padding: 10px 6px;
    font-size: 12px;
  }
  body.step-1 .sample-designs .sample-card { width: 58px; height: 58px; }
}
/* Analyze & Detect AI Scanning UI */
.analyze-detect-card {
  max-width: 660px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(239,181,27, 0.35);
  border-radius: 28px;
  padding: 32px;
  box-shadow: 0 20px 60px rgba(196, 153, 56, 0.15), 0 2px 12px rgba(0,0,0,0.02);
  margin: 0 auto;
}

.analyze-detect-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.analyze-badge {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd34e 0%, #e5a10b 100%);
  color: #06264a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  font-family: 'DM Sans', sans-serif;
  box-shadow: 0 6px 18px rgba(239,181,27, 0.35);
  flex-shrink: 0;
}

.analyze-title-group h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 32px;
  font-weight: 700;
  color: #121826;
  margin: 0;
  line-height: 1.1;
}

.analyze-title-group p {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: #6b7280;
  margin: 4px 0 0 0;
}

.analyze-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 20px;
  align-items: center;
}

/* Scanner Image Card */
.scanner-card {
  position: relative;
  width: 100%;
  height: 270px;
  border-radius: 20px;
  overflow: hidden;
  background: #f8f3ea;
  border: 1px solid rgba(239,181,27, 0.3);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.scanner-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scanner-grid-overlay {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(90deg, rgba(239,181,27, 0.15) 1px, transparent 1px),
    linear-gradient(180deg, rgba(239,181,27, 0.15) 1px, transparent 1px);
  background-size: 20px 24px;
  pointer-events: none;
}

.scanner-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #efb51b, #ffffff, #efb51b, transparent);
  box-shadow: 0 0 14px #efb51b;
  animation: scanMove 2.2s infinite ease-in-out;
}

@keyframes scanMove {
  0% { top: 0%; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* Floating AI Badges */
.ai-tag-badge {
  position: absolute;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(239,181,27, 0.4);
  border-radius: 12px;
  padding: 5px 10px;
  font-family: 'DM Sans', sans-serif;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.ai-tag-badge.top-left { top: 16px; left: 12px; }
.ai-tag-badge.top-right { top: 60px; right: 12px; }
.ai-tag-badge.bottom-right { bottom: 16px; right: 12px; }

.ai-tag-icon {
  width: 18px;
  height: 18px;
  background: #fdf8ef;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--gold-dark);
}

.ai-tag-text strong {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: #06264a;
  line-height: 1.1;
}

.ai-tag-text span {
  font-size: 9px;
  color: #78716c;
}

/* Checklist */
.checklist-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(226, 213, 196, 0.7);
  border-radius: 12px;
  padding: 8px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #44403c;
  transition: all 0.3s ease;
}

.check-item.done {
  color: #15803d;
  background: rgba(240, 253, 244, 0.95);
  border-color: #86efac;
}

.check-item.active {
  color: #1d4ed8;
  background: rgba(239, 246, 255, 0.95);
  border-color: #93c5fd;
  font-weight: 600;
}

.check-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
}

.check-item.done .check-icon {
  background: #22c55e;
  color: #ffffff;
}

.check-item.active .check-icon {
  background: #3b82f6;
  color: #ffffff;
}

.check-item.pending .check-icon {
  background: #f3f4f6;
  color: #9ca3af;
  border: 1px solid #d1d5db;
}

/* Progress Track */
.progress-bar-wrapper {
  margin-top: 24px;
}

.progress-track {
  height: 10px;
  background: rgba(226, 213, 196, 0.5);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ffd34e 0%, #efb51b 50%, #fef08a 100%);
  border-radius: 8px;
  transition: width 0.4s ease;
  box-shadow: 0 0 10px rgba(239,181,27, 0.5);
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  color: #78716c;
}

@media (max-width: 640px) {
  .analyze-grid { grid-template-columns: 1fr; }
  .scanner-card { height: 220px; }
}
/* Review Specifications & Form Layout Styles */
.layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  align-items: start;
}

@media (max-width: 960px) {
  .layout {
    grid-template-columns: 1fr;
  }
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 16px;
}

.grid.three {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.section-title h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  color: #06264a;
  margin: 0;
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #06264a;
}

input[type="text"], input[type="number"], input[type="email"], select, textarea {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  padding: 10px 14px;
  border: 1px solid rgba(239,181,27, 0.35);
  border-radius: 10px;
  background: #ffffff;
  color: #06264a;
  transition: all 0.2s ease;
  width: 100%;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(239,181,27, 0.15);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(239,181,27, 0.12);
  color: #06264a;
  border: 1px solid rgba(239,181,27, 0.25);
  margin-top: 4px;
  width: fit-content;
}

.tag.warn {
  background: #fffbeeb0;
  color: #06264a;
  border-color: #fde68a;
}

.tag.none {
  background: #f3f4f6;
  color: #6b7280;
  border-color: #e5e7eb;
}

.field-meta {
  display: block;
  font-size: 10px;
  color: #78716c;
  margin-top: 2px;
}

p.help, p.muted {
  font-size: 12px;
  color: #6b7280;
  margin: 6px 0 12px;
  line-height: 1.4;
}

img.reference {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(239,181,27, 0.3);
  margin-bottom: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

label.confirm {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  background: #fdf8ef;
  border: 1px solid rgba(239,181,27, 0.3);
  padding: 14px 18px;
  border-radius: 14px;
  cursor: pointer;
  margin: 18px 0;
}

label.confirm input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
}
/* Step 3: Verify & Configure UI */
.verify-config-container {
  max-width: 900px;
  margin: 0 auto;
}

.verify-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(226, 213, 196, 0.8);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 16px 48px rgba(196, 153, 56, 0.1);
  margin-bottom: 20px;
}

.verify-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.verify-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd34e 0%, #e5a10b 100%);
  color: #06264a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  font-family: 'DM Sans', sans-serif;
  box-shadow: 0 6px 18px rgba(239,181,27, 0.3);
  flex-shrink: 0;
}

.verify-title-group h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 32px;
  font-weight: 700;
  color: #121826;
  margin: 0;
  line-height: 1.1;
}

.verify-title-group p {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: #6b7280;
  margin: 4px 0 0 0;
}

/* Top Layout: Image + Category/Metal */
.verify-top-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  margin-bottom: 20px;
}

.verify-image-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.verify-main-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(239,181,27, 0.3);
  background: #fdfaf3;
  box-shadow: 0 6px 20px rgba(0,0,0,0.04);
}

.verify-thumb-row {
  display: flex;
  gap: 8px;
}

.verify-thumb {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(239,181,27, 0.25);
  cursor: pointer;
  background: #ffffff;
}

.change-img-btn {
  background: #ffffff;
  border: 1px solid rgba(239,181,27, 0.4);
  color: #06264a;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.change-img-btn:hover {
  background: #fdf8ef;
  border-color: var(--gold);
}

/* Form Section Cards */
.verify-form-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.verify-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.verify-subcard {
  background: #ffffff;
  border: 1px solid rgba(226, 213, 196, 0.7);
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.02);
}

.verify-subcard-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #06264a;
  margin: 0 0 12px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.verify-field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
}

.verify-field-grid.full {
  grid-template-columns: 1fr;
}

.verify-field-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 4px;
  display: block;
}

.verify-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.verify-input-wrapper input, .verify-input-wrapper select {
  width: 100%;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 12px;
  border: 1px solid rgba(239,181,27, 0.3);
  border-radius: 8px;
  background: #fbf9f4;
  color: #06264a;
}

.verify-input-wrapper select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2306264a'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px;
  padding-right: 28px;
}

.verify-input-unit {
  position: absolute;
  right: 12px;
  font-size: 11px;
  color: #9ca3af;
  pointer-events: none;
}

/* Detail Rows */
.verify-detail-row {
  background: #ffffff;
  border: 1px solid rgba(226, 213, 196, 0.7);
  border-radius: 12px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.verify-detail-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #06264a;
}

.verify-detail-right {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: #4b5563;
}

/* Bottom Action Bar */
.verify-action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
}

.btn-draft {
  background: #ffffff;
  border: 1px solid rgba(239,181,27, 0.4);
  color: #06264a;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-draft:hover {
  background: #fdfaf3;
}

.btn-generate-primary {
  background: linear-gradient(135deg, #ffd34e 0%, #e5a10b 100%);
  color: #06264a;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(239,181,27, 0.35);
  transition: all 0.2s ease;
}

.btn-generate-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(239,181,27, 0.45);
}

@media (max-width: 768px) {
  .verify-top-grid { grid-template-columns: 1fr; }
  .verify-row-2 { grid-template-columns: 1fr; }
}
/* Soft Ringless Background for Steps 2 to 6 */
.bg-analyze {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 10%, rgba(255,240,205,.7), transparent 40%),
    radial-gradient(circle at 85% 90%, rgba(232,213,192,.6), transparent 45%),
    linear-gradient(135deg, #FBF6EE, #F1E4D0);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.bg-analyze.active {
  opacity: 1;
}

/* Progress Track with Diamond Marker */
.progress-track {
  height: 12px;
  background: rgba(226, 213, 196, 0.4);
  border-radius: 10px;
  overflow: visible;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #efb51b, #E8CF8A);
  border-radius: 10px;
  position: relative;
  box-shadow: 0 0 12px rgba(239,181,27, 0.4);
  transition: width 0.4s ease;
}

.progress-fill::after {
  content: '✦';
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  color: #ffffff;
  font-size: 14px;
  text-shadow: 0 0 8px #efb51b, 0 0 14px #ffffff;
}
/* Step 4: Branding Page UI */
.brand-container {
  max-width: 960px;
  margin: 0 auto;
}

.brand-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(226, 213, 196, 0.8);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 16px 48px rgba(196, 153, 56, 0.1);
  margin-bottom: 20px;
}

.brand-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.brand-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd34e 0%, #e5a10b 100%);
  color: #06264a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  font-family: 'DM Sans', sans-serif;
  box-shadow: 0 6px 18px rgba(239,181,27, 0.3);
  flex-shrink: 0;
}

.brand-title-group h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 32px;
  font-weight: 700;
  color: #121826;
  margin: 0;
  line-height: 1.1;
}

.brand-title-group p {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: #6b7280;
  margin: 4px 0 0 0;
}

.brand-main-grid {
  display: grid;
  grid-template-columns: 200px 1fr 280px;
  gap: 20px;
}

/* Left Nav Tabs */
.brand-nav-tabs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.brand-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #4b5563;
  background: #ffffff;
  border: 1px solid rgba(226, 213, 196, 0.6);
  cursor: pointer;
  transition: all 0.2s ease;
}

.brand-tab.active {
  background: linear-gradient(135deg, #efb51b 0%, #06264a 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(239,181,27, 0.25);
}

/* Center Form */
.brand-form-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.brand-input-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-input-group label {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #4b5563;
}

.brand-input-group input, .brand-input-group select, .brand-input-group textarea {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 9px 12px;
  border: 1px solid rgba(239,181,27, 0.35);
  border-radius: 10px;
  background: #fbf9f4;
  color: #06264a;
  width: 100%;
}

.brand-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Right Column: Logo & Templates */
.brand-right-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.brand-logo-box {
  background: #ffffff;
  border: 1px solid rgba(226, 213, 196, 0.8);
  border-radius: 16px;
  padding: 16px;
  text-align: center;
}

.brand-logo-box h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #06264a;
  margin: 0 0 12px 0;
  text-align: left;
}

.brand-logo-preview {
  height: 100px;
  border: 1px dashed rgba(239,181,27, 0.4);
  border-radius: 12px;
  background: #fcfbfa;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.brand-logo-preview img {
  max-height: 80px;
  max-width: 90%;
  object-fit: contain;
}

.brand-logo-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.btn-upload-logo {
  background: linear-gradient(135deg, #ffd34e 0%, #e5a10b 100%);
  color: #06264a;
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(239,181,27, 0.25);
}

.btn-remove-logo {
  background: #ffffff;
  border: 1px solid rgba(239,181,27, 0.3);
  color: #6b7280;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
}

/* Template Selector */
.brand-template-section h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #06264a;
  margin: 0 0 12px 0;
}

.brand-template-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.brand-template-card {
  border: 1px solid rgba(226, 213, 196, 0.8);
  border-radius: 10px;
  padding: 8px;
  text-align: center;
  cursor: pointer;
  background: #ffffff;
  transition: all 0.2s ease;
}

.brand-template-card.active {
  border: 2px solid #06264a;
  box-shadow: 0 4px 12px rgba(239,181,27, 0.2);
}

.brand-template-card span {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: #06264a;
  display: block;
  margin-top: 4px;
}

/* Save as company defaults button styling */
.save-defaults-btn {
  background: #ffffff;
  border: 1px solid rgba(239,181,27, 0.5);
  color: #06264a;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
  transition: all 0.2s ease;
}

.save-defaults-btn:hover {
  background: #fdf8ef;
  border-color: #06264a;
}

@media (max-width: 860px) {
  .brand-main-grid { grid-template-columns: 1fr; }
}
/* Floating Glass Toast Notification */
.toast-notification {
  position: fixed;
  top: 84px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(239,181,27, 0.4);
  border-radius: 999px;
  padding: 10px 22px 10px 14px;
  box-shadow: 0 10px 30px rgba(196, 153, 56, 0.2);
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: none;
  animation: toastSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast-notification.toast-out {
  animation: toastSlideOut 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast-notification.toast-error {
  border-color: rgba(239, 68, 68, 0.4);
  box-shadow: 0 10px 30px rgba(239, 68, 68, 0.15);
}

.toast-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd34e 0%, #06264a 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 3px 8px rgba(239,181,27, 0.3);
  flex-shrink: 0;
}

.toast-error .toast-icon {
  background: #ef4444;
  box-shadow: 0 3px 8px rgba(239, 68, 68, 0.3);
}

.toast-message {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #3A2E1F;
  line-height: 1.2;
  white-space: nowrap;
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translate(-50%, -20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes toastSlideOut {
  from {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  to {
    opacity: 0;
    transform: translate(-50%, -20px);
  }
}
/* Refined Step 4 Branding CSS */
.brand-container {
  max-width: 980px;
  margin: 0 auto;
  position: relative;
}

.brand-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(226, 213, 196, 0.8);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 16px 48px rgba(196, 153, 56, 0.12);
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

/* Bottom-left silk ribbon accent */
.brand-card::before {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(239,181,27, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.brand-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.brand-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd34e 0%, #e5a10b 100%);
  color: #06264a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  font-family: 'DM Sans', sans-serif;
  box-shadow: 0 6px 18px rgba(239,181,27, 0.35);
  flex-shrink: 0;
}

.brand-title-group h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 32px;
  font-weight: 700;
  color: #121826;
  margin: 0;
  line-height: 1.1;
}

.brand-title-group p {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: #6b7280;
  margin: 4px 0 0 0;
}

.brand-main-grid {
  display: grid;
  grid-template-columns: 210px 1fr 300px;
  gap: 24px;
}

/* Left Sidebar Tabs */
.brand-nav-tabs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.brand-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  border-radius: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #4b5563;
  background: #ffffff;
  border: 1px solid rgba(226, 213, 196, 0.7);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.brand-tab svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.brand-tab.active {
  background: linear-gradient(135deg, #efb51b 0%, #06264a 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(239,181,27, 0.3);
}

/* Form Styles */
.brand-form-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.brand-input-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.brand-input-group label {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #4b5563;
}

.brand-input-group label span.req {
  color: #ef4444;
}

.brand-input-group input, .brand-input-group select {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 14px;
  border: 1px solid rgba(239,181,27, 0.35);
  border-radius: 10px;
  background: #fbf9f4;
  color: #06264a;
  width: 100%;
}

.brand-phone-wrapper {
  display: flex;
  align-items: center;
  border: 1px solid rgba(239,181,27, 0.35);
  border-radius: 10px;
  background: #fbf9f4;
  overflow: hidden;
}

.brand-phone-flag {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  border-right: 1px solid rgba(239,181,27, 0.25);
  background: #f7f3eb;
  height: 38px;
}

.brand-phone-wrapper input {
  border: none;
  background: transparent;
  padding: 10px 12px;
}

/* Right Sidebar */
.brand-right-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.brand-logo-card {
  background: #ffffff;
  border: 1px solid rgba(226, 213, 196, 0.8);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.02);
}

.brand-logo-card h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #06264a;
  margin: 0 0 12px 0;
}

.brand-logo-preview-box {
  height: 110px;
  border: 1px dashed rgba(239,181,27, 0.4);
  border-radius: 12px;
  background: #fcfbfa;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.brand-logo-preview-box svg {
  width: 36px;
  height: 36px;
  fill: #efb51b;
  margin-bottom: 4px;
}

.brand-logo-preview-box .logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 14px;
  font-weight: 700;
  color: #06264a;
  letter-spacing: 1px;
}

.brand-logo-preview-box .logo-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 8px;
  font-weight: 600;
  color: #9ca3af;
  letter-spacing: 1.5px;
}

.brand-logo-btns {
  display: flex;
  gap: 10px;
}

.btn-upload-gold {
  background: linear-gradient(135deg, #ffd34e 0%, #e5a10b 100%);
  color: #06264a;
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(239,181,27, 0.25);
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  justify-content: center;
}

.btn-remove-outline {
  background: #ffffff;
  border: 1px solid rgba(239,181,27, 0.35);
  color: #4b5563;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 10px;
  cursor: pointer;
}

/* Template Selector Grid */
.brand-template-box h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #06264a;
  margin: 0 0 12px 0;
}

.template-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.doc-template-card {
  border: 1px solid rgba(226, 213, 196, 0.8);
  border-radius: 12px;
  padding: 10px;
  background: #ffffff;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
  position: relative;
}

.doc-template-card.selected {
  border: 2px solid #2563eb;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.15);
}

.doc-template-badge {
  position: absolute;
  top: -6px;
  left: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #2563eb;
  color: #ffffff;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.doc-template-preview {
  height: 60px;
  border-radius: 6px;
  background: #fbf9f5;
  border: 1px solid #f0e6d8;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.doc-line {
  height: 4px;
  background: #e2d5c4;
  border-radius: 2px;
  width: 100%;
}

.doc-template-card span {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #06264a;
  display: block;
  margin-top: 6px;
}

.btn-save-continue-large {
  background: linear-gradient(135deg, #ffd34e 0%, #e5a10b 100%);
  color: #06264a;
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 24px;
  border-radius: 12px;
  cursor: pointer;
  width: 100%;
  box-shadow: 0 8px 24px rgba(239,181,27, 0.35);
  margin-top: 12px;
  transition: all 0.2s ease;
}

.btn-save-continue-large:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(239,181,27, 0.45);
}
/* Restyled Step 4 "Brand if not uploaded" Page */
.brand-container {
  max-width: 1240px;
  width: 94vw;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

.brand-card {
  background: rgba(255, 255, 255, 0.72) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
  border: 1px solid rgba(239,181,27, 0.3) !important;
  border-radius: 28px !important;
  padding: 28px 32px !important;
  box-shadow: 0 20px 50px rgba(150, 120, 70, 0.15) !important;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

/* Warm gold glimmer curve in bottom-left corner */
.brand-card::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(239,181,27, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.brand-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.brand-badge,
.configure-badge,
.verify-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd34e 0%, #e5a10b 100%);
  color: #06264a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  font-family: 'DM Sans', sans-serif;
  box-shadow: 0 6px 16px rgba(239,181,27, 0.3);
  flex-shrink: 0;
}

.brand-title-group h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 28px;
  font-weight: 700;
  color: #121826;
  margin: 0;
  line-height: 1.1;
}

.brand-title-group p {
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5px;
  color: #6b7280;
  margin: 4px 0 0 0;
}

/* Three Columns Layout */
.brand-main-grid {
  display: grid;
  grid-template-columns: 200px 1fr 340px;
  gap: 24px;
  align-items: start;
}

/* Left Tabs */
.brand-nav-tabs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.brand-tab {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border-radius: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #4b5563;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(239,181,27, 0.25);
  cursor: pointer;
  transition: all 0.2s ease;
  box-sizing: border-box;
  white-space: nowrap;
}

.brand-tab svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.brand-tab.active {
  background: linear-gradient(135deg, #efb51b 0%, #06264a 100%) !important;
  color: #ffffff !important;
  border-color: transparent !important;
  box-shadow: 0 4px 14px rgba(239,181,27, 0.3) !important;
}

.brand-tab.active svg {
  fill: #ffffff;
}

/* Middle Form: 2-Column Grid */
.brand-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.brand-form-grid .full-width {
  grid-column: 1 / -1;
}

.brand-field {
  display: flex;
  flex-direction: column;
}

.brand-field label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  white-space: nowrap !important;
  font-family: 'DM Sans', sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 4px;
}

.brand-field label span.req {
  color: #ef4444;
  font-weight: 700;
}

.brand-field input, .brand-field select {
  height: 38px;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  padding: 0 12px;
  border: 1px solid rgba(239,181,27, 0.35);
  background: rgba(255, 255, 255, 0.85);
  color: #1f2937;
  width: 100%;
  box-sizing: border-box;
}

.brand-phone-input-group {
  display: flex;
  align-items: center;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(239,181,27, 0.35);
  background: rgba(255, 255, 255, 0.85);
  overflow: hidden;
}

.brand-flag-prefix {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #4b5563;
  border-right: 1px solid rgba(239,181,27, 0.25);
  background: rgba(243, 237, 226, 0.6);
  height: 100%;
  white-space: nowrap;
}

.brand-phone-input-group input {
  border: none !important;
  background: transparent !important;
  height: 100% !important;
  padding: 0 12px !important;
}

/* Right Panel Cards */
.brand-right-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sub-glass-card {
  background: rgba(255, 255, 255, 0.6) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(239,181,27, 0.3) !important;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.02);
}

.sub-glass-card h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 12px 0;
}

/* Company Logo Drop Zone */
.logo-drop-zone {
  height: 150px;
  border: 1px dashed rgba(239,181,27, 0.45);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  padding: 8px;
  box-sizing: border-box;
  text-align: center;
  overflow: hidden;
}

.logo-drop-zone img {
  max-height: 130px;
  max-width: 90%;
  object-fit: contain;
}

.logo-neutral-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #06264a;
}

.logo-neutral-icon svg {
  width: 40px;
  height: 40px;
  stroke: #efb51b;
  fill: none;
}

.logo-neutral-icon span {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
}

.logo-btn-row {
  display: flex;
  gap: 10px;
}

.btn-logo-upload {
  background: linear-gradient(135deg, #ffd34e 0%, #e5a10b 100%);
  color: #06264a;
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  height: 38px;
  padding: 0 16px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1;
  box-shadow: 0 4px 12px rgba(239,181,27, 0.25);
  transition: all 0.2s ease;
}

.btn-logo-upload svg {
  width: 16px;
  height: 16px;
  stroke: #ffffff;
  fill: none;
}

.btn-logo-remove {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(239,181,27, 0.35);
  color: #4b5563;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  height: 38px;
  padding: 0 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-logo-remove:hover {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fca5a5;
}

/* Template Cards Grid */
.template-cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.tmpl-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(239,181,27, 0.3);
  border-radius: 12px;
  padding: 10px 8px;
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.tmpl-card.active {
  border: 2px solid #2563eb;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.15);
}

.tmpl-card-check {
  position: absolute;
  top: -6px;
  left: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #2563eb;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tmpl-preview-mini {
  height: 56px;
  background: #ffffff;
  border-radius: 6px;
  border: 1px solid rgba(226, 213, 196, 0.6);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tmpl-bar {
  height: 4px;
  border-radius: 2px;
}

.tmpl-card span {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #1f2937;
  display: block;
  margin-top: 6px;
}

.btn-brand-save-full {
  background: linear-gradient(135deg, #ffd34e 0%, #e5a10b 100%);
  color: #06264a;
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  height: 46px;
  padding: 0 24px;
  border-radius: 12px;
  cursor: pointer;
  width: 100%;
  box-shadow: 0 8px 24px rgba(239,181,27, 0.35);
  margin-top: 8px;
  transition: all 0.2s ease;
}

/* Glass Header */
header {
  background: rgba(255, 255, 255, 0.55) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border-bottom: 1px solid rgba(239,181,27, 0.25) !important;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .brand-main-grid {
    grid-template-columns: 200px 1fr;
  }
  .brand-right-panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .brand-main-grid {
    grid-template-columns: 1fr;
  }
  .brand-nav-tabs {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 8px;
  }
  .brand-tab {
    flex-shrink: 0;
  }
  .brand-form-grid {
    grid-template-columns: 1fr;
  }
  .brand-form-grid .full-width {
    grid-column: auto;
  }
}
/* Step 4 Left-Alignment Fixes */
.brand-field {
  text-align: left !important;
  align-items: flex-start !important;
  width: 100% !important;
}

.brand-field label {
  text-align: left !important;
  justify-content: flex-start !important;
  align-items: center !important;
  display: flex !important;
  width: 100% !important;
  gap: 4px !important;
  font-family: 'DM Sans', sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 4px;
}

.brand-field input, .brand-field select {
  text-align: left !important;
  width: 100% !important;
}

.brand-phone-input-group {
  width: 100% !important;
}

.brand-phone-input-group input {
  text-align: left !important;
}

/* Step 5: Horizontal Option Row Cards */
.options-list-horizontal {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.option-row-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(239,181,27, 0.3);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.02);
}

.option-row-card.selected {
  border: 2px solid #06264a !important;
  background: rgba(253, 248, 239, 0.9) !important;
  box-shadow: 0 8px 24px rgba(196, 153, 56, 0.2) !important;
}

.option-ring-img {
  width: 90px;
  height: 90px;
  border-radius: 12px;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid rgba(226, 213, 196, 0.6);
  padding: 6px;
  flex-shrink: 0;
}

.option-header-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 130px;
}

.option-title {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 700;
  color: #121826;
  margin: 0;
}

.option-popular-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #ffd34e 0%, #e5a10b 100%);
  color: #06264a;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  width: fit-content;
  box-shadow: 0 2px 6px rgba(239,181,27, 0.3);
}

/* Details 2-Column Mini Grid */
.option-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 16px;
  flex: 1;
  font-family: 'DM Sans', sans-serif;
  font-size: 12.5px;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px dashed rgba(239,181,27, 0.2);
  padding-bottom: 3px;
}

.detail-label {
  color: #6b7280;
  font-weight: 500;
}

.detail-val {
  color: #06264a;
  font-weight: 700;
}

/* Price & Button Col */
.option-price-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  min-width: 140px;
  flex-shrink: 0;
}

.option-price-tag {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: #06264a;
}

.btn-select-option {
  background: #ffffff;
  border: 1px solid rgba(239,181,27, 0.4);
  color: #06264a;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-select-option.active {
  background: linear-gradient(135deg, #ffd34e 0%, #e5a10b 100%) !important;
  color: #06264a !important;
  border-color: transparent !important;
  box-shadow: 0 4px 12px rgba(239,181,27, 0.3) !important;
}

/* Mobile Responsiveness for Step 5 Row Cards */
@media (max-width: 768px) {
  .option-row-card {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .option-ring-img {
    margin: 0 auto;
  }
  .option-header-col {
    align-items: center;
  }
  .option-details-grid {
    grid-template-columns: 1fr;
  }
  .option-price-col {
    align-items: center;
    width: 100%;
  }
  .btn-select-option {
    width: 100%;
  }
}
/* STRICT LEFT ALIGNMENT OVERRIDES FOR STEP 4 BRANDING FORM */
.brand-card, .brand-card *, .brand-form-grid, .brand-field, .brand-field * {
  text-align: left !important;
}

.brand-form-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 14px 16px !important;
  justify-items: start !important;
  align-items: start !important;
  width: 100% !important;
}

.brand-form-grid .full-width {
  grid-column: 1 / -1 !important;
  width: 100% !important;
}

.brand-field {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  text-align: left !important;
  width: 100% !important;
  margin: 0 !important;
}

.brand-field label {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  text-align: left !important;
  width: 100% !important;
  gap: 4px !important;
  margin: 0 0 4px 0 !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  color: #374151 !important;
}

.brand-field label span.req {
  color: #ef4444 !important;
  font-weight: 700 !important;
  display: inline-block !important;
}

.brand-field input, .brand-field select {
  width: 100% !important;
  height: 38px !important;
  border-radius: 10px !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 14px !important;
  padding: 0 12px !important;
  border: 1px solid rgba(239,181,27, 0.35) !important;
  background: rgba(255, 255, 255, 0.9) !important;
  color: #1f2937 !important;
  box-sizing: border-box !important;
  text-align: left !important;
}

.brand-phone-input-group {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  height: 38px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(239,181,27, 0.35) !important;
  background: rgba(255, 255, 255, 0.9) !important;
  overflow: hidden !important;
}

.brand-flag-prefix {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 0 10px !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #4b5563 !important;
  border-right: 1px solid rgba(239,181,27, 0.25) !important;
  background: rgba(243, 237, 226, 0.6) !important;
  height: 100% !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.brand-phone-input-group input {
  border: none !important;
  background: transparent !important;
  height: 100% !important;
  padding: 0 12px !important;
  width: 100% !important;
}

/* STEP 5 HORIZONTAL ROW CARDS STYLES */
.options-list-horizontal {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  width: 100% !important;
}

.option-row-card {
  background: rgba(255, 255, 255, 0.85) !important;
  border: 1px solid rgba(239,181,27, 0.3) !important;
  border-radius: 16px !important;
  padding: 16px 20px !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 20px !important;
  position: relative !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.02) !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.option-row-card.selected {
  border: 2px solid #06264a !important;
  background: rgba(253, 248, 239, 0.95) !important;
  box-shadow: 0 8px 24px rgba(196, 153, 56, 0.2) !important;
}

.option-ring-img {
  width: 90px !important;
  height: 90px !important;
  border-radius: 12px !important;
  object-fit: contain !important;
  background: #ffffff !important;
  border: 1px solid rgba(226, 213, 196, 0.6) !important;
  padding: 6px !important;
  flex-shrink: 0 !important;
}

.option-header-col {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  min-width: 130px !important;
  text-align: left !important;
}

.option-title {
  font-family: 'Playfair Display', Georgia, serif !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #121826 !important;
  margin: 0 !important;
}

.option-popular-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  background: linear-gradient(135deg, #ffd34e 0%, #e5a10b 100%) !important;
  color: #06264a !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  padding: 3px 8px !important;
  border-radius: 999px !important;
  width: fit-content !important;
  box-shadow: 0 2px 6px rgba(239,181,27, 0.3) !important;
}

.option-details-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 6px 20px !important;
  flex: 1 !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 12.5px !important;
  text-align: left !important;
}

.detail-item {
  display: flex !important;
  justify-content: space-between !important;
  gap: 8px !important;
  border-bottom: 1px dashed rgba(239,181,27, 0.2) !important;
  padding-bottom: 3px !important;
}

.detail-label {
  color: #6b7280 !important;
  font-weight: 500 !important;
}

.detail-val {
  color: #06264a !important;
  font-weight: 700 !important;
}

.option-price-col {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  gap: 8px !important;
  min-width: 140px !important;
  flex-shrink: 0 !important;
}

.option-price-tag {
  font-family: 'Playfair Display', Georgia, serif !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  color: #06264a !important;
}

.btn-select-option {
  background: #ffffff !important;
  border: 1px solid rgba(239,181,27, 0.4) !important;
  color: #06264a !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  padding: 8px 16px !important;
  border-radius: 10px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  white-space: nowrap !important;
}

.btn-select-option.active {
  background: linear-gradient(135deg, #ffd34e 0%, #e5a10b 100%) !important;
  color: #06264a !important;
  border-color: transparent !important;
  box-shadow: 0 4px 12px rgba(239,181,27, 0.3) !important;
}

@media (max-width: 768px) {
  .option-row-card {
    flex-direction: column !important;
    align-items: stretch !important;
    text-align: center !important;
  }
  .option-ring-img {
    margin: 0 auto !important;
  }
  .option-header-col {
    align-items: center !important;
    text-align: center !important;
  }
  .option-details-grid {
    grid-template-columns: 1fr !important;
  }
  .option-price-col {
    align-items: center !important;
    width: 100% !important;
  }
  .btn-select-option {
    width: 100% !important;
  }
}

/* PRINT STYLES FOR HIGH QUALITY A4 QUOTATION PDF */
@media print {
  body, html {
    background: #ffffff !important;
    padding: 0 !important;
    margin: 0 !important;
    color: #000000 !important;
  }
  
  header, nav, .no-print, .actions, button, #bg, .brand-header, .step-header, .brand-badge {
    display: none !important;
  }
  
  #content, .quote-page-wrapper, .brand-container, .brand-card {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    background: #ffffff !important;
    border: none !important;
    box-shadow: none !important;
  }
  
  .printable-quote-sheet {
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* STRICT COMPACT LOGO DROPZONE & PREVIEW SIZING */
.logo-box {
  background: #ffffff !important;
  border: 1px solid #e2d5c4 !important;
  border-radius: 16px !important;
  padding: 14px !important;
  margin-bottom: 16px !important;
}

.logo-box-label {
  display: block !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #06264a !important;
  margin-bottom: 8px !important;
}

.logo-dropzone {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  background: #fcfbfa !important;
  border: 1.5px dashed #d6c5b3 !important;
  border-radius: 12px !important;
  padding: 12px !important;
  text-align: center !important;
  min-height: 110px !important;
  max-height: 140px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.logo-upload-icon {
  width: 32px !important;
  height: 32px !important;
  max-width: 32px !important;
  max-height: 32px !important;
  color: #06264a !important;
  margin-bottom: 6px !important;
  flex-shrink: 0 !important;
  display: block !important;
}

.logo-preview-img {
  max-width: 140px !important;
  max-height: 50px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  margin-bottom: 8px !important;
  display: block !important;
}

.logo-hint {
  font-size: 10px !important;
  color: #9ca3af !important;
  margin-top: 4px !important;
}

.btn-logo-upload {
  height: 30px !important;
  padding: 0 14px !important;
  background: linear-gradient(135deg, #ffd34e 0%, #e5a10b 100%) !important;
  color: #06264a !important;
  border: none !important;
  border-radius: 8px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.btn-logo-upload:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(6,38,74, 0.3) !important;
}

.btn-logo-remove {
  height: 26px !important;
  padding: 0 10px !important;
  background: #ffffff !important;
  color: #ef4444 !important;
  border: 1px solid #fee2e2 !important;
  border-radius: 6px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
}

.btn-logo-remove:hover {
  background: #fee2e2 !important;
  border-color: #fca5a5 !important;
}

/* ==========================================================================
   STEP 2 FULL-SCREEN RESTYLE & THUMBNAIL WRAP FIXES
   ========================================================================== */

.analyze-detect-fullscreen {
  width: 100%;
  max-width: 100%;
  margin: 0;
  box-sizing: border-box;
  padding: 32px 48px;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: 0;
  border: none;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.analyze-detect-toprow {
  display: flex;
  align-items: center;
  gap: 16px;
}

.analyze-detect-toprow h1 {
  margin: 0;
  font-size: 32px;
  font-family: 'Playfair Display', serif;
  color: #06264a;
  line-height: 1.1;
}

.analyze-detect-toprow p {
  margin: 4px 0 0 0;
  font-size: 13px;
  color: #6b7280;
}

.analyze-detect-main-grid {
  display: grid;
  grid-template-columns: 58% 42%;
  gap: 24px;
  align-items: center;
}

.scanner-card-fullscreen {
  position: relative;
  height: 440px;
  min-height: 420px;
  max-height: 520px;
  border-radius: 24px;
  border: 1px solid rgba(239,181,27, 0.35);
  background: radial-gradient(circle at center, #ffffff 0%, #fcfbfa 100%);
  box-shadow: inset 0 0 24px rgba(239,181,27, 0.08), 0 8px 24px rgba(0,0,0,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.scanner-main-img {
  max-width: 85%;
  max-height: 85%;
  object-fit: contain;
  filter: drop-shadow(0 12px 20px rgba(0,0,0,0.12));
}

.checklist-container-fullscreen {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
}

.checklist-container-fullscreen .check-item {
  height: 52px;
  padding: 0 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(226, 213, 196, 0.7);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
  transition: all 0.3s ease;
}

.checklist-container-fullscreen .check-item.done {
  border-color: rgba(239,181,27, 0.5);
  background: rgba(252, 251, 250, 0.95);
  color: #06264a;
}

.checklist-container-fullscreen .check-item.active {
  border-color: #06264a;
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(6,38,74, 0.15);
  color: #06264a;
}

.progress-bar-fullscreen-wrapper {
  width: 100%;
  margin-top: 4px;
}

.progress-track-fullscreen {
  width: 100%;
  height: 10px;
  background: rgba(226, 213, 196, 0.4);
  border-radius: 10px;
  overflow: visible;
  position: relative;
}

.progress-fill-fullscreen {
  height: 100%;
  background: linear-gradient(90deg, #efb51b 0%, #06264a 100%);
  border-radius: 10px;
  position: relative;
  transition: width 0.4s ease;
}

.diamond-glow-marker {
  position: absolute;
  right: -8px;
  top: -6px;
  font-size: 14px;
  color: #06264a;
  text-shadow: 0 0 10px rgba(6,38,74, 0.8);
  animation: pulseDiamond 1.5s infinite alternate;
}

@keyframes pulseDiamond {
  from { transform: scale(1); filter: drop-shadow(0 0 2px #06264a); }
  to { transform: scale(1.3); filter: drop-shadow(0 0 8px #06264a); }
}

.progress-labels-fullscreen {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: #06264a;
  margin-top: 6px;
}

/* Fix Step 3 Thumbnail Overflow ("jo img vadhare hoi to niche lai levanu") */
.verify-image-section {
  max-width: 100%;
  overflow: hidden;
}

.verify-thumb-row {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  max-width: 100% !important;
  margin-top: 10px !important;
  margin-bottom: 10px !important;
}

.verify-thumb {
  width: 52px !important;
  height: 52px !important;
  border-radius: 10px !important;
  object-fit: cover !important;
  border: 1.5px solid #e2d5c4 !important;
  background: #ffffff !important;
  cursor: pointer !important;
  transition: transform 0.2s ease, border-color 0.2s ease !important;
}

.verify-thumb:hover {
  transform: scale(1.05) !important;
  border-color: #06264a !important;
}

@media (max-width: 1024px) {
  .analyze-detect-main-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .scanner-card-fullscreen {
    height: 360px;
  }
  .analyze-detect-fullscreen {
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .analyze-detect-fullscreen {
    padding: 16px;
  }
  .scanner-card-fullscreen {
    height: 300px;
  }
  .checklist-container-fullscreen .check-item {
    height: 48px;
    font-size: 12px;
  }
}


/* ==========================================================================
   STEP 3 FULL-SCREEN RESTYLE & CONFIDENCE BADGES
   ========================================================================== */

/* ==========================================================================
   STEP 3 FULL-SCREEN RESTYLE & CONFIDENCE BADGES
   ========================================================================== */

.verify-config-fullscreen {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 0 48px 32px 48px;
  background: transparent;
  backdrop-filter: none;
  border: none;
  box-shadow: none;
  display: flex;
  flex-direction: column;
}

@media (min-width: 1440px) {
  .verify-config-fullscreen {
    padding-left: 64px;
    padding-right: 64px;
  }
}

.verify-toprow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px !important;
  margin-bottom: 20px !important;
}

.verify-toprow h1 {
  margin: 0;
  font-size: 32px;
  font-family: 'Playfair Display', serif;
  color: #06264a;
  line-height: 1.1;
}

.verify-toprow p {
  margin: 4px 0 0 0;
  font-size: 13px;
  color: #6b7280;
}

.verify-main-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 32px;
  align-items: start;
}

.verify-left-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.verify-image-card {
  background: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border: 1px solid rgba(239,181,27, 0.35) !important;
  border-radius: 16px !important;
  padding: 20px !important;
  box-shadow: 0 6px 20px rgba(0,0,0,0.03) !important;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.verify-main-img {
  max-width: 100%;
  max-height: 260px;
  object-fit: contain;
  margin: 0 auto;
  display: block;
}

.verify-thumb-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px !important;
  margin-top: 12px !important;
  margin-bottom: 12px !important;
  width: 100%;
  justify-content: center;
}

.change-img-btn {
  margin-top: 16px !important;
}

.verify-ai-desc-card {
  background: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border: 1px solid rgba(239,181,27, 0.35) !important;
  border-radius: 16px !important;
  padding: 20px !important;
  box-shadow: 0 6px 20px rgba(0,0,0,0.03) !important;
}

.verify-right-panel {
  max-height: calc(100vh - 210px);
  overflow-y: auto;
  padding-right: 10px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Custom scrollbar for right panel */
.verify-right-panel::-webkit-scrollbar {
  width: 6px;
}
.verify-right-panel::-webkit-scrollbar-thumb {
  background: rgba(239,181,27, 0.4);
  border-radius: 6px;
}

.verify-subcard {
  background: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border: 1px solid rgba(239,181,27, 0.35) !important;
  border-radius: 16px !important;
  padding: 20px !important;
  box-shadow: 0 6px 20px rgba(0,0,0,0.03) !important;
}

.verify-field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  row-gap: 16px !important;
  column-gap: 20px !important;
}

.verify-field-label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: #374151;
  margin-bottom: 6px !important;
}

.verify-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.verify-stone-grid {
  display: grid;
  grid-template-columns: minmax(130px, 1.3fr) minmax(90px, 1fr) minmax(80px, 1fr) !important;
  column-gap: 14px !important;
  row-gap: 16px !important;
}

.verify-input-wrapper input {
  height: 42px !important;
  border-radius: 10px;
  border: 1px solid rgba(239,181,27, 0.35);
  padding: 0 12px !important;
  font-size: 13.5px !important;
  font-family: 'DM Sans', sans-serif;
  width: 100%;
  background: #ffffff;
  color: #06264a;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.verify-input-wrapper select {
  height: 42px !important;
  border-radius: 10px;
  border: 1px solid rgba(239,181,27, 0.35);
  padding: 0 20px 0 8px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  font-family: 'DM Sans', sans-serif;
  width: 100%;
  background-color: #ffffff;
  color: #06264a;
  outline: none;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-image: none !important;
  background-repeat: no-repeat !important;
  background-position: right 6px center !important;
  background-size: 10px !important;
  cursor: pointer;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-sizing: border-box !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.verify-input-wrapper select:focus,
.verify-input-wrapper input:focus {
  border-color: #06264a;
  box-shadow: 0 0 0 2px rgba(6,38,74, 0.15);
}

.confidence-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  border-radius: 6px;
  margin-top: 4px;
  text-transform: uppercase;
}

.confidence-badge.image-derived {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.confidence-badge.estimated {
  background: #fffbeb;
  color: #d97706;
  border: 1px solid #fde68a;
}

.confidence-badge.not-detected {
  background: #f3f4f6;
  color: #6b7280;
  border: 1px solid #e5e7eb;
}

.verify-bottom-action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  margin-top: 16px;
  border-top: 1px solid rgba(239,181,27, 0.25);
  width: 100%;
}

@media (max-width: 1024px) {
  .verify-main-grid {
    grid-template-columns: 1fr;
  }
  .verify-right-panel {
    max-height: none;
  }
  .verify-config-fullscreen {
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .verify-field-grid {
    grid-template-columns: 1fr;
  }
  .verify-row-2 {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   STEP 4 FULL-SCREEN RESTYLE & THREE-COLUMN LAYOUT
   ========================================================================== */

.brand-fullscreen {
  width: 100%;
  max-width: 100%;
  margin: 0;
  box-sizing: border-box;
  padding: 32px 48px;
  background: transparent;
  backdrop-filter: none;
  border: none;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.brand-toprow {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-toprow h1 {
  margin: 0;
  font-size: 32px;
  font-family: 'Playfair Display', serif;
  color: #06264a;
  line-height: 1.1;
}

.brand-toprow p {
  margin: 4px 0 0 0;
  font-size: 13px;
  color: #6b7280;
}

.btn-back-pill {
  margin-left: auto;
  height: 38px;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 600;
  color: #06264a;
  background: rgba(255, 255, 255, 0.85);
  border: 1.5px solid #06264a;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-back-pill:hover {
  background: #ffffff;
  border-color: #06264a;
}

.brand-three-columns {
  display: flex;
  gap: 24px;
  align-items: start;
}

.brand-nav-tabs {
  width: 200px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.brand-tab {
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(239,181,27, 0.25);
  background: rgba(255, 255, 255, 0.7);
  padding: 0 14px;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  text-align: left;
}

.brand-tab svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #06264a;
}

.brand-tab.active {
  background: linear-gradient(135deg, #efb51b 0%, #06264a 100%);
  color: #ffffff;
  border-color: #06264a;
  box-shadow: 0 4px 12px rgba(6,38,74, 0.25);
}

.brand-tab.active svg {
  color: #ffffff;
}

.brand-form-grid-fullscreen {
  flex: 1;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
  padding-right: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 22px;
  align-content: start;
}

.brand-form-grid-fullscreen::-webkit-scrollbar {
  width: 6px;
}
.brand-form-grid-fullscreen::-webkit-scrollbar-thumb {
  background: rgba(239,181,27, 0.4);
  border-radius: 6px;
}

.brand-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.brand-field-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.brand-field-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
  accent-color: #06264a;
  cursor: pointer;
  margin: 0;
  border-radius: 4px;
}

.brand-field-checkbox label {
  margin: 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  color: #374151;
}

.brand-field.full-width {
  grid-column: 1 / -1;
}

.brand-field label {
  font-size: 12px;
  font-weight: 700;
  color: #374151;
}

.brand-field input,
.brand-field select,
.brand-field textarea {
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(239,181,27, 0.35);
  padding: 0 12px;
  font-size: 13.5px;
  font-family: 'DM Sans', sans-serif;
  width: 100%;
  background: #ffffff;
  color: #06264a;
  outline: none;
  box-sizing: border-box;
}

.brand-field textarea {
  height: 48px;
  min-height: 44px;
  padding: 6px 12px;
  resize: vertical;
}

.phone-input-group {
  display: flex;
  align-items: center;
  border: 1px solid rgba(239,181,27, 0.35);
  border-radius: 10px;
  background: #ffffff;
  overflow: hidden;
  height: 38px;
  box-sizing: border-box;
}

.phone-prefix {
  padding: 0 10px;
  font-size: 12.5px;
  font-weight: 700;
  color: #06264a;
  background: rgba(239,181,27, 0.08);
  border-right: 1px solid rgba(239,181,27, 0.3);
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.phone-input-group input {
  border: none !important;
  border-radius: 0 !important;
  height: 100% !important;
  flex: 1;
  padding: 0 12px;
  outline: none;
}

.brand-right-panel-fullscreen {
  width: 340px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.brand-glass-subcard {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(239,181,27, 0.3);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.logo-dropzone-dashed {
  height: 130px;
  border: 1.5px dashed rgba(239,181,27, 0.5);
  border-radius: 12px;
  background: rgba(253, 251, 247, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px;
  box-sizing: border-box;
}

.tmpl-row-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 6px;
}

.tmpl-card {
  height: 90px;
  border-radius: 12px;
  border: 1.5px solid rgba(239,181,27, 0.3);
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.tmpl-card.active {
  border-color: #06264a;
  box-shadow: 0 0 0 2px rgba(6,38,74, 0.2);
  background: #fdfcf7;
}

.tmpl-card span {
  font-size: 11px;
  font-weight: 700;
  color: #06264a;
  margin-top: 6px;
}

@media (max-width: 1024px) {
  .brand-three-columns {
    flex-direction: column;
  }
  .brand-right-panel-fullscreen {
    width: 100%;
  }
  .brand-nav-tabs {
    width: 100%;
    flex-direction: row;
    overflow-x: auto;
  }
  .brand-tab {
    flex-shrink: 0;
    width: auto;
  }
}

@media (max-width: 768px) {
  .brand-fullscreen {
    padding: 16px;
  }
  .brand-form-grid-fullscreen {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   STEP 5 FULL-SCREEN RESTYLE & HORIZONTAL ROW CARDS
   ========================================================================== */

.configure-fullscreen {
  width: 100%;
  max-width: 100%;
  margin: 0;
  box-sizing: border-box;
  padding: 16px 48px;
  background: transparent;
  backdrop-filter: none;
  border: none;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: calc(100dvh - 66px);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.configure-fullscreen::-webkit-scrollbar,
.options-stack-fullscreen::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.configure-toprow {
  display: flex;
  align-items: center;
  gap: 14px;
}

.configure-toprow h1 {
  margin: 0;
  font-size: 28px;
  font-family: 'Playfair Display', serif;
  color: #06264a;
  line-height: 1.1;
}

.configure-toprow p {
  margin: 2px 0 0 0;
  font-size: 13px;
  color: #6b7280;
}

.configure-main-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 20px;
  align-items: stretch;
}

.options-stack-fullscreen {
  display: flex;
  flex-direction: column;
  gap: 10px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.option-row-card-fullscreen {
  background: #ffffff;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(239,181,27, 0.35);
  border-radius: 14px;
  padding: 12px 18px;
  display: grid;
  grid-template-columns: minmax(250px, 1.2fr) minmax(135px, 0.8fr) minmax(180px, 1fr) 180px;
  align-items: center;
  gap: 16px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  position: relative;
}

.option-row-card-fullscreen.selected {
  border: 1.5px solid #06264a;
  background: #fdfbf7;
  box-shadow: 0 6px 20px rgba(6,38,74, 0.12);
}

.option-col-1 {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.option-ring-img {
  width: 64px;
  height: 64px;
  min-width: 64px;
  min-height: 64px;
  border-radius: 10px;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid rgba(239,181,27, 0.25);
  padding: 4px;
  box-sizing: border-box;
}

.option-col-title-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.option-tag-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.option-tag-caps {
  font-size: 9px;
  font-weight: 700;
  color: #06264a;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
}

.option-name-title {
  margin: 2px 0 0 0;
  font-size: 14px;
  font-weight: 800;
  color: #06264a;
  line-height: 1.2;
}

.option-popular-chip {
  display: inline-flex;
  align-items: center;
  font-size: 9px;
  font-weight: 700;
  color: #06264a;
  background: rgba(239,181,27, 0.15);
  border: 1px solid rgba(239,181,27, 0.35);
  padding: 1px 5px;
  border-radius: 6px;
  white-space: nowrap;
}

.option-col-2,
.option-col-3 {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
}

.detail-label {
  font-size: 11px;
  color: #6b7280;
  margin-right: 4px;
}

.detail-val {
  font-size: 12px;
  font-weight: 700;
  color: #06264a;
  white-space: nowrap;
}

.amber-pill {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  background: #fffbeb;
  color: #d97706;
  border: 1px solid #fde68a;
  border-radius: 6px;
  padding: 1px 5px;
  margin-left: 2px;
  cursor: help;
}

.option-col-4 {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  position: relative;
}

.option-price-gold {
  font-size: 20px;
  font-weight: 800;
  color: #06264a;
  font-family: 'Playfair Display', serif;
  line-height: 1;
}

.btn-select-option {
  width: 130px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(239,181,27, 0.4);
  background: #ffffff;
  color: #06264a;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-select-option.active {
  background: linear-gradient(135deg, #ffd34e 0%, #e5a10b 100%);
  color: #06264a;
  border-color: #06264a;
  box-shadow: 0 4px 12px rgba(6,38,74, 0.2);
}

.option-text-actions-row {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 11px;
  margin-top: 2px;
}

.btn-action-gold-text {
  background: transparent;
  border: none;
  color: #06264a;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s ease;
}

.btn-action-gold-text:hover {
  color: #785317;
}

.calc-debug-toggle-fullscreen {
  grid-column: 1 / -1;
  margin-top: 8px;
  font-size: 12px;
}

.calc-debug-toggle-fullscreen summary {
  cursor: pointer;
  font-weight: 700;
  color: #06264a;
  user-select: none;
}

.breakdown-3col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px 16px;
  margin-top: 10px;
  background: rgba(252, 251, 250, 0.9);
  border: 1px solid rgba(239,181,27, 0.25);
  border-radius: 12px;
  padding: 12px;
  font-size: 11.5px;
  color: #374151;
}

.preview-sticky-panel {
  position: sticky;
  top: 100px;
}

.configure-bottom-action-bar {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 10px 16px;
  margin-top: auto !important;
  border-top: 1.5px solid rgba(239,181,27, 0.35);
  background: rgba(253, 251, 247, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
}

.configure-bottom-action-bar .configure-bottom-left-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.configure-bottom-action-bar .configure-total-block {
  display: flex;
  align-items: center;
  gap: 8px;
}

.configure-bottom-action-bar .configure-total-label {
  font-size: 13px;
  color: #4b5563;
  font-weight: 600;
}

.configure-bottom-action-bar .configure-total-value {
  color: #06264a;
  font-size: 18px;
  font-weight: 800;
}

.configure-bottom-actions-right {
  display: flex;
  gap: 10px;
  align-items: center;
}

.configure-bottom-action-bar .configure-btn-back {
  min-width: 90px;
  height: 40px !important;
  padding: 0 16px !important;
  border: 1px solid rgba(6,38,74, 0.65) !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.88) !important;
  color: #06264a !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
  margin: 0 !important;
}

.configure-bottom-action-bar .configure-btn-back:hover {
  background: #ffffff !important;
  border-color: #06264a !important;
}

.configure-bottom-action-bar .configure-btn-save-draft {
  min-width: 140px;
  height: 40px !important;
  padding: 0 18px !important;
  border: 1px solid rgba(6,38,74, 0.65) !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.88) !important;
  color: #06264a !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
  margin: 0 !important;
}

.configure-bottom-action-bar .configure-btn-save-draft:hover {
  background: #ffffff !important;
  border-color: #06264a !important;
}

.configure-bottom-action-bar .configure-btn-continue {
  width: auto !important;
  min-width: 220px;
  height: 40px !important;
  padding: 0 20px !important;
  border: none !important;
  border-radius: 8px !important;
  background: linear-gradient(135deg, #ffd34e 0%, #e5a10b 100%) !important;
  color: #06264a !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
  margin: 0 !important;
  box-shadow: 0 4px 14px rgba(239,181,27, 0.35);
}

.configure-bottom-action-bar .configure-btn-continue:hover:not(:disabled) {
  background: linear-gradient(135deg, #ffd34e 0%, #e5a10b 100%) !important;
  transform: translateY(-1px);
}

.btn-icon-gold-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 8px;
  border: 1.5px solid #06264a;
  background: rgba(255, 255, 255, 0.85);
  color: #8a6a2b;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  box-sizing: border-box;
}

.btn-icon-gold-outline:hover {
  background: rgba(239,181,27, 0.12);
  border-color: #06264a;
  color: #634714;
  transform: translateY(-1px);
}

.btn-icon-gold-outline.btn-whatsapp-icon:hover {
  color: #25d366;
  border-color: #25d366;
  background: rgba(37, 211, 102, 0.1);
}

.btn-icon-gold-outline.btn-email-icon:hover {
  color: #2563eb;
  border-color: #2563eb;
  background: rgba(37, 99, 235, 0.1);
}

.btn-pill-gold-outline {
  height: 42px;
  padding: 0 20px;
  font-size: 13px;
  font-weight: 600;
  color: #8a6a2b;
  background: rgba(255, 255, 255, 0.85);
  border: 1.5px solid #06264a;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-pill-gold-outline:hover {
  background: rgba(239,181,27, 0.1);
  border-color: #06264a;
}

@media (max-width: 1100px) {
  .configure-main-grid {
    grid-template-columns: 1fr;
  }
  .preview-sticky-panel {
    position: static;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .configure-fullscreen {
    padding: 16px;
  }
  .option-row-card-fullscreen {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .option-price-actions-col {
    align-items: center;
  }
  .breakdown-3col-grid {
    grid-template-columns: 1fr;
  }
}

.brand-fullscreen,
.brand-three-columns,
.brand-form-grid-fullscreen {
  background: transparent;
}

.brand-three-columns { align-items: flex-start; }

.brand-three-columns > .brand-nav-tabs {
  align-self: flex-start;
  height: max-content;
  min-height: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.brand-three-columns > .brand-nav-tabs .brand-tab {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

html:has(.verify-config-fullscreen),
body:has(.verify-config-fullscreen) {
  height: auto;
  max-height: none;
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
}

body:has(.verify-config-fullscreen) main {
  width: 100%;
  max-width: none;
  height: auto;
  max-height: none;
  min-height: calc(100dvh - 66px);
  margin: 0;
  padding: 0;
  overflow: visible;
}

body:has(.verify-config-fullscreen) #content {
  height: auto;
  min-height: 0;
  overflow: visible;
}

.verify-config-fullscreen {
  width: 100%;
  height: auto;
  min-height: calc(100dvh - 66px);
  padding: 8px 16px 10px;
  gap: 8px;
  overflow: visible;
}

.verify-toprow {
  flex: 0 0 42px;
  gap: 10px;
}

.verify-toprow h1 { font-size: 24px; }
.verify-toprow p { margin-top: 2px; font-size: 12px; }
.verify-badge { width: 36px; height: 36px; font-size: 17px; }

.verify-main-grid {
  flex: none;
  min-height: auto;
  grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

.verify-left-panel {
  min-height: auto;
  height: 100%;
  margin-top: 0 !important;
  gap: 0;
  align-self: stretch;
}

.verify-image-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 0;
  height: 100%;
  gap: 8px;
  padding: 12px;
  border-radius: 14px;
}

.verify-config-fullscreen .verify-main-img {
  width: 100%;
  height: auto;
  max-height: 280px;
  flex: 1 1 auto;
  min-height: 160px;
  object-fit: contain;
  border-radius: 8px;
  background: #f2f2f1;
}

.verify-config-fullscreen .verify-thumb-row {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center;
  height: 42px;
  flex: 0 0 42px;
  min-width: 0;
  gap: 6px !important;
  margin: 0 !important;
  overflow-x: auto;
}

.verify-config-fullscreen .verify-thumb {
  width: 38px !important;
  height: 38px !important;
  flex: 0 0 38px;
  border-radius: 6px !important;
}

.verify-config-fullscreen .change-img-btn {
  height: 34px;
  margin: 0 !important;
  padding: 0 8px;
  border-radius: 7px;
  font-size: 12px;
}

.verify-right-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: auto;
  height: auto;
  max-height: none;
  gap: 6px;
  padding: 0;
  overflow: visible;
}

.verify-right-panel::-webkit-scrollbar { display: none; }
.verify-row-2 { gap: 6px; }
.verify-subcard {
  min-width: 0;
  padding: 7px 9px;
  border-radius: 9px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.verify-subcard-title {
  margin: 0 0 4px;
  font-size: 12px;
  gap: 5px;
}

.verify-field-grid { gap: 4px 8px; }
.verify-metal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.verify-stone-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.verify-setting-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.verify-dimension-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.verify-field-label { margin-bottom: 2px; font-size: 11px; }

.verify-input-wrapper select,
.verify-input-wrapper input {
  height: 32px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 12px;
}

.verify-input-unit { right: 8px; font-size: 10px; }
.confidence-badge { margin-top: 2px; padding: 1px 4px; font-size: 8px; }

.verify-compact-sections {
  display: grid;
  grid-template-columns: 1.15fr 0.8fr 1.35fr;
  min-width: 0;
  gap: 6px;
}

.verify-accordion { min-width: 0; }
.verify-rate-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 32px;
  padding: 4px 6px;
  border: 1px solid rgba(239,181,27,0.25);
  border-radius: 6px;
  background: rgba(255,255,255,0.7);
}

.verify-rate-summary > span { font-size: 10px !important; line-height: 1.25; }
.verify-rate-summary .btn-logo-remove { flex: 0 0 auto; height: 28px !important; padding: 0 7px !important; font-size: 10px !important; }

.verify-bottom-action-bar {
  flex: 0 0 40px;
  min-height: 40px;
  margin: 0;
  padding: 5px 0 0;
  gap: 8px;
}

.verify-bottom-action-bar button {
  height: 34px !important;
  margin: 0 !important;
  padding: 0 14px !important;
  border-radius: 7px !important;
  font-size: 12px !important;
}

@media (max-height: 760px) and (min-width: 901px) {
  .verify-config-fullscreen { padding-top: 5px; padding-bottom: 6px; gap: 5px; }
  .verify-main-grid { gap: 8px; }
  .verify-right-panel { gap: 4px; }
  .verify-subcard { padding: 5px 7px; }
  .verify-field-grid { gap: 2px 6px; }
  .verify-input-wrapper select,
  .verify-input-wrapper input { height: 29px; }
  .verify-bottom-action-bar { flex-basis: 36px; min-height: 36px; }
}

@media (max-width: 900px) {
  html:has(.verify-config-fullscreen),
  body:has(.verify-config-fullscreen) {
    height: auto;
    max-height: none;
    min-height: 100dvh;
    overflow-y: auto;
  }

  body:has(.verify-config-fullscreen) main {
    height: auto;
    max-height: none;
    min-height: calc(100dvh - 66px);
    padding: 12px;
    overflow: visible;
  }

  .verify-config-fullscreen {
    height: auto;
    min-height: calc(100dvh - 90px);
    padding: 12px 4px;
    overflow: visible;
  }

  .verify-main-grid { grid-template-columns: 1fr; }
  .verify-left-panel { height: 300px; }
  .verify-right-panel { display: flex; height: auto; overflow: visible; }
  .verify-compact-sections { grid-template-columns: 1fr; }
  .verify-bottom-action-bar { flex-basis: auto; flex-wrap: wrap; }
}

@media (max-width: 600px) {
  .verify-row-2,
  .verify-field-grid,
  .verify-metal-grid,
  .verify-stone-grid,
  .verify-setting-grid,
  .verify-dimension-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .verify-bottom-action-bar button { flex: 1 1 140px; }
}

.verify-right-panel { gap: 16px; }

.verify-overview-row {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.7fr);
  align-items: stretch;
  gap: 16px;
}

.verify-product-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 12px;
}

.verify-row-2 { gap: 16px; }

.verify-right-panel > .verify-overview-row > .verify-metal-card,
.verify-right-panel > .verify-row-2 > .verify-subcard {
  padding: 16px 18px;
}

.verify-right-panel .verify-subcard {
  border: 1px solid rgba(239,181,27, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 5px 16px rgba(80, 57, 24, 0.06);
}

.verify-subcard-title {
  margin: 0 0 12px;
  color: #29251f;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
}

.verify-title-icon {
  color: #06264a;
  font-size: 13px;
  font-weight: 700;
}

.verify-field-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 12px;
  row-gap: 14px;
}

.verify-metal-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.verify-stone-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.verify-setting-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.verify-dimension-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.verify-field-grid > div,
.verify-product-grid > .verify-subcard {
  position: relative;
  min-width: 0;
}

.verify-field-label {
  margin-bottom: 5px;
  color: #737373;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.25;
  text-transform: none;
}

.verify-input-wrapper select,
.verify-input-wrapper input {
  height: 36px;
  padding: 0 34px 0 10px;
  border: 1px solid rgba(239,181,27, 0.25);
  border-radius: 7px;
  background-color: rgba(255, 255, 255, 0.96);
  color: #29251f;
  font-size: 14px;
  font-weight: 500;
}

.verify-input-unit { right: 26px; }

.verify-field-grid .confidence-badge {
  position: absolute;
  top: 32px;
  right: 9px;
  z-index: 2;
  width: 8px;
  height: 8px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 50%;
  color: transparent;
  font-size: 0;
  cursor: help;
}

.verify-field-grid .confidence-badge.image-derived { background: #16a36a; }
.verify-field-grid .confidence-badge.estimated { background: #d99a21; }

.verify-product-grid > .verify-subcard > .confidence-badge {
  position: absolute;
  top: 37px;
  right: 29px;
  z-index: 2;
  width: 8px;
  height: 8px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 50%;
  color: transparent;
  font-size: 0;
  cursor: help;
}

.verify-product-grid > .verify-subcard > .confidence-badge.image-derived { background: #16a36a; }
.verify-product-grid > .verify-subcard > .confidence-badge.estimated { background: #d99a21; }

.verify-left-panel { height: 100%; align-self: stretch; margin-top: 0 !important; }
.verify-image-card {
  border-color: rgba(239,181,27, 0.2);
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 5px 16px rgba(80, 57, 24, 0.06);
}

.verify-config-fullscreen .verify-main-img {
  object-position: center;
  background: #f2f2f1;
}

.verify-config-fullscreen .verify-thumb-row {
  height: 44px;
  overflow: hidden;
}

.verify-config-fullscreen .verify-thumb {
  flex: 0 0 38px;
  width: 38px !important;
  height: 38px !important;
}

.verify-compact-sections { gap: 16px; }
.verify-compact-sections > .verify-subcard { padding: 14px 16px; }

.verify-bottom-action-bar {
  position: sticky;
  bottom: 0;
  z-index: 4;
  min-height: 58px;
  margin-top: 10px;
  padding: 10px 0 6px;
  border-top: 1px solid rgba(239,181,27, 0.2);
  background: rgba(248, 243, 234, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.verify-bottom-action-bar .verify-save-draft {
  min-width: 140px;
  height: 40px !important;
  padding: 0 18px !important;
  border: 1px solid rgba(6,38,74, 0.65) !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.88) !important;
  color: #06264a !important;
  font-size: 13px !important;
  font-weight: 600;
  white-space: nowrap;
}

.verify-bottom-action-bar .verify-generate-options {
  width: auto !important;
  min-width: 220px;
  height: 40px !important;
  padding: 0 20px !important;
  border-radius: 8px !important;
  background: linear-gradient(135deg, #ffd34e 0%, #e5a10b 100%) !important;
  color: #06264a !important;
  font-size: 13px !important;
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .verify-overview-row { grid-template-columns: 1fr; }
  .verify-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .verify-metal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .verify-left-panel { height: 340px; }
  .verify-bottom-action-bar { position: sticky; }
}

@media (max-width: 600px) {
  .verify-right-panel > .verify-overview-row > .verify-metal-card,
  .verify-right-panel > .verify-row-2 > .verify-subcard { padding: 13px; }
  .verify-field-grid,
  .verify-stone-grid,
  .verify-setting-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .verify-compact-sections > .verify-subcard { padding: 12px; }
  .verify-bottom-action-bar { gap: 8px; }
  .verify-bottom-action-bar .verify-save-draft {
    flex: 0 0 auto;
    min-width: 140px;
    padding: 0 10px !important;
  }
  .verify-bottom-action-bar .verify-generate-options {
    flex: 1 1 auto;
    min-width: 220px;
    padding: 0 10px !important;
  }
}


.verify-input-wrapper:has(select)::after {
  content: "";
  position: absolute;
  right: 9px;
  width: 19px;
  height: 19px;
  border: 1px solid rgba(239,181,27, 0.22);
  border-radius: 5px;
  background-color: rgba(239,181,27, 0.1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2306264a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 13px;
  pointer-events: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.verify-input-wrapper select {
  padding-right: 36px !important;
  background-image: none !important;
  cursor: pointer;
}

.verify-input-wrapper:has(select):hover::after,
.verify-input-wrapper:has(select:focus-visible)::after {
  border-color: rgba(6,38,74, 0.55);
  background-color: rgba(239,181,27, 0.2);
}

.verify-input-wrapper select:focus-visible {
  outline: 2px solid rgba(6,38,74, 0.28);
  outline-offset: 1px;
}

@media (min-width: 901px) {
  html:has(.brand-fullscreen),
  body:has(.brand-fullscreen),
  html:has(.configure-fullscreen),
  body:has(.configure-fullscreen),
  html:has(.verify-config-fullscreen),
  body:has(.verify-config-fullscreen) {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
    background: #fcfaf7 !important;
  }

  body:has(.brand-fullscreen) .bg-slider,
  body:has(.configure-fullscreen) .bg-slider,
  body:has(.verify-config-fullscreen) .bg-slider {
    display: none !important;
  }

  body:has(.brand-fullscreen) main,
  body:has(.configure-fullscreen) main,
  body:has(.verify-config-fullscreen) main {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: none;
    height: calc(100dvh - 66px);
    max-height: calc(100dvh - 66px);
    min-height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
  }

  body:has(.brand-fullscreen) #content,
  body:has(.configure-fullscreen) #content,
  body:has(.verify-config-fullscreen) #content {
    flex: 1;
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  .brand-fullscreen,
  .configure-fullscreen {
    height: 100%;
    min-height: 0;
    padding: 16px 48px;
    gap: 12px;
    overflow: hidden;
    max-width: 1560px;
    margin: 0 auto;
    box-sizing: border-box;
  }

  .brand-toprow { flex: 0 0 54px; gap: 12px; }
  .brand-toprow h1 { font-size: 28px; }
  .brand-three-columns {
    flex: 1;
    min-height: 0;
    gap: 20px;
    align-items: stretch;
  }

  .brand-sidebar-column {
    display: flex;
    flex: 0 0 200px;
    flex-direction: column;
    min-height: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .brand-sidebar-column > .brand-nav-tabs {
    width: 100%;
    height: max-content;
    min-height: 0;
    flex: 0 0 auto;
    align-self: flex-start;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .brand-sidebar-copy {
    display: flex;
    flex: 1;
    min-height: 0;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 14px 8px 20px;
    color: #4b3926;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    text-shadow: 0 1px 12px rgba(255, 255, 255, 0.7);
  }

  .brand-sidebar-kicker {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    line-height: 1.7;
    text-transform: uppercase;
  }

  .brand-sidebar-copy p {
    max-width: 180px;
    margin: 8px 0 2px;
    font: 600 20px/1.15 'Playfair Display', Georgia, serif;
  }

  .brand-sidebar-caption {
    color: #8a6a2b;
    font-size: 12px;
    font-weight: 600;
  }

  .brand-form-grid-fullscreen {
    max-height: 100%;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding-right: 8px;
    gap: 12px 18px;
    scrollbar-width: thin;
  }

  .brand-right-panel-fullscreen {
    max-height: 100%;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
  }

  .tmpl-row-3 { gap: 6px; }
  .tmpl-card { height: 128px; padding: 7px 5px; border-radius: 9px; }
  .tmpl-preview-mini {
    width: 100%;
    height: 92px;
    padding: 7px;
    gap: 5px;
    border-radius: 5px;
    align-items: stretch;
    overflow: hidden;
    text-align: left;
  }

  .tmpl-sheet-brand { font-size: 6px; font-weight: 800; line-height: 1.2; }
  .tmpl-sheet-heading { font-size: 5px; font-weight: 700; letter-spacing: 0.3px; }
  .tmpl-sheet-table { display: grid; grid-template-columns: 1fr 0.45fr; gap: 4px 6px; margin-top: 2px; }
  .tmpl-sheet-table i { display: block; height: 3px; border-radius: 2px; background: #e5e1d9; }
  .tmpl-sheet-table i:nth-child(even) { background: #d8d2c6; }
  .tmpl-sheet-total { height: 7px; margin-top: auto; border-radius: 2px; }
  .tmpl-preview-classic { border-top: 4px solid #06264a; font-family: Georgia, serif; }
  .tmpl-preview-classic .tmpl-sheet-brand { color: #06264a; text-align: center; }
  .tmpl-preview-classic .tmpl-sheet-heading { padding-bottom: 3px; border-bottom: 1px solid #d9c89e; text-align: center; }
  .tmpl-preview-classic .tmpl-sheet-total { background: #d9c18b; }
  .tmpl-preview-modern { border-top: 4px solid #149477; font-family: 'DM Sans', sans-serif; }
  .tmpl-preview-modern .tmpl-sheet-brand { color: #147b66; }
  .tmpl-preview-modern .tmpl-sheet-heading { color: #147b66; padding: 3px; background: #e8f5f1; }
  .tmpl-preview-modern .tmpl-sheet-total { background: #149477; }
  .tmpl-preview-minimal { border-top: 2px solid #565656; font-family: 'DM Sans', sans-serif; }
  .tmpl-preview-minimal .tmpl-sheet-brand { letter-spacing: 0.5px; }
  .tmpl-preview-minimal .tmpl-sheet-heading { padding-bottom: 3px; border-bottom: 1px solid #999; }
  .tmpl-preview-minimal .tmpl-sheet-table i { height: 2px; background: #aaa; }
  .tmpl-preview-minimal .tmpl-sheet-total { height: 4px; background: #555; }
}

/* Hide green/orange confidence dots as requested */
.confidence-badge {
  display: none !important;
}

/* Rates Drawer Backdrop & Sliding Panel */
.rates-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(20, 16, 10, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.rates-drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.rates-drawer {
  width: 100%;
  max-width: 580px;
  height: 100%;
  background: #fdfbf7;
  border-left: 1px solid rgba(239,181,27, 0.35);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.rates-drawer-backdrop.active .rates-drawer {
  transform: translateX(0);
}

.rates-drawer-header {
  padding: 16px 20px;
  background: rgba(248, 243, 234, 0.95);
  border-bottom: 1px solid rgba(239,181,27, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rates-drawer-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #29251f;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rates-drawer-close {
  background: transparent;
  border: none;
  font-size: 20px;
  color: #737373;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.rates-drawer-close:hover {
  background: rgba(239,181,27, 0.15);
  color: #29251f;
}

.rates-drawer-tabs {
  display: flex;
  padding: 8px 16px 0;
  gap: 4px;
  background: rgba(248, 243, 234, 0.6);
  border-bottom: 1px solid rgba(239,181,27, 0.2);
  overflow-x: auto;
}

.rates-tab-btn {
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #737373;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.rates-tab-btn.active {
  color: #06264a;
  border-bottom-color: #06264a;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 6px 6px 0 0;
}

.rates-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rates-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
}

.rates-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rates-field.full {
  grid-column: span 2;
}

.rates-label {
  font-size: 11px;
  font-weight: 600;
  color: #525252;
}

.rates-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.rates-input-wrap input,
.rates-input-wrap select {
  width: 100%;
  height: 36px;
  padding: 0 10px;
  border: 1px solid rgba(239,181,27, 0.3);
  border-radius: 7px;
  background: #ffffff;
  font-size: 13px;
  font-weight: 500;
  color: #29251f;
}

.rates-input-wrap input:focus,
.rates-input-wrap select:focus {
  border-color: #06264a;
  outline: 2px solid rgba(6,38,74, 0.2);
}

.purity-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin-top: 8px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(239,181,27, 0.2);
}

.purity-table th, .purity-table td {
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(239,181,27, 0.15);
}

.purity-table th {
  background: rgba(239,181,27, 0.12);
  font-weight: 700;
  color: #06264a;
}

.rates-formula-box {
  padding: 12px 16px;
  background: rgba(239,181,27, 0.08);
  border: 1px solid rgba(239,181,27, 0.25);
  border-radius: 9px;
  margin-top: auto;
}

.rates-formula-title {
  font-size: 11px;
  font-weight: 700;
  color: #06264a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.rates-formula-text {
  font-size: 11px;
  font-weight: 600;
  color: #374151;
  line-height: 1.4;
  font-family: monospace, monospace;
}

.rates-drawer-footer {
  padding: 14px 20px;
  background: rgba(248, 243, 234, 0.95);
  border-top: 1px solid rgba(239,181,27, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.btn-drawer-save {
  padding: 0 18px;
  height: 38px;
  background: linear-gradient(135deg, #ffd34e 0%, #e5a10b 100%);
  color: #06264a;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(6,38,74, 0.3);
}

.btn-drawer-reset {
  padding: 0 14px;
  height: 38px;
  background: rgba(255, 255, 255, 0.8);
  color: #06264a;
  border: 1px solid rgba(6,38,74, 0.4);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.btn-drawer-cancel {
  padding: 0 14px;
  height: 38px;
  background: transparent;
  color: #737373;
  border: 1px solid #d4d4d4;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

/* ==========================================================================
   APP DATABASE MODALS (User, Parties, Shop GST Details)
   ========================================================================== */

.app-modal {
  width: 90%;
  max-width: 640px;
  border: 1px solid rgba(239,181,27, 0.4);
  border-radius: 16px;
  padding: 0;
  background: #ffffff;
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);
  outline: none;
}

.app-modal::backdrop {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
}

.modal-header {
  padding: 16px 20px;
  background: linear-gradient(135deg, #2b2f3a 0%, #06264a 100%);
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
}

.modal-header h2 {
  margin: 0;
  font-size: 18px;
  font-family: 'Playfair Display', serif;
  color: #f6eee3;
}

.modal-close {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}

.modal-body {
  padding: 20px;
  max-height: 80vh;
  overflow-y: auto;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
}

.form-grid-2 .full-span {
  grid-column: span 2;
}

.modal-body label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #374151;
  margin-bottom: 4px;
}

.modal-body input[type="text"],
.modal-body input[type="email"],
.modal-body input[type="password"],
.modal-body input[type="number"],
.modal-body textarea {
  width: 100%;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(239,181,27, 0.4);
  font-size: 13px;
  font-family: 'DM Sans', sans-serif;
  box-sizing: border-box;
  outline: none;
}

.modal-body input:focus,
.modal-body textarea:focus {
  border-color: #06264a;
  box-shadow: 0 0 0 2px rgba(6,38,74, 0.15);
}

.primary-btn {
  background: linear-gradient(135deg, #ffd34e 0%, #e5a10b 100%);
  color: #06264a;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(6,38,74, 0.25);
  transition: transform 0.15s ease;
}

.primary-btn:active {
  transform: scale(0.98);
}

.secondary-btn {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.modal-msg {
  font-size: 12px;
  margin-top: 10px;
  font-weight: 600;
}

.modal-msg.success { color: #059669; }
.modal-msg.error { color: #dc2626; }

.modal-divider {
  border: 0;
  border-top: 1px solid rgba(239,181,27, 0.2);
  margin: 20px 0;
}

.parties-list-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
}

.party-item-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #f9f6f0;
  border: 1px solid rgba(239,181,27, 0.3);
  border-radius: 10px;
}

.party-item-name {
  font-size: 14px;
  font-weight: 700;
  color: #06264a;
}

.party-item-phone {
  font-size: 12px;
  color: #6b7280;
}

.party-item-delete {
  background: transparent;
  border: none;
  color: #dc2626;
  font-size: 16px;
  cursor: pointer;
}

/* ==========================================================================
   AUTH MODAL REDESIGN (CaratQuote Champagne Gold Luxury Theme)
   ========================================================================== */

.auth-modal-redesign {
  width: 90%;
  max-width: 480px;
  border: 1px solid rgba(239,181,27, 0.4);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 20px 50px rgba(6,38,74, 0.15), 0 10px 25px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.auth-modal-header {
  padding: 18px 24px;
  background: linear-gradient(135deg, #f9f5eb 0%, #eee4d3 100%);
  color: #2c2523;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(239,181,27, 0.3);
}

.auth-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-icon-badge {
  width: 40px;
  height: 40px;
  background: #ffffff;
  border: 1px solid rgba(239,181,27, 0.4);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(239,181,27, 0.15);
}

.auth-modal-header h2 {
  margin: 0;
  font-size: 18px;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: #2c2523;
}

.auth-modal-header p {
  margin: 2px 0 0 0;
  font-size: 11px;
  color: #6b5d52;
}

.modal-close-btn {
  background: rgba(44, 37, 35, 0.06);
  border: 1px solid rgba(44, 37, 35, 0.12);
  color: #2c2523;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: rgba(239,181,27, 0.2);
  color: #06264a;
  border-color: rgba(239,181,27, 0.4);
}

.auth-modal-body {
  padding: 22px 24px;
}

.auth-tabs {
  display: flex;
  background: #f5eee3;
  padding: 4px;
  border-radius: 12px;
  gap: 4px;
  margin-bottom: 20px;
  border: 1px solid rgba(239,181,27, 0.2);
}

.auth-tab-btn {
  flex: 1;
  padding: 10px;
  border: none;
  background: transparent;
  color: #6b5d52;
  font-size: 13px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.auth-tab-btn.active {
  background: #ffffff;
  color: #06264a;
  box-shadow: 0 2px 6px rgba(6,38,74, 0.15);
  border: 1px solid rgba(239,181,27, 0.3);
}

.input-field-group {
  margin-bottom: 16px;
}

.input-field-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #2c2523;
  margin-bottom: 6px;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.field-icon {
  position: absolute;
  left: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #06264a;
  pointer-events: none;
}

.input-with-icon input {
  width: 100%;
  padding: 12px 14px 12px 38px;
  border: 1.5px solid rgba(239,181,27, 0.3);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #06264a;
  background: #fdfbf7;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.input-with-icon input::placeholder {
  color: #a3998e;
  font-weight: 400;
}

.input-with-icon input:focus {
  border-color: #06264a;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(6,38,74, 0.18);
}

.btn-royal-submit {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #ffd34e 0%, #e5a10b 100%);
  color: #06264a;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(6,38,74, 0.3);
  transition: all 0.2s ease;
  margin-top: 10px;
}

.btn-royal-submit:hover {
  background: linear-gradient(135deg, #ffd34e 0%, #e5a10b 100%);
  box-shadow: 0 6px 18px rgba(6,38,74, 0.4);
  transform: translateY(-1px);
}

.btn-royal-submit:active {
  transform: translateY(0);
}

.modal-status-msg {
  font-size: 12px;
  font-weight: 700;
  margin-top: 14px;
  text-align: center;
}

.modal-status-msg.success {
  color: #059669;
}

.modal-status-msg.error {
  color: #dc2626;
}


/* Let workflow pages grow at browser zoom and short viewport heights.
   Keep card geometry and styling; use the document as the scroll container. */
@media screen {
  html:has(.verify-config-fullscreen, .brand-fullscreen, .configure-fullscreen),
  body:has(.verify-config-fullscreen, .brand-fullscreen, .configure-fullscreen) {
    height: auto;
    max-height: none;
    min-height: 100dvh;
    overflow-x: clip;
    overflow-y: visible;
  }
  html:has(.verify-config-fullscreen, .brand-fullscreen, .configure-fullscreen) {
    overflow-y: auto;
    scroll-padding-bottom: 100px;
  }
  body:has(.verify-config-fullscreen, .brand-fullscreen, .configure-fullscreen) main,
  body:has(.verify-config-fullscreen, .brand-fullscreen, .configure-fullscreen) #content {
    height: auto;
    max-height: none;
    overflow: visible;
  }
  .verify-config-fullscreen,
  .brand-fullscreen,
  .configure-fullscreen {
    height: auto;
    max-height: none;
    min-height: calc(100dvh - 66px);
    overflow: visible;
  }
  .verify-right-panel,
  .brand-form-grid-fullscreen,
  .brand-right-panel-fullscreen,
  .options-stack-fullscreen {
    height: auto;
    max-height: none;
    overflow: visible;
  }
  .verify-main-grid,
  .brand-three-columns,
  .configure-main-grid {
    flex-shrink: 0;
  }
  .verify-bottom-action-bar {
    flex-shrink: 0;
  }
}

/* Keep every screen reachable at narrow widths and browser zoom. */
@media screen {
  html, html.step-1, html:has(.verify-config-fullscreen,.brand-fullscreen,.configure-fullscreen) {
    height:auto !important; max-height:none !important; overflow:auto !important;
  }
  body, body.step-1, body:has(.verify-config-fullscreen,.brand-fullscreen,.configure-fullscreen) {
    height:auto !important; max-height:none !important; min-height:100dvh;
    overflow:visible !important;
  }
  body main, body.step-1 main, #content {
    height:auto !important; max-height:none !important; overflow:visible !important; min-width:0;
  }
  .analyze-detect-fullscreen, .analyze-detect-main-grid, .quote-page-wrapper {
    height:auto !important; max-height:none !important; overflow:visible !important;
  }
  .verify-main-grid > *, .configure-main-grid > *, .brand-three-columns > * {min-width:0;}
  .top-nav-menu {flex-wrap:wrap;}
  .configure-bottom-action-bar, .verify-bottom-action-bar {flex-wrap:wrap;height:auto;gap:12px;}
  .configure-bottom-action-bar > div {flex-wrap:wrap;}
  .breakdown-popover {max-height:65dvh;overflow:auto;}
  dialog.app-modal {max-height:calc(100dvh - 32px);overflow:auto;}
  @media (max-width:900px) {
    header {flex-wrap:wrap;gap:12px;height:auto !important;}
    .analyze-detect-main-grid {grid-template-columns:1fr !important;}
    .printable-quote-sheet {padding:20px !important;}
  }
}

/* Step 3 alignment only: preserve the existing typography, palette and flow. */
@media screen {
  .verify-config-fullscreen .verify-right-panel > .verify-row-2,
  .verify-config-fullscreen .verify-compact-sections {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 16px;
  }
  .verify-config-fullscreen .verify-right-panel > .verify-row-2 > .verify-subcard,
  .verify-config-fullscreen .verify-compact-sections > .verify-subcard {
    height: auto;
    min-width: 0;
    align-self: stretch;
    padding: 16px 18px;
    border-radius: 14px;
  }
  .verify-config-fullscreen .verify-pricing-controls {
    grid-column: 1 / -1;
    width: 100%;
  }
  .verify-config-fullscreen .verify-field-grid > div { min-width: 0; }
  .verify-config-fullscreen .verify-field-label { min-height: 2.5em; }
  .verify-config-fullscreen .verify-field-grid { align-items: start; column-gap: 12px !important; row-gap: 14px !important; }
  .verify-config-fullscreen .verify-stone-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .verify-config-fullscreen .verify-main-grid { padding-bottom: 24px; }
  .verify-config-fullscreen input,
  .verify-config-fullscreen select { scroll-margin-bottom: 150px; }
  .verify-config-fullscreen .verify-bottom-action-bar > div { min-width: 0; flex-wrap: wrap; }
  .verify-config-fullscreen .verify-pricing-controls > div:first-child,
  .verify-config-fullscreen .verify-pricing-table-container > div:first-child { flex-wrap: wrap; gap: 8px; }
  .verify-config-fullscreen .verify-pricing-table-container strong { flex-shrink: 0; }
  @media (max-width: 1200px) {
    .verify-config-fullscreen .verify-stone-grid,
    .verify-config-fullscreen .verify-setting-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  }
  @media (max-width: 600px) {
    .verify-config-fullscreen .verify-right-panel > .verify-row-2,
    .verify-config-fullscreen .verify-compact-sections { grid-template-columns: minmax(0, 1fr); }
    .verify-config-fullscreen .verify-pricing-controls > .verify-field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .verify-config-fullscreen .verify-bottom-action-bar > div { width: 100%; }
    .verify-config-fullscreen .verify-bottom-action-bar .verify-generate-options { min-width: 0; flex: 1 1 220px; }
    .verify-config-fullscreen .verify-bottom-action-bar .verify-save-draft { flex: 1 1 140px; }
    .verify-config-fullscreen input,
    .verify-config-fullscreen select { scroll-margin-bottom: 210px; }
  }
}

/* Keep the Step 3 preview sized to its contents rather than the pricing column. */
@media screen {
  .verify-config-fullscreen .verify-left-panel {
    align-self: start;
    height: auto;
    min-height: 0;
  }
  .verify-config-fullscreen .verify-image-card {
    height: auto;
    min-height: 0;
    justify-content: flex-start;
    gap: 12px;
  }
  .verify-config-fullscreen .verify-main-img {
    flex: none;
    height: 280px;
    min-height: 0;
    max-height: 280px;
    object-fit: contain;
  }
}

/* Options controls: independent selection with the existing selected-card theme. */
.configure-fullscreen .option-row-card-fullscreen { cursor: pointer; min-width: 0; grid-template-columns: minmax(180px,1.2fr) minmax(100px,.8fr) minmax(140px,1fr) minmax(225px,auto); }
.configure-fullscreen .option-col-4 { min-width: 0; gap: 8px; }
.configure-fullscreen .option-checkbox-label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: #06264a; font-weight: 700; font-size: 12px; }
.configure-fullscreen .option-checkbox { width: 18px; height: 18px; margin: 0; accent-color: #06264a; cursor: pointer; }
.configure-fullscreen .option-checkbox:focus-visible { outline: 2px solid #06264a; outline-offset: 3px; }
.configure-fullscreen .option-text-actions-row { display: flex; flex-wrap: nowrap; white-space: nowrap; gap: 6px; width: max-content; max-width: 100%; }
.configure-fullscreen .option-text-actions-row > * { flex: 0 0 auto; }
.configure-fullscreen .option-name-title { overflow-wrap: anywhere; }
.configure-fullscreen .option-checkbox-label { order: 3; }
.configure-fullscreen .option-text-actions-row { order: 2; }
.configure-fullscreen .option-price-gold { order: 1; }
.configure-fullscreen .breakdown-popover { cursor: auto; max-width: min(520px, calc(100vw - 40px)); overflow: auto; z-index: 30; }
.configure-fullscreen .btn-brand-save-full:disabled { opacity: .5; cursor: not-allowed; }
.custom-quote-option-dialog { width: min(620px, calc(100vw - 32px)); padding: 24px; color: var(--ink); border: 1px solid var(--gold); border-radius: 14px; background: var(--paper); }
.custom-quote-option-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.custom-quote-option-fields label { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.custom-quote-option-fields input, .custom-quote-option-fields select { width:100%; min-width:0; padding:10px; border:1px solid var(--line); border-radius:7px; font:inherit; background:white; color:inherit; }
.custom-quote-option-actions { display:flex; justify-content:flex-end; gap:12px; align-items:center; }
.custom-quote-option-actions .btn-brand-save-full { width:auto; margin:0; padding:0 20px; }
@media (max-width: 1500px) {
  .configure-fullscreen .option-row-card-fullscreen { grid-template-columns: minmax(0,1fr) minmax(225px,1fr); }
  .configure-fullscreen .option-col-1 { grid-column: 1 / -1; }
  .configure-fullscreen .option-col-4 { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .configure-fullscreen .option-row-card-fullscreen { grid-template-columns: minmax(0,1fr); text-align:left; padding:14px; }
  .configure-fullscreen .option-col-4 { align-items:flex-start; }
  .configure-fullscreen .detail-val { white-space:normal; overflow-wrap:anywhere; }
  .configure-fullscreen .breakdown-popover { position:fixed; top:15vh; bottom:auto; left:20px; right:20px; width:auto; max-height:70vh; }
  .custom-quote-option-fields { grid-template-columns:minmax(0,1fr); }
}
.configure-fullscreen .option-text-actions-row .btn-action-gold-text { line-height: 1.4; white-space: nowrap; }
.configure-fullscreen .option-checkbox-label { flex-direction:row; width:auto; }
@media (min-width:601px) and (max-width:1500px) {
  .configure-fullscreen .option-col-1,
  .configure-fullscreen .option-col-2,
  .configure-fullscreen .option-col-3 { grid-column:1; }
  .configure-fullscreen .option-col-4 { grid-column:2; grid-row:1 / span 3; }
}
@media (max-width:600px) {
  .configure-fullscreen .configure-toprow { flex-wrap:wrap; }
  .configure-fullscreen .configure-title-group { flex:1; min-width:0; }
  .configure-fullscreen .configure-toprow > .btn-back-pill { white-space:nowrap; flex-shrink:0; }
}

/* Leading round multi-select control; reserve space without moving action columns. */
.configure-fullscreen .option-row-card-fullscreen { padding-left: 58px; }
.configure-fullscreen .option-row-card-fullscreen > .option-checkbox-label {
  position: absolute; left: 8px; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; justify-content: center; margin: 0;
}
.configure-fullscreen .option-checkbox {
  appearance: none; -webkit-appearance: none; flex: 0 0 24px;
  width: 24px; height: 24px; padding: 0; border-radius: 50%;
  border: 2px solid #b79243; background: #fffdf8;
  display: grid; place-content: center;
}
.configure-fullscreen .option-checkbox::before {
  content: ''; width: 12px; height: 12px; border-radius: 50%;
  background: #06264a; transform: scale(0);
}
.configure-fullscreen .option-checkbox:checked::before { transform: scale(1); }
.configure-fullscreen .option-checkbox:checked { box-shadow: 0 0 0 4px rgba(6,38,74,.16); }
.configure-fullscreen .option-row-card-fullscreen.selected {
  background: #f7ecd3; border-color: #06264a;
  box-shadow: inset 4px 0 0 #06264a, 0 6px 20px rgba(6,38,74,.2);
}
/* ==========================================================================
   COMPREHENSIVE RESPONSIVE SUITE FOR MOBILE & TABLET DEVICES ONLY
   (Breakpoints: 1024px, 768px, 480px, down to 320px)
   DESKTOP (> 1024px) REMAINS 100% UNTOUCHED
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TABLET LANDSCAPE & COMPACT SCREENS (<= 1024px)
   -------------------------------------------------------------------------- */
@media screen and (max-width: 1024px) {
  html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  main {
    max-width: 100%;
    padding: 20px 20px 48px;
    box-sizing: border-box;
  }

  /* Header adjustments for tablet */
  header {
    padding: 10px 18px;
    gap: 12px;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
  }

  .top-nav-menu {
    gap: 8px;
  }

  .nav-pill-btn {
    padding: 7px 14px;
    font-size: 12.5px;
  }

  /* Step 2: Scan / Analyze */
  .analyze-detect-fullscreen {
    padding: 20px 18px;
    box-sizing: border-box;
    width: 100%;
  }

  .analyze-detect-main-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .scanner-card-fullscreen {
    height: 360px;
    max-height: 400px;
  }

  /* Step 3: Verify & Configure */
  .verify-config-fullscreen {
    padding: 0 16px 28px;
    width: 100%;
    box-sizing: border-box;
  }

  .verify-main-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .verify-left-panel {
    height: auto;
    max-height: none;
  }

  .verify-right-panel {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  /* Step 4: Shop Profile & Branding */
  .brand-fullscreen {
    padding: 18px 16px;
    box-sizing: border-box;
    width: 100%;
  }

  .brand-three-columns {
    flex-direction: column;
    gap: 18px;
    width: 100%;
  }

  .brand-sidebar-column {
    width: 100%;
    flex: none;
  }

  .brand-nav-tabs {
    width: 100%;
    flex-direction: row;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
    scrollbar-width: none;
    gap: 8px;
    flex-wrap: nowrap;
  }

  .brand-nav-tabs::-webkit-scrollbar {
    display: none;
  }

  .brand-tab {
    flex-shrink: 0;
    width: auto;
    height: 40px;
    padding: 0 14px;
    font-size: 12.5px;
    white-space: nowrap;
  }

  .brand-form-grid-fullscreen {
    width: 100%;
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .brand-right-panel-fullscreen {
    width: 100%;
    flex: none;
  }

  /* Step 5: Options Configure */
  .configure-fullscreen {
    padding: 16px 14px;
    box-sizing: border-box;
    width: 100%;
  }

  .configure-main-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .preview-sticky-panel {
    position: static;
    width: 100%;
    margin-top: 16px;
  }

  /* Modals */
  dialog.app-modal,
  .auth-modal-redesign {
    max-width: min(560px, calc(100vw - 24px)) !important;
    width: calc(100vw - 24px) !important;
  }
}

/* --------------------------------------------------------------------------
   2. TABLET PORTRAIT & MOBILE SCREENS (<= 768px)
   -------------------------------------------------------------------------- */
@media screen and (max-width: 768px) {
  html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  main {
    padding: 14px 12px 40px;
  }

  /* Smooth scroll containers without causing page horizontal overflow */
  body {
    -webkit-tap-highlight-color: transparent;
  }

  /* Header & Navigation: Compact, zero horizontal page scroll */
  header {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    height: auto !important;
    min-height: auto !important;
    padding: 10px 14px 8px !important;
    gap: 8px !important;
    box-sizing: border-box !important;
    width: 100% !important;
  }

  .logo {
    display: inline-flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    width: auto !important;
    max-width: 100% !important;
    font-size: 18px !important;
    gap: 8px !important;
    text-decoration: none !important;
  }

  .diamond {
    font-size: 24px !important;
  }

  .logo small {
    display: block;
    font-size: 8.5px;
    letter-spacing: 0.5px;
  }

  /* Top navigation pill row: horizontally scrollable, touch-friendly, never overflows page */
  .top-nav-menu {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    gap: 8px !important;
    padding: 2px 2px 6px !important;
    box-sizing: border-box !important;
  }

  .top-nav-menu::-webkit-scrollbar {
    display: none !important;
  }

  .nav-pill-btn {
    flex-shrink: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 8px 14px !important;
    font-size: 12px !important;
    min-height: 38px !important;
    border-radius: 20px !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
  }

  .user-avatar-badge {
    flex-shrink: 0 !important;
    width: 36px !important;
    height: 36px !important;
    margin-left: 2px;
  }

  /* Ensure legacy steps bar remains hidden */
  .page-top, .steps {
    display: none !important;
  }

  /* Step 1: Upload Card & Actions */
  body.step-1 {
    height: auto !important;
    min-height: 100dvh !important;
    overflow-y: auto !important;
  }

  body.step-1 main {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 14px 12px 40px !important;
  }

  .upload-left-col,
  body.step-1 .upload-left-col {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .upload-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .upload-card-container,
  body.step-1 .upload-card-container {
    padding: 22px 14px 18px !important;
    border-radius: 18px !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .cloud-upload-icon {
    width: 52px !important;
    height: 52px !important;
    margin: 0 auto 10px !important;
  }

  .upload-card-heading {
    font-size: 16px !important;
  }

  .browse-files-btn {
    padding: 11px 28px !important;
    font-size: 13.5px !important;
  }

  .upload-supports-text {
    margin: 14px 0 16px !important;
    font-size: 11.5px !important;
  }

  .file-format-badges {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 6px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .format-badge,
  body.step-1 .format-badge {
    cursor: pointer !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 6px 2px !important;
    border-radius: 10px !important;
    box-sizing: border-box !important;
  }

  .format-badge svg,
  body.step-1 .format-badge svg {
    width: 20px !important;
    height: 20px !important;
  }

  .format-badge span {
    font-size: 8px !important;
  }

  .actions,
  body.step-1 .actions {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 10px !important;
    margin-top: 16px !important;
  }

  .actions button,
  body.step-1 .actions button {
    width: 100% !important;
    min-width: 0 !important;
    height: 44px !important;
    padding: 0 16px !important;
    font-size: 13.5px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }

  .sample-designs {
    margin-top: 14px !important;
    width: 100% !important;
  }

  .sample-designs .samples-row {
    display: flex !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    gap: 8px !important;
    padding-bottom: 6px !important;
    width: 100% !important;
  }

  .sample-designs .samples-row::-webkit-scrollbar {
    display: none;
  }

  .sample-designs .sample-card {
    flex-shrink: 0 !important;
    width: 64px !important;
    height: 64px !important;
  }

  /* Step 2: Scan / Analyze */
  .analyze-detect-fullscreen {
    padding: 14px 10px !important;
    gap: 14px !important;
  }

  .analyze-detect-toprow {
    flex-wrap: wrap !important;
    gap: 10px !important;
  }

  .analyze-detect-toprow h1 {
    font-size: clamp(20px, 5.5vw, 26px) !important;
  }

  .scanner-card-fullscreen {
    height: 270px !important;
    min-height: 220px !important;
    max-height: 300px !important;
    border-radius: 18px !important;
  }

  .scanner-main-img {
    max-width: 90% !important;
    max-height: 85% !important;
  }

  .ai-tag-badge {
    font-size: 10px !important;
    padding: 3px 8px !important;
    border-radius: 6px !important;
  }

  .checklist-container-fullscreen {
    gap: 8px !important;
  }

  .checklist-container-fullscreen .check-item {
    height: 44px !important;
    padding: 0 12px !important;
    font-size: 12px !important;
    border-radius: 10px !important;
  }

  /* Step 3: Verify & Configure */
  .verify-config-fullscreen {
    padding: 0 8px 24px !important;
  }

  .verify-toprow {
    flex-wrap: wrap !important;
    gap: 10px !important;
    margin-top: 10px !important;
    margin-bottom: 12px !important;
  }

  .verify-toprow h1 {
    font-size: clamp(20px, 5.5vw, 26px) !important;
  }

  .verify-toprow .btn-back-pill {
    height: 36px !important;
    padding: 0 14px !important;
    font-size: 12px !important;
  }

  .verify-overview-row {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .verify-subcard {
    padding: 14px 12px !important;
    border-radius: 14px !important;
    box-sizing: border-box !important;
  }

  .verify-subcard-title {
    font-size: 14px !important;
    margin-bottom: 10px !important;
  }

  .verify-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .verify-metal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .verify-stone-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .verify-setting-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .verify-pricing-controls .verify-field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .verify-input-wrapper input,
  .verify-input-wrapper select {
    height: 40px !important;
    font-size: 13px !important;
    padding: 0 10px !important;
    box-sizing: border-box !important;
  }

  /* Sticky Bottom Action Bar on Mobile */
  .verify-bottom-action-bar,
  .configure-bottom-action-bar {
    position: sticky !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 50 !important;
    background: rgba(253, 251, 247, 0.96) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-top: 1.5px solid rgba(239,181,27, 0.4) !important;
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.08) !important;
    padding: 12px 10px !important;
    margin-top: 16px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    box-sizing: border-box !important;
  }

  .verify-bottom-action-bar > div {
    width: 100% !important;
    display: flex !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
    box-sizing: border-box !important;
  }

  .verify-bottom-action-bar button {
    flex: 1 1 130px !important;
    min-width: 0 !important;
    height: 42px !important;
    font-size: 13px !important;
    padding: 0 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }

  .configure-bottom-action-bar {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
  }

  .configure-bottom-action-bar .configure-bottom-left-group {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
  }

  .configure-bottom-action-bar .configure-total-block {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }

  .configure-bottom-action-bar .configure-total-label {
    font-size: 13px !important;
    color: #4b5563 !important;
    font-weight: 600 !important;
  }

  .configure-bottom-action-bar .configure-total-value {
    color: #06264a !important;
    font-size: 18px !important;
    font-weight: 800 !important;
  }

  .configure-bottom-action-bar .configure-bottom-actions-right {
    width: 100% !important;
    display: flex !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
    box-sizing: border-box !important;
  }

  .configure-bottom-action-bar .configure-btn-back {
    flex: 1 1 calc(50% - 4px) !important;
    min-width: 0 !important;
    height: 42px !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 13px !important;
    padding: 0 10px !important;
    border-radius: 8px !important;
  }

  .configure-bottom-action-bar .configure-btn-save-draft {
    flex: 1 1 calc(50% - 4px) !important;
    min-width: 0 !important;
    height: 42px !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 13px !important;
    padding: 0 10px !important;
    border-radius: 8px !important;
  }

  .configure-bottom-action-bar .configure-btn-continue {
    flex: 1 1 100% !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 42px !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    padding: 0 12px !important;
    box-sizing: border-box !important;
    border-radius: 8px !important;
  }

  /* Step 4: Shop Profile & Branding */
  .brand-fullscreen {
    padding: 12px 8px !important;
  }

  .brand-toprow {
    flex-wrap: wrap !important;
    gap: 10px !important;
  }

  .brand-toprow h1 {
    font-size: clamp(20px, 5.5vw, 26px) !important;
  }

  .brand-form-grid-fullscreen {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .brand-field input,
  .brand-field select,
  .brand-field textarea {
    font-size: 13px !important;
    box-sizing: border-box !important;
  }

  /* Step 5: Options (Configure) */
  .configure-fullscreen {
    padding: 10px 6px !important;
  }

  .configure-toprow {
    flex-wrap: wrap !important;
    gap: 10px !important;
  }

  .configure-toprow h1 {
    font-size: clamp(20px, 5.5vw, 26px) !important;
  }

  .option-row-card-fullscreen {
    display: flex !important;
    flex-direction: column !important;
    padding: 48px 14px 14px !important;
    gap: 10px !important;
    border-radius: 14px !important;
    box-sizing: border-box !important;
    position: relative !important;
  }

  .option-row-card-fullscreen > .option-checkbox-label {
    left: 12px !important;
    top: 8px !important;
    transform: none !important;
    position: absolute !important;
  }

  .option-col-1 {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
  }

  .option-col-2,
  .option-col-3 {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
    font-size: 12px !important;
  }

  .option-col-4 {
    width: 100% !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding-top: 10px !important;
    border-top: 1px dashed rgba(239,181,27, 0.3) !important;
  }

  .option-price-gold {
    font-size: 20px !important;
  }

  .option-text-actions-row {
    flex-wrap: wrap !important;
    gap: 6px !important;
  }

  .breakdown-popover {
    position: fixed !important;
    top: 8vh !important;
    left: 12px !important;
    right: 12px !important;
    width: auto !important;
    max-height: 84vh !important;
    overflow-y: auto !important;
    z-index: 1000 !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25) !important;
    border-radius: 16px !important;
    box-sizing: border-box !important;
  }

  .breakdown-popover table {
    display: block !important;
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  /* Step 6: Quotation Document / Sheet */
  .quote-page-wrapper {
    width: 100% !important;
    padding: 0 2px !important;
    box-sizing: border-box !important;
  }

  .quote-page-wrapper .panel.no-print {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    padding: 14px 12px !important;
    border-radius: 14px !important;
  }

  .quote-page-wrapper .panel.no-print h2 {
    font-size: 16px !important;
    text-align: center !important;
  }

  .quote-page-wrapper .panel.no-print > div {
    display: flex !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .quote-page-wrapper .panel.no-print button {
    flex: 1 1 50% !important;
    height: 40px !important;
    font-size: 12.5px !important;
    padding: 0 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }

  .printable-quote-sheet {
    padding: 18px 12px !important;
    border-radius: 12px !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Responsive Quotation Headers across all templates */
  .printable-quote-sheet > div:first-child {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 14px !important;
  }

  .printable-quote-sheet > div:first-child > div:last-child {
    text-align: left !important;
    width: 100% !important;
  }

  /* Customer info & product ref card */
  .printable-quote-sheet > div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    padding: 14px 12px !important;
  }

  .printable-quote-sheet > div[style*="grid-template-columns: 1fr 1fr"] > div:last-child {
    justify-content: flex-start !important;
  }

  /* Table responsive wrapper: table scrolls internally without scrolling page */
  .printable-quote-sheet table {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    font-size: 11.5px !important;
    box-sizing: border-box !important;
  }

  .printable-quote-sheet table th,
  .printable-quote-sheet table td {
    padding: 8px 8px !important;
    white-space: nowrap !important;
  }

  /* Commercial terms & payment grid */
  .printable-quote-sheet > div[style*="padding-top: 16px"] {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  /* Signatory row */
  .printable-quote-sheet > div[style*="margin-top: 40px"] {
    flex-direction: column !important;
    align-items: center !important;
    gap: 16px !important;
    text-align: center !important;
    margin-top: 24px !important;
  }

  /* Step 7: Customer Selection */
  .verify-row-2 {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  /* Enquiries / Saved Quotations */
  .library-view {
    padding: 14px 8px !important;
  }

  .library-heading h1 {
    font-size: clamp(22px, 5.5vw, 28px) !important;
  }

  .enquiry-card-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    padding: 12px 14px !important;
    box-sizing: border-box !important;
  }

  .enquiry-card-row > div:first-child {
    width: 100% !important;
  }

  .enquiry-card-row > div:last-child {
    width: 100% !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-top: 1px solid rgba(239,181,27, 0.2) !important;
    padding-top: 10px !important;
  }

  .enquiry-card-row button.btn-brand-save-full {
    flex: 1 !important;
    height: 36px !important;
    font-size: 12.5px !important;
    margin: 0 8px 0 0 !important;
  }

  /* Rates Drawer: Full screen responsive on mobile */
  .rates-drawer {
    width: 100% !important;
    max-width: 100% !important;
    border-left: none !important;
  }

  .rates-drawer-tabs {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    flex-wrap: nowrap !important;
  }

  .rates-drawer-tabs::-webkit-scrollbar {
    display: none !important;
  }

  .rates-tab-btn {
    flex-shrink: 0 !important;
  }

  .rates-section-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  /* Modals: Mobile friendly sizing and touch targets */
  dialog.app-modal,
  .auth-modal-redesign {
    max-width: calc(100vw - 16px) !important;
    width: calc(100vw - 16px) !important;
    max-height: calc(100dvh - 20px) !important;
    border-radius: 16px !important;
    margin: auto !important;
  }

  .modal-header,
  .auth-modal-header {
    padding: 14px 16px !important;
  }

  .modal-body,
  .auth-modal-body {
    padding: 16px 14px !important;
    max-height: calc(100dvh - 90px) !important;
    overflow-y: auto !important;
    box-sizing: border-box !important;
  }

  .form-grid-2 {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .form-grid-2 .full-span {
    grid-column: span 1 !important;
  }

  .auth-tabs {
    gap: 2px !important;
    padding: 3px !important;
  }

  .auth-tab-btn {
    padding: 8px 6px !important;
    font-size: 12px !important;
  }
}

/* --------------------------------------------------------------------------
   3. SMALL MOBILE PHONES (<= 480px down to 320px)
   -------------------------------------------------------------------------- */
@media screen and (max-width: 480px) {
  main {
    padding: 10px 8px 36px !important;
  }

  /* Navigation Pills: extra compact for smallest phones */
  .nav-pill-btn {
    padding: 6px 10px !important;
    font-size: 11.5px !important;
    gap: 4px !important;
  }

  /* Upload Badges */
  .format-badge {
    width: 42px !important;
    padding: 4px 2px !important;
  }

  .format-badge svg {
    width: 20px !important;
    height: 20px !important;
  }

  .format-badge span {
    font-size: 8px !important;
  }

  .browse-files-btn {
    padding: 10px 22px !important;
    font-size: 13px !important;
  }

  /* Step 2 Scanner */
  .scanner-card-fullscreen {
    height: 230px !important;
    min-height: 200px !important;
  }

  /* Step 3 Verify: 1 column for tight numeric inputs with unit tags */
  .verify-product-grid,
  .verify-metal-grid,
  .verify-setting-grid,
  .verify-pricing-controls .verify-field-grid {
    grid-template-columns: 1fr !important;
  }

  .verify-overview-row {
    grid-template-columns: 1fr !important;
  }

  .verify-bottom-action-bar button {
    flex: 1 1 100% !important;
    width: 100% !important;
  }

  /* Step 5 Options Card */
  .option-row-card-fullscreen {
    padding: 46px 10px 12px !important;
  }

  .option-col-2,
  .option-col-3 {
    grid-template-columns: 1fr !important;
  }

  .option-col-4 {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }

  /* Rates Drawer */
  .rates-section-grid {
    grid-template-columns: 1fr !important;
  }

  .rates-field.full {
    grid-column: span 1 !important;
  }

  .rates-drawer-footer {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
  }

  .rates-drawer-footer > div {
    display: flex !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .rates-drawer-footer button {
    flex: 1 !important;
    height: 38px !important;
  }
}

/* A4 output only: one complete option per printed quotation page. */
.print-only-quotations { display: none; }
@page { size: A4 portrait; margin: 0; }
@media print {
  html, body, main { width: auto !important; min-width: 0 !important; height: auto !important; min-height: 0 !important; overflow: visible !important; padding: 0 !important; margin: 0 !important; }
  .page-top, #notice, #bgAnalyze, .bg-slider, .bg-tagline-layer, .screen-quotation, .toast { display: none !important; }
  .print-only-quotations { display: block !important; }
  .print-only-quotations > .quote-page-wrapper {
    box-sizing: border-box !important;
    padding: 10mm 12mm !important;
    margin: 0 !important;
    width: 100% !important;
    break-after: page;
    page-break-after: always;
  }
  .print-only-quotations > .quote-page-wrapper:last-child { break-after: auto; page-break-after: auto; }
  .printable-quote-sheet { border-radius: 0 !important; color-adjust: exact; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .printable-quote-sheet * { box-sizing: border-box; overflow-wrap: anywhere; }
  .printable-quote-sheet > div { margin-bottom: 12px !important; }
  .printable-quote-sheet > div:first-child { padding-bottom: 10px !important; margin-bottom: 14px !important; }
  .printable-quote-sheet > div:last-child { margin-top: 18px !important; padding-top: 8px !important; }
  .printable-quote-sheet table { table-layout: fixed; margin: 8px 0 12px !important; }
  .printable-quote-sheet > table { font-size: 10px !important; }
  .printable-quote-sheet > table > thead th { padding: 7px 5px !important; }
  .printable-quote-sheet > table > tbody > tr > td { padding: 6px 5px !important; font-size: 10px !important; }
  .printable-quote-sheet > table > tbody > tr > td[colspan] { padding: 0 !important; }
  .printable-quote-sheet table table { font-size: 11px !important; }
  .printable-quote-sheet table table td, .printable-quote-sheet table table th { padding: 3px 7px !important; }
  .printable-quote-sheet table table th:first-child { width: 76%; }
  .printable-quote-sheet table table th:last-child { width: 24%; }
  .printable-quote-sheet thead { display: table-header-group; }
  .printable-quote-sheet tr, .printable-quote-sheet > div:first-child, .printable-quote-sheet > div:last-child { break-inside: avoid; }
  .printable-quote-sheet h1 { font-size: 22px !important; }
  .printable-quote-sheet h3 { font-size: 13px !important; }
}
/* Mobile usability corrections: screen-only; desktop and A4 remain unchanged. */
@media screen and (max-width: 768px) {
  header { position: relative !important; }
  .top-nav-menu { display: grid !important; grid-template-columns: repeat(3,minmax(0,1fr)); overflow: visible !important; gap: 6px !important; }
  .top-nav-menu .nav-pill-btn { width: 100%; min-width: 0; min-height: 44px; padding: 6px 4px !important; font-size: 11px !important; justify-content: center; white-space: normal; }
  .top-nav-menu .user-avatar-badge { justify-self: center; width: 44px; height: 44px; margin: 0; }
  input:not([type=checkbox]):not([type=radio]), select, textarea,
  .verify-input-wrapper input, .verify-input-wrapper select,
  .brand-field input, .brand-field select, .brand-field textarea { font-size: 16px !important; min-height: 44px; max-width: 100%; }
  .verify-input-wrapper input, .verify-input-wrapper select { height: 44px !important; }
  .verify-input-wrapper { min-width: 0; }
  .option-text-actions-row { flex-wrap: nowrap !important; gap: 5px !important; width: 100%; }
  .option-text-actions-row button { min-height: 44px; padding: 3px 0; font-size: 12px; }
  .option-col-4 { flex-direction: column !important; align-items: flex-start !important; }
  .option-checkbox-label { min-height: 44px; min-width: 44px; }
  dialog.app-modal { width: calc(100% - 24px) !important; max-width: calc(100% - 24px) !important; max-height: calc(100dvh - 24px) !important; box-sizing: border-box; }
  .verify-bottom-action-bar { padding-bottom: max(10px,env(safe-area-inset-bottom)) !important; }
  .brand-nav-tabs { flex-wrap: wrap !important; overflow: visible !important; }
  .brand-nav-tabs .brand-tab { flex: 1 1 130px; min-width: 0 !important; white-space: normal; min-height: 44px; }
}
@media screen and (max-width: 380px) {
  .verify-field-grid { grid-template-columns: minmax(0,1fr) !important; }
}
@media screen and (max-width: 1024px) and (max-height: 500px) {
  .verify-bottom-action-bar, .configure-bottom-action-bar { position: static !important; }
  dialog.app-modal { max-height: calc(100dvh - 16px) !important; }
}
@media screen and (max-width: 1024px) {
 .brand-nav-tabs { flex-wrap: wrap !important; overflow: visible !important; }
}
@media screen and (max-width: 768px) {
 .sample-designs .samples-row { flex-wrap: wrap !important; overflow: visible !important; }
 .tmpl-row-3 { display: grid !important; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px !important; }
 .tmpl-row-3 .tmpl-card { min-width: 0 !important; width: auto !important; padding: 6px !important; }
 .screen-quotation .printable-quote-sheet > table,
 .screen-quotation .printable-quote-sheet > table > tbody { display: block !important; overflow: visible !important; width: 100% !important; }
 .screen-quotation .printable-quote-sheet > table > thead { display: none !important; }
 .screen-quotation .printable-quote-sheet > table > tbody > tr { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
 .screen-quotation .printable-quote-sheet > table > tbody > tr > td { min-width: 0; white-space: normal !important; overflow-wrap: anywhere; text-align: left !important; }
 .screen-quotation .printable-quote-sheet > table > tbody > tr > td[colspan] { grid-column: 1 / -1; padding: 0 !important; }
 .screen-quotation .printable-quote-sheet > table > tbody > tr > td:not([colspan])::before { display: block; font-size: 11px; font-weight: 600; margin-bottom: 4px; }
 .screen-quotation .printable-quote-sheet > table > tbody > tr > td:nth-child(1):not([colspan])::before { content: 'Option'; }
 .screen-quotation .printable-quote-sheet > table > tbody > tr > td:nth-child(2)::before { content: 'Metal'; }
 .screen-quotation .printable-quote-sheet > table > tbody > tr > td:nth-child(3)::before { content: 'Net Weight'; }
 .screen-quotation .printable-quote-sheet > table > tbody > tr > td:nth-child(4)::before { content: 'Stone Type'; }
 .screen-quotation .printable-quote-sheet > table > tbody > tr > td:nth-child(5)::before { content: 'Grade'; }
 .screen-quotation .printable-quote-sheet > table > tbody > tr > td:nth-child(6)::before { content: 'Total Price'; }
 .screen-quotation .printable-quote-sheet table table { display: table !important; table-layout: fixed; overflow: visible !important; }
 .screen-quotation .printable-quote-sheet table table td,
 .screen-quotation .printable-quote-sheet table table th { white-space: normal !important; overflow-wrap: anywhere; }
 .screen-quotation .printable-quote-sheet table table th:first-child { width: 65%; }
}
@media screen and (max-width: 768px) {
 .configure-toprow { display: grid !important; grid-template-columns: 40px minmax(0,1fr); align-items: start !important; }
 .configure-title-group { min-width: 0; }
 .configure-toprow > .btn-back-pill { grid-column: 2; justify-self: start; margin: 0; }
 .configure-title-group p { line-height: 1.5; }
}
@media screen and (max-width: 768px) {
 dialog.auth-modal-redesign { overflow-y: auto !important; }
 .auth-modal-body { max-height: none !important; overflow: visible !important; }
 .auth-modal-header { flex-shrink: 0; }
}
.mobile-menu-toggle { display: none; }
.mobile-nav-drawer { border: 1px solid #e5d5b9; background: #faf6ef; color: #302923; padding: 20px; }
.mobile-nav-drawer::backdrop { background: rgba(38,30,20,.4); }
.mobile-nav-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.mobile-nav-heading button { min-width: 44px; min-height: 44px; border: 1px solid #b58b35; border-radius: 12px; background: transparent; color: inherit; }
@media screen and (max-width: 768px) {
 header { flex-direction: row !important; flex-wrap: nowrap !important; align-items: center !important; justify-content: space-between; }
 .mobile-menu-toggle { display: block; flex-shrink: 0; width: 44px; height: 44px; border: 1px solid #b58b35; border-radius: 12px; background: #fffaf1; color: #997129; font-size: 24px; }
 .mobile-nav-drawer { position: fixed; inset: 0 auto 0 0; margin: 0; width: min(300px,86vw); max-width: 86vw; height: 100dvh; max-height: 100dvh; box-sizing: border-box; border-radius: 0 16px 16px 0; overflow-y: auto; }
 .mobile-nav-drawer .top-nav-menu { display: flex !important; flex-direction: column !important; align-items: stretch !important; }
 .mobile-nav-drawer .nav-pill-btn { justify-content: flex-start !important; padding: 12px 16px !important; font-size: 14px !important; }
 .mobile-nav-drawer .user-avatar-badge { align-self: flex-start; margin-top: 12px; }
 .analyze-detect-toprow { display: grid !important; grid-template-columns: 44px minmax(0,1fr); align-items: start !important; gap: 12px !important; }
 .analyze-title-group { min-width: 0; }
 .analyze-title-group h1 { white-space: normal !important; margin-top: 0 !important; font-size: clamp(20px,5vw,26px) !important; }
 .verify-stone-grid > div:first-child { grid-column: 1 / -1; }
 .verify-input-wrapper select { padding-right: 36px !important; }
 .configure-title-group h1 { white-space: normal !important; overflow-wrap: anywhere; }
 .configure-toprow > .btn-back-pill { grid-column: 1 / -1; width: 100%; min-height: 44px; margin-top: 8px; }
 .verify-bottom-action-bar > button { width: 100% !important; min-height: 48px !important; height: auto !important; flex: 0 0 auto !important; padding: 12px 16px !important; line-height: 1.4 !important; }
}
.mobile-profile-label { display: none; }
.mobile-nav-heading { gap: 10px; }
.mobile-nav-heading .logo { min-width: 0; font-size: 20px !important; gap: 6px !important; }
.mobile-nav-heading .logo small { font-size: 6.5px !important; letter-spacing: .6px !important; white-space: nowrap; }
.mobile-nav-heading .logo .diamond { font-size: 24px !important; }
.mobile-nav-heading > button { flex-shrink: 0; }
@media screen and (max-width: 768px) {
 .mobile-nav-drawer .top-nav-menu .user-avatar-badge {
   display: flex; align-items: center; justify-content: flex-start; gap: 12px;
   align-self: stretch; width: 100%; height: auto; min-height: 48px;
   margin: 8px 0 0; padding: 8px 16px; border-radius: 24px;
   border: 1px solid #e5d5b9; background: #fff; box-sizing: border-box;
   color: #302923; font-family: inherit; font-size: 14px; text-align: left;
 }
 .mobile-nav-drawer .user-avatar-badge svg { width: 30px; height: 30px; flex-shrink: 0; }
 .mobile-nav-drawer .mobile-profile-label { display: inline; }
}
@media screen and (max-width: 768px) {
 .mobile-nav-drawer .top-nav-menu #userBtn { width: 100% !important; max-width: none !important; height: auto !important; border-radius: 24px !important; overflow: visible !important; justify-content: flex-start !important; }
 .mobile-nav-drawer #userBtn svg { width: 30px !important; height: 30px !important; }
}
@media screen and (max-width: 768px) {
 body.step-1 .actions { display: grid !important; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px !important; width: 100%; }
 body.step-1 .actions button { width: 100% !important; min-width: 0 !important; min-height: 48px !important; height: auto !important; padding: 10px 8px !important; font-size: 12px !important; white-space: normal !important; line-height: 1.35 !important; }
}
.quote-saving-loader { width: min(360px,calc(100vw - 32px)); box-sizing: border-box; border: 1px solid #c7a45a; border-radius: 20px; padding: 32px 24px; text-align: center; background: #fcf8ef; color: #3c3023; box-shadow: 0 18px 60px #30201033; }
.quote-saving-loader::backdrop { background: #30261966; backdrop-filter: blur(3px); }
.quote-saving-loader h2 { font-size: 22px; margin: 12px 0; }
.quote-saving-loader p { line-height: 1.6; font-size: 14px; }
.quote-saving-loader small { color: #88734c; }
.jewel-loader-gem { color: #b18a34; font-size: 72px; line-height: 1; animation: jewel-glow 1.4s ease-in-out infinite; }
@keyframes jewel-glow { 0%,100% { transform: scale(.9) rotate(-8deg); opacity:.6; } 50% { transform: scale(1.08) rotate(8deg); opacity:1; text-shadow: 0 0 20px #d9b95688; } }
@media (prefers-reduced-motion: reduce) { .jewel-loader-gem { animation: none; } }
@media print { .quote-saving-loader { display:none !important; } }

/* Requested logo and Step 3 detail rows. */
.logo .studio-logo { display:block; width:280px; max-width:100%; height:auto; mix-blend-mode:multiply; }
.verify-config-fullscreen .verify-stone-rows { display:flex !important; flex-direction:column; gap:16px; }
.verify-config-fullscreen .verify-stone-rows .verify-stone-grid { grid-template-columns:repeat(9,minmax(0,1fr)) !important; gap:10px; }
.verify-config-fullscreen .verify-stone-rows .verify-stone-grid > div:first-child { grid-column:auto; }
.verify-config-fullscreen .verify-metal-grid { grid-template-columns:repeat(6,minmax(0,1fr)) !important; }
.verify-input-wrapper output { display:block; padding:10px 8px; font-weight:600; min-width:0; overflow-wrap:anywhere; }
@media screen and (min-width:769px) {
 .verify-config-fullscreen .verify-left-panel { position:sticky !important; top:16px; align-self:start; height:auto !important; }
 .verify-config-fullscreen .verify-main-grid, .verify-config-fullscreen { overflow:visible !important; }
}
@media screen and (min-width:769px) and (max-width:1200px) {
 .verify-config-fullscreen .verify-stone-rows .verify-stone-grid { grid-template-columns:repeat(5,minmax(0,1fr)) !important; }
 .verify-config-fullscreen .verify-metal-grid { grid-template-columns:repeat(3,minmax(0,1fr)) !important; }
}
@media screen and (max-width:768px) {
 .logo .studio-logo { width:210px; }
 .verify-config-fullscreen .verify-stone-rows .verify-stone-grid, .verify-config-fullscreen .verify-metal-grid { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
 .verify-config-fullscreen .verify-left-panel { position:static !important; }
}

/* Option A: Exact Logo Royal Gold (#fac527 to #df9210) & Midnight Navy (#002248) Palette */
:root {
  --ink: #002248;
  --gold: #f7b518;
  --gold-light: #fac527;
  --gold-dark: #df9210;
  --paper: #f8fafc;
  --muted: #64748b;
  --line: rgba(0, 34, 72, 0.14);
}
body { color: var(--ink); }
h1, h2, h3, h4, .verify-subcard-title, .nav-pill-btn { color: #002248; }

/* Step 1 Upload Card Elements */
.step-badge {
  background: linear-gradient(135deg, #fac527 0%, #df9210 100%) !important;
  color: #002248 !important;
}
.upload-card-container {
  border-color: #f7b518 !important;
  box-shadow: 0 16px 48px rgba(223, 146, 16, 0.12), 0 2px 10px rgba(0, 0, 0, 0.02) !important;
}
.upload-card-container:hover, .upload-card-container.dragover {
  border-color: #df9210 !important;
  box-shadow: 0 20px 56px rgba(223, 146, 16, 0.22) !important;
}
.cloud-upload-icon {
  filter: drop-shadow(0 4px 10px rgba(223, 146, 16, 0.30)) !important;
}
.cloud-upload-icon path {
  stroke: #df9210 !important;
}
.browse-files-btn {
  background: linear-gradient(135deg, #fac527 0%, #df9210 100%) !important;
  color: #002248 !important;
  box-shadow: 0 4px 16px rgba(223, 146, 16, 0.35) !important;
}
.browse-files-btn:hover {
  background: linear-gradient(135deg, #e09f15 0%, #c77e08 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 24px rgba(223, 146, 16, 0.48) !important;
}
.actions button.primary, button[data-action="analyze"] {
  background: linear-gradient(135deg, #fac527 0%, #df9210 100%) !important;
  color: #002248 !important;
  border: none !important;
  box-shadow: 0 6px 20px rgba(223, 146, 16, 0.38) !important;
}
.actions button.primary:hover:not(:disabled), button[data-action="analyze"]:hover:not(:disabled) {
  background: linear-gradient(135deg, #e09f15 0%, #c77e08 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 24px rgba(223, 146, 16, 0.48) !important;
}
body.step-1 .actions button[data-action="manual"] {
  border: 1.5px solid #f7b518 !important;
  color: #002248 !important;
}

/* Primary actions and badges across all steps */
.nav-pill-btn.active, .verify-badge, .verify-generate-options, .btn-primary, .btn-brand-save-full, button[data-action="print"] {
  background: linear-gradient(135deg, #fac527 0%, #df9210 100%) !important;
  color: #002248 !important;
  border-color: #df9210 !important;
}
.nav-pill-btn.active:hover, .verify-generate-options:hover:not(:disabled), .btn-primary:hover:not(:disabled), .btn-brand-save-full:hover:not(:disabled), button[data-action="print"]:hover:not(:disabled) {
  background: linear-gradient(135deg, #e09f15 0%, #c77e08 100%) !important;
  color: #ffffff !important;
}
.verify-subcard, .verify-image-card, .verify-input-wrapper {
  border-color: rgba(0, 34, 72, 0.16) !important;
}
.verify-title-icon, .nav-icon {
  color: #df9210 !important;
}
.verify-config-fullscreen [hidden] {
  display: none !important;
}

/* Bottom action bars */
body .verify-bottom-action-bar .verify-generate-options,
body .verify-bottom-action-bar .verify-generate-options:hover,
body .configure-bottom-action-bar .configure-btn-continue,
body .configure-bottom-action-bar .configure-btn-continue:hover:not(:disabled) {
  background: linear-gradient(135deg, #fac527 0%, #df9210 100%) !important;
  color: #002248 !important;
  border-color: #df9210 !important;
}

/* App-wide brand surfaces and interaction states */
@media screen {
  .brand-nav-tab.active, .brand-nav-item.active, .brand-tab.active,
  .brand-nav-tabs button.active, .brand-sidebar button.active {
    background: linear-gradient(135deg, #fac527 0%, #df9210 100%) !important;
    color: #002248 !important;
    border-color: #f7b518 !important;
    box-shadow: 0 4px 14px rgba(223, 146, 16, 0.24) !important;
  }
  input:focus, select:focus, textarea:focus {
    border-color: #f7b518 !important;
    box-shadow: 0 0 0 3px rgba(247, 181, 24, 0.20) !important;
    outline-color: #f7b518 !important;
  }
  .analyze-progress-fill, .analysis-progress-fill, .progress-fill, .progress-fill-fullscreen {
    background: linear-gradient(90deg, #fac527 0%, #df9210 100%) !important;
  }
  .progress-track-fullscreen {
    background: rgba(0, 34, 72, 0.10) !important;
  }
  .diamond-glow-marker {
    color: #df9210 !important;
    text-shadow: 0 0 10px rgba(250, 197, 39, 0.55) !important;
  }
  .brand-tab.active svg {
    color: #002248 !important;
  }
  .progress-labels-fullscreen {
    color: #002248 !important;
  }
}

/* Compact A4 spacing; keep commercial terms and signature together. */
.quote-closing { margin-top:16px; }
@media print {
 .print-only-quotations > .quote-page-wrapper { padding:8mm 10mm !important; }
 .printable-quote-sheet { padding:16px !important; line-height:1.35 !important; border:0 !important; box-shadow:none !important; }
 .printable-quote-sheet > div { margin-bottom:9px !important; }
 .printable-quote-sheet > div:first-child { margin-bottom:10px !important; padding-bottom:8px !important; }
 .printable-quote-sheet > div:first-child > div { min-width:0; }
 .printable-quote-sheet > div:first-child > div:first-child { flex:1; }
 .printable-quote-sheet > div:first-child > div:last-child { flex-shrink:0; }
 .printable-quote-sheet h1 { font-size:19px !important; line-height:1.2 !important; }
 .printable-quote-sheet h2 { font-size:17px !important; }
 .printable-quote-sheet table table { font-size:10px !important; }
 .printable-quote-sheet table table td,.printable-quote-sheet table table th { padding:2px 6px !important; }
 .quote-closing { break-inside:avoid; page-break-inside:avoid; margin-top:8px !important; }
 .quote-closing > div:first-child { padding-top:8px !important; gap:16px !important; font-size:10px !important; }
 .quote-closing > div:last-child { margin-top:14px !important; padding-top:6px !important; }
}

/* Keep saved quotations reachable without changing browser zoom. */
@media screen {
  .enquiry-list-wrapper {
    max-height: max(240px, calc(100dvh - 260px));
    overflow-y: scroll;
    scrollbar-gutter: stable;
    scrollbar-width: auto;
    scrollbar-color: #a88132 #eee7da;
    padding-right: 10px;
    padding-bottom: 4px;
  }
  .enquiry-list-wrapper::-webkit-scrollbar { width: 12px; }
  .enquiry-list-wrapper::-webkit-scrollbar-track { background: #eee7da; border-radius: 8px; }
  .enquiry-list-wrapper::-webkit-scrollbar-thumb { background: #a88132; border: 2px solid #eee7da; border-radius: 8px; }
  .enquiry-card-row > div { min-width: 0; }
  .enquiry-card-row p { overflow-wrap: anywhere; }
}

/* Quotation typography: separate identity, document details and customer information. */
.printable-quote-sheet .quotation-header {
  display: grid !important;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start !important;
}
.printable-quote-sheet .quotation-header > div { min-width: 0; }
.printable-quote-sheet .quotation-header > div:first-child { align-items: flex-start !important; gap: 12px !important; }
.printable-quote-sheet .quotation-header > div:first-child > div { min-width: 0; }
.printable-quote-sheet .quotation-header img { width: 66px; max-height: 52px !important; flex-shrink: 0; }
.printable-quote-sheet .quotation-header h1 { font-size: 20px !important; line-height: 1.25; overflow-wrap: anywhere; }
.printable-quote-sheet .quotation-header h2 { font-size: 17px !important; line-height: 1.35; }
.printable-quote-sheet .quotation-header p, .printable-quote-sheet .quotation-header > div:last-child > div { font-size: 11px !important; line-height: 1.5; margin-top: 5px !important; overflow-wrap: anywhere; }
.printable-quote-sheet .quotation-header p:empty { display: none; }
.printable-quote-sheet .quotation-parties { grid-template-columns: minmax(0,1fr) minmax(0,1fr) !important; gap: 28px !important; }
.printable-quote-sheet .quotation-parties > div { min-width: 0; }
.printable-quote-sheet .quotation-parties > div:last-child { justify-content: flex-start !important; }
.printable-quote-sheet .quotation-parties img { width: 64px !important; height: 64px !important; flex-shrink: 0; }
.printable-quote-sheet .quotation-parties p { line-height: 1.5; overflow-wrap: anywhere; }
@media screen {
  .screen-quotation .printable-quote-sheet { padding: 32px !important; line-height: 1.5; }
  .screen-quotation .printable-quote-sheet > table { table-layout: fixed; }
  .screen-quotation .printable-quote-sheet > table > thead th { font-size: 11px; padding: 10px 8px !important; }
  .screen-quotation .printable-quote-sheet > table > tbody > tr > td { font-size: 12px !important; padding: 12px 8px !important; overflow-wrap: anywhere; }
  .screen-quotation .printable-quote-sheet > table > tbody > tr > td[colspan] { padding: 0 0 20px !important; }
  .screen-quotation .printable-quote-sheet > table > thead th:first-child { width: 25%; }
  .screen-quotation .printable-quote-sheet > table > thead th:last-child { width: 17%; }
  .screen-quotation .printable-quote-sheet table table { table-layout: fixed; }
  .screen-quotation .printable-quote-sheet table table td { line-height: 1.5; padding-top: 7px !important; padding-bottom: 7px !important; }
}
@media screen and (max-width: 600px) {
  .screen-quotation .printable-quote-sheet { padding: 18px !important; }
  .printable-quote-sheet .quotation-header, .printable-quote-sheet .quotation-parties { grid-template-columns: minmax(0,1fr) !important; gap: 18px !important; }
  .printable-quote-sheet .quotation-header > div:last-child { text-align: left !important; }
}
