/* Scout app styles. Extends ../styles.css from the marketing site so
 * the calculator pages keep the Plus Jakarta Sans font, teal palette, and
 * card style established on the landing page. App-only patterns live here.
 */

:root {
  --app-bg: #fbfffe;
  --app-shell-bg: #ffffff;
  --app-sidebar-w: 232px;
  --app-radius: 16px;
}

body {
  background: var(--app-bg);
}

/* ============== APP SHELL ============== */
.app-shell {
  display: grid;
  grid-template-columns: var(--app-sidebar-w) 1fr;
  min-height: 100vh;
}

.app-sidebar {
  background: linear-gradient(180deg, var(--teal-100) 0%, #ffffff 100%);
  border-right: 1px solid var(--teal-200);
  padding: 26px 18px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.app-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  color: var(--teal-800);
  text-decoration: none;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.app-logo img { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; }

.app-nav { display: flex; flex-direction: column; gap: 4px; }
.app-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 11px;
  color: var(--gray-700);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.18s ease, color 0.18s ease;
}
.app-nav a:hover { background: rgba(20, 184, 166, 0.08); color: var(--teal-800); }
.app-nav a.active {
  background: white;
  color: var(--teal-800);
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.1);
}
.app-nav a .nav-icon {
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.app-nav a .nav-icon img { width: 100%; height: 100%; object-fit: contain; }
.app-nav a.active .nav-icon { animation: wiggle 0.6s ease; }

.app-sidebar-foot {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px dashed var(--teal-200);
  display: flex;
  align-items: center;
  gap: 10px;
}
.app-sidebar-foot img {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--teal-300);
}
.app-sidebar-foot .who {
  font-size: 12px;
  line-height: 1.3;
  color: var(--gray-600);
}
.app-sidebar-foot .who strong { color: var(--teal-800); display: block; font-size: 13px; }

.app-main {
  padding: clamp(24px, 4vw, 48px);
  max-width: 1180px;
  width: 100%;
}

/* ============== HEADER STRIP ============== */
.app-page-head {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
  padding: 26px 28px;
  background: white;
  border-radius: 22px;
  border: 1px solid var(--teal-200);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
  position: relative;
  overflow: hidden;
}
.app-page-head::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 90% 50%, rgba(20, 184, 166, 0.12) 0%, transparent 50%);
  pointer-events: none;
}
.app-page-head .head-mascot {
  width: 72px; height: 72px;
  flex-shrink: 0;
  position: relative;
}
.app-page-head .head-mascot img,
.app-page-head .head-mascot video {
  width: 100%; height: 100%;
  object-fit: contain;
  border-radius: 14px;
}
.app-page-head h1 {
  font-size: clamp(22px, 2vw + 0.5rem, 28px);
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.025em;
  margin-bottom: 4px;
}
.app-page-head p {
  font-size: 15px;
  color: var(--gray-500);
  line-height: 1.55;
}

/* Gertie tip box */
.gertie-tip {
  display: flex;
  gap: 14px;
  background: linear-gradient(135deg, var(--teal-100), #fff);
  border: 1px solid var(--teal-200);
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 28px;
}
.gertie-tip-paw {
  width: 36px; height: 36px;
  flex-shrink: 0;
  animation: float 4s ease-in-out infinite;
}
.gertie-tip-paw img { width: 100%; height: 100%; object-fit: contain; }
.gertie-tip-content { font-size: 14px; line-height: 1.55; color: var(--gray-700); }
.gertie-tip-content strong { color: var(--teal-800); }

/* ============== TOOL CARDS ============== */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-bottom: 36px;
}
.tool-card {
  background: white;
  border-radius: 18px;
  padding: 24px 22px;
  border: 1px solid var(--gray-100);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(13, 148, 136, 0.12);
  border-color: var(--teal-300);
}
.tool-card-icon {
  width: 56px; height: 56px;
  background: var(--teal-100);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  animation: float 4s ease-in-out infinite;
}
.tool-card-icon img { width: 38px; height: 38px; object-fit: contain; }
.tool-card:nth-child(1) .tool-card-icon { animation-delay: 0s; }
.tool-card:nth-child(2) .tool-card-icon { animation-delay: 0.4s; }
.tool-card:nth-child(3) .tool-card-icon { animation-delay: 0.8s; }
.tool-card:nth-child(4) .tool-card-icon { animation-delay: 1.2s; }
.tool-card:nth-child(5) .tool-card-icon { animation-delay: 1.6s; }
.tool-card h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.015em;
}
.tool-card p { font-size: 13px; color: var(--gray-500); line-height: 1.5; }
.tool-card .tool-arrow {
  margin-top: auto;
  padding-top: 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--teal-700);
}

/* ============== SECTION CARD ============== */
.app-card {
  background: white;
  border: 1px solid var(--gray-100);
  border-radius: 20px;
  padding: 28px;
  margin-bottom: 22px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.03);
}
.app-card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--teal-700);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 4px;
}
.app-card-h {
  font-size: 20px;
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

/* Form pieces shared across pages */
.form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-row label {
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-700);
}
.form-row input,
.form-row select {
  font-family: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--gray-200);
  background: white;
  color: var(--gray-900);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.form-row input:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--teal-500);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.18);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}

.app-btn {
  background: linear-gradient(135deg, var(--teal-500), var(--teal-600));
  color: white;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  padding: 13px 26px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: filter 0.18s, transform 0.18s;
}
.app-btn:hover { filter: brightness(1.07); transform: translateY(-1px); }
.app-btn.outline {
  background: white;
  color: var(--teal-700);
  border: 1.5px solid var(--teal-300);
}
.app-btn.outline:hover { background: var(--teal-100); }

/* Result cards */
.result-card {
  background: linear-gradient(135deg, var(--teal-100), #fff);
  border: 2px solid var(--teal-300);
  border-radius: 18px;
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.result-card::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 140px; height: 140px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.18), transparent);
  pointer-events: none;
}
.result-card-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--teal-700);
  text-transform: uppercase;
  letter-spacing: 1.4px;
  margin-bottom: 6px;
}
.result-card-label-paw { width: 18px; height: 18px; }
.result-card-label-paw img { width: 100%; height: 100%; object-fit: contain; }
.result-card-value {
  font-size: 38px;
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.04em;
  line-height: 1.1;
}
.result-card-meta { font-size: 13px; color: var(--gray-600); margin-top: 6px; }
.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

/* ============== SPARKLE SIZER ============== */
.sizer-stage {
  background: white;
  border: 2px solid var(--teal-200);
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
}
.sizer-instructions {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 18px;
}
.sizer-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 32px 0;
  min-height: 80px;
  flex-wrap: wrap;
}
.sizer-stone {
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffffff, var(--teal-300) 60%, var(--teal-500) 90%);
  box-shadow: 0 2px 6px rgba(13, 148, 136, 0.25), inset 0 -2px 4px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}
.sizer-stone:hover { transform: scale(1.15); }
.sizer-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 16px 0 8px;
  flex-wrap: wrap;
}
.sizer-size-display {
  font-size: 28px;
  font-weight: 800;
  color: var(--teal-700);
  letter-spacing: -0.02em;
}
.sizer-mm-display {
  font-size: 14px;
  color: var(--gray-500);
}
.sizer-slider-wrap {
  max-width: 460px;
  margin: 18px auto;
}
.sizer-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--teal-300), var(--teal-600));
  outline: none;
}
.sizer-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: white;
  border: 3px solid var(--teal-600);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.sizer-slider::-moz-range-thumb {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: white;
  border: 3px solid var(--teal-600);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* ============== SIZE CHART TABLE ============== */
.size-chart-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
.size-chart-table th {
  background: var(--teal-100);
  color: var(--teal-800);
  padding: 12px 14px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-bottom: 2px solid var(--teal-300);
}
.size-chart-table th:first-child { border-top-left-radius: 12px; }
.size-chart-table th:last-child  { border-top-right-radius: 12px; }
.size-chart-table td {
  padding: 12px 14px;
  font-size: 14px;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
}
.size-chart-table tr:nth-child(even) td { background: #f8fafc; }
.size-chart-table tr:hover td { background: var(--teal-100); }
.size-chart-table .ss-name { font-weight: 800; color: var(--teal-800); }
.size-chart-table .source-tag {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.size-chart-table .source-tag.official    { background: var(--teal-100); color: var(--teal-700); }
.size-chart-table .source-tag.theoretical { background: #fef3c7; color: #92400e; }

/* ============== STONE SCOUT ============== */
.scout-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  margin-bottom: 20px;
}
.scout-controls .form-row { margin: 0; min-width: 160px; }
.scout-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.supplier-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 20px;
  position: relative;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.supplier-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}
.supplier-card.best {
  border: 2px solid var(--teal-500);
  background: linear-gradient(135deg, var(--teal-100), #fff);
  box-shadow: 0 6px 24px rgba(13, 148, 136, 0.15);
}
.supplier-card.best::before {
  content: 'BEST PRICE';
  position: absolute;
  top: -10px; left: 18px;
  background: linear-gradient(135deg, var(--coral), #fb7185);
  color: white;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 100px;
  letter-spacing: 0.8px;
  box-shadow: 0 2px 8px rgba(244, 63, 94, 0.35);
  animation: pop 1.6s ease-in-out infinite;
}
.supplier-card.out-of-stock { opacity: 0.55; }
.supplier-card-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.015em;
  margin-bottom: 4px;
}
.supplier-card-meta {
  font-size: 12px;
  color: var(--gray-500);
  margin-bottom: 14px;
}
.supplier-card-price {
  font-size: 26px;
  font-weight: 800;
  color: var(--teal-700);
  letter-spacing: -0.02em;
}
.supplier-card-per {
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 2px;
}
.supplier-card-stock {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  margin-top: 12px;
  padding: 4px 10px;
  border-radius: 8px;
}
.supplier-card-stock.in    { background: #dcfce7; color: #15803d; }
.supplier-card-stock.out   { background: #fef3c7; color: #92400e; }
.supplier-card-stock-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.supplier-card-view {
  display: inline-block;
  margin-top: 14px;
  padding: 8px 14px;
  border: 1.5px solid var(--teal-300);
  border-radius: 10px;
  color: var(--teal-700);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.supplier-card-view:hover { background: var(--teal-100); }

.scout-cache-note {
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 16px;
  text-align: center;
  font-style: normal;
}

/* ============== PATTERN PICKER ============== */
.pattern-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.pattern-option {
  background: white;
  border: 2px solid var(--gray-200);
  border-radius: 14px;
  padding: 18px;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
  text-align: left;
}
.pattern-option:hover { border-color: var(--teal-300); }
.pattern-option.active {
  border-color: var(--teal-500);
  background: linear-gradient(135deg, var(--teal-100), #fff);
}
.pattern-option h4 {
  font-size: 15px;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 4px;
}
.pattern-option p { font-size: 12px; color: var(--gray-500); line-height: 1.4; }
.pattern-option-icon {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 8px;
  background: var(--teal-100);
  border-radius: 10px;
}

/* ============== MOBILE ============== */
@media (max-width: 880px) {
  .app-shell { grid-template-columns: 1fr; }
  .app-sidebar {
    position: static;
    height: auto;
    padding: 16px 20px;
    border-right: none;
    border-bottom: 1px solid var(--teal-200);
  }
  .app-nav {
    flex-direction: row;
    overflow-x: auto;
    gap: 6px;
    padding-bottom: 4px;
  }
  .app-nav a { padding: 8px 12px; font-size: 13px; white-space: nowrap; }
  .app-nav a .nav-icon { width: 18px; height: 18px; }
  .app-sidebar-foot { display: none; }
  .app-main { padding: 22px 16px; }
  .app-page-head { flex-direction: column; text-align: center; padding: 22px; }
  .app-page-head .head-mascot { width: 64px; height: 64px; }
  .result-card-value { font-size: 30px; }
}

/* ============== STONE SCOUT 4-STEP FLOW ============== */
.scout-step {
  background: white;
  border: 1px solid var(--gray-100);
  border-radius: 18px;
  padding: 22px 22px 24px;
  margin-bottom: 16px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.03);
}
.scout-step-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--teal-700);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}
.scout-step-h {
  font-size: 17px;
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.015em;
  margin-bottom: 4px;
}
.scout-step-sub {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 14px;
}

.color-family-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.color-family-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  border-radius: 12px;
  transition: background 0.18s, transform 0.18s;
}
.color-family-btn:hover { background: var(--teal-100); transform: scale(1.06); }
.color-family-btn.active {
  background: var(--teal-100);
  box-shadow: 0 2px 10px rgba(13, 148, 136, 0.2);
  transform: scale(1.1);
}
.color-family-swatch {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.1);
}
.color-family-btn.active .color-family-swatch {
  outline: 2px solid var(--teal-600);
  outline-offset: 2px;
}
.color-family-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--gray-700);
}
.color-family-btn.active .color-family-label { color: var(--teal-800); }
.color-family-count {
  font-size: 9px;
  color: var(--gray-400);
}

.scout-color-search {
  width: 100%;
  border-radius: 100px;
  border: 1.5px solid var(--teal-200);
  padding: 10px 16px;
  font-family: inherit;
  font-size: 13px;
  background: white;
  margin-bottom: 14px;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.scout-color-search:focus {
  border-color: var(--teal-500);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
}

.color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
  max-height: 460px;
  overflow-y: auto;
  padding: 4px;
}
.color-tile {
  background: transparent;
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: background 0.18s, border-color 0.18s, transform 0.18s;
}
.color-tile:hover {
  background: var(--teal-100);
  transform: translateY(-2px);
}
.color-tile.active {
  background: var(--teal-600);
  border-color: var(--teal-700);
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.3);
}
.color-tile.active .color-tile-name { color: white; }
.color-tile.active .color-tile-sellers { color: rgba(255,255,255,0.8); }
.color-swatch {
  width: 76px; height: 76px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: rgba(255,255,255,0.85);
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.color-tile-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-800);
  line-height: 1.25;
  text-align: center;
}
.color-tile-sellers {
  font-size: 10px;
  color: var(--gray-500);
  font-weight: 600;
}
.color-tile-sellers.high { color: var(--teal-700); font-weight: 700; }

.size-pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.size-pill {
  background: white;
  border: 1.5px solid var(--teal-200);
  color: var(--teal-700);
  font-family: inherit;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 20px;
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, transform 0.18s;
}
.size-pill:hover { background: var(--teal-100); transform: translateY(-1px); }
.size-pill.active {
  background: linear-gradient(135deg, var(--teal-500), var(--teal-600));
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

.scout-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.scout-stat-card {
  background: white;
  border: 1px solid var(--gray-100);
  border-radius: 14px;
  padding: 14px 12px;
  text-align: center;
}
.scout-stat-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--teal-700);
  letter-spacing: -0.02em;
}
.scout-stat-label {
  font-size: 11px;
  color: var(--gray-500);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.scout-table-card {
  background: white;
  border: 1px solid var(--gray-100);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.03);
}
.scout-table-head {
  padding: 16px 20px;
  background: linear-gradient(135deg, var(--teal-100), white);
  border-bottom: 2px solid var(--teal-200);
}
.scout-table-h2 {
  font-size: 17px;
  font-weight: 800;
  color: var(--teal-800);
  letter-spacing: -0.015em;
}
.scout-table-sub {
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 2px;
}

.scout-table-wrap { overflow-x: auto; }
.scout-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.scout-table th {
  padding: 12px 10px;
  background: white;
  color: var(--teal-700);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  text-align: left;
  border-bottom: 1px solid var(--teal-200);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.scout-table th.right { text-align: right; }
.scout-table th.center { text-align: center; }
.scout-table th:hover { background: var(--teal-100); }
.scout-table th .sort-arrow {
  margin-left: 4px;
  font-size: 10px;
  color: var(--gray-300);
}
.scout-table th.sorted .sort-arrow { color: var(--coral); }
.scout-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
}
.scout-table tr:hover td { background: var(--teal-100); }
.scout-table tr.cheapest td {
  background: linear-gradient(90deg, rgba(20, 184, 166, 0.12), transparent);
  font-weight: 600;
}
.scout-table .cheapest-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--coral), #fb7185);
  color: white;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 100px;
  letter-spacing: 0.6px;
  margin-right: 6px;
  vertical-align: middle;
}
.scout-supplier {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--gray-800);
}
.return-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  cursor: help;
}
.return-dot.good { background: var(--teal-500); }
.return-dot.bad  { background: #f43f5e; }
.scout-table .supplier-color {
  font-style: normal;
  color: var(--gray-500);
  font-size: 12px;
}
.scout-table td.col-price {
  font-weight: 700;
  color: var(--gray-900);
  text-align: right;
  font-size: 13px;
}
.scout-table .per-stone {
  text-align: right;
  font-weight: 800;
  color: var(--teal-700);
}
.scout-table .per-gross { text-align: right; color: var(--gray-600); }
.scout-table .stock-cell { text-align: center; }
.stock-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-right: 6px;
}
.stock-dot.in  { background: var(--teal-500); }
.stock-dot.out { background: #f97316; }
.scout-table .view-link {
  color: var(--teal-700);
  font-weight: 700;
  font-size: 12px;
  text-decoration: none;
  border-bottom: 1.5px solid var(--teal-300);
  padding-bottom: 1px;
}
.scout-table .view-link:hover { color: var(--teal-800); border-color: var(--teal-700); }
.scout-table tbody tr.out-of-stock { opacity: 0.55; }

@media (max-width: 600px) {
  .scout-table th.hide-mobile,
  .scout-table td.hide-mobile { display: none; }
  .scout-table th, .scout-table td { padding: 10px 6px; font-size: 12px; }
  .color-family-swatch { width: 36px; height: 36px; border-width: 2.5px; }
  .color-swatch { width: 60px; height: 60px; }
  .color-grid { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); }
}

/* Color-tile thumbnail (Step 2 of Scout) */
.color-swatch-img {
  width: 76px;
  height: 76px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
  background: var(--gray-100);
}
.color-tile.active .color-swatch-img {
  outline: 2px solid white;
  outline-offset: 2px;
}

/* Table row thumbnail with hover zoom */
.scout-table .thumb-cell {
  width: 56px;
  min-width: 56px;
  padding: 8px;
}
.row-thumb {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--gray-100);
  display: block;
  margin: 0 auto;
  cursor: zoom-in;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.row-thumb:hover {
  transform: scale(2.6);
  z-index: 10;
  position: relative;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.25);
}
.row-thumb.placeholder { display: inline-block; }

/* Transparency pill button */
.transparency-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  background: white;
  border: 1.5px solid var(--teal-300);
  color: var(--teal-700);
  font-family: inherit;
  font-weight: 700;
  font-size: 12px;
  padding: 6px 12px 6px 6px;
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.18s, transform 0.18s, box-shadow 0.18s;
}
.transparency-pill:hover {
  background: var(--teal-100);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.15);
}
.transparency-pill-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-500), var(--teal-600));
  color: white;
  font-style: italic;
  font-weight: 800;
  font-family: Georgia, serif;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Transparency modal popover */
.transparency-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: trialFadeIn 0.2s ease-out;
}
.transparency-modal[hidden] { display: none; }
.transparency-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
}
.transparency-card {
  position: relative;
  background: white;
  border-radius: 22px;
  padding: 32px 28px 24px;
  max-width: 520px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.3);
  animation: trialPopIn 0.28s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}
.transparency-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--gray-100);
  color: var(--gray-600);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s;
}
.transparency-close:hover { background: var(--gray-200); color: var(--gray-800); }
.transparency-close svg { width: 16px; height: 16px; }
.transparency-paw {
  width: 56px; height: 56px;
  margin: 0 auto 12px;
  animation: float 4s ease-in-out infinite;
}
.transparency-paw img { width: 100%; height: 100%; object-fit: contain; }
.transparency-card h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.025em;
  text-align: center;
  margin-bottom: 8px;
}
.transparency-card p {
  font-size: 14px;
  color: var(--gray-500);
  text-align: center;
  line-height: 1.55;
}
.transparency-row {
  background: var(--teal-100);
  border-left: 3px solid var(--teal-500);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 10px;
  font-size: 13.5px;
  color: var(--gray-700);
  line-height: 1.6;
}
.transparency-row strong { color: var(--teal-800); display: inline; }
.transparency-row a { color: var(--teal-700); font-weight: 700; }
.transparency-ok {
  margin-top: 14px;
  width: 100%;
  background: linear-gradient(135deg, var(--teal-500), var(--teal-600));
  color: white;
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  padding: 13px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: filter 0.18s;
}
.transparency-ok:hover { filter: brightness(1.07); }

/* ============== SPARKLE SIZER EXTRAS ============== */

/* Dime image (real-world calibration reference). Stone overlays the L of LIBERTY. */
.sizer-dime {
  position: relative;
  display: inline-block;
  line-height: 0;
}
.dime-coin {
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.22);
  display: block;
}
/* Stone positioned on the L of LIBERTY (top-left arc of the dime).
 * Tweak --stone-x / --stone-y if the dime image gets swapped. */
.sizer-dime .sizer-stone {
  position: absolute;
  /* base of the stone sits on the L of LIBERTY. Stone grows upward from this anchor. */
  left: 18%;
  top: 65%;
  transform: translate(-50%, -100%);
  z-index: 2;
  background: radial-gradient(circle at 30% 30%, #99f6e4, #0d9488 55%, #115e59 90%);
  box-shadow:
    0 4px 10px rgba(15, 23, 42, 0.45),
    0 2px 4px rgba(15, 23, 42, 0.25),
    inset 0 -2px 4px rgba(0, 0, 0, 0.2),
    0 0 0 0 rgba(20, 184, 166, 0.55);
  border: 1px solid rgba(15, 23, 42, 0.4);
  animation: stonePulse 1.6s ease-in-out infinite;
}
.sizer-dime .sizer-stone.settled {
  animation: stoneGlow 2.4s ease-in-out infinite;
}
@keyframes stonePulse {
  0%, 100% {
    transform: translate(-50%, -100%) scale(1);
    box-shadow:
      0 4px 10px rgba(15, 23, 42, 0.45),
      0 2px 4px rgba(15, 23, 42, 0.25),
      inset 0 -2px 4px rgba(0, 0, 0, 0.2),
      0 0 0 0 rgba(20, 184, 166, 0.7);
  }
  50% {
    transform: translate(-50%, -100%) scale(1.18);
    box-shadow:
      0 6px 14px rgba(15, 23, 42, 0.5),
      0 3px 6px rgba(15, 23, 42, 0.3),
      inset 0 -2px 4px rgba(0, 0, 0, 0.2),
      0 0 0 12px rgba(20, 184, 166, 0);
  }
}
@keyframes stoneGlow {
  0%, 100% {
    box-shadow:
      0 4px 10px rgba(15, 23, 42, 0.45),
      0 2px 4px rgba(15, 23, 42, 0.25),
      inset 0 -2px 4px rgba(0, 0, 0, 0.2),
      0 0 6px rgba(20, 184, 166, 0.5);
  }
  50% {
    box-shadow:
      0 5px 12px rgba(15, 23, 42, 0.5),
      0 3px 6px rgba(15, 23, 42, 0.3),
      inset 0 -2px 4px rgba(0, 0, 0, 0.2),
      0 0 14px rgba(20, 184, 166, 0.7);
  }
}

.sizer-info-tip {
  margin: 12px auto 0;
  max-width: 480px;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--teal-800);
  background: linear-gradient(135deg, var(--teal-100), #fff);
  border: 1.5px solid var(--teal-300);
  border-radius: 12px;
  text-align: center;
  animation: tipPulse 1.8s ease-in-out infinite;
}
.sizer-info-tip.settled {
  animation: none;
  background: white;
  border-color: var(--gray-100);
  color: var(--gray-600);
}
.sizer-info-tip strong { color: var(--teal-800); }
.sizer-info-tip.settled strong { color: var(--teal-700); }
@keyframes tipPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.5);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(20, 184, 166, 0);
    transform: scale(1.015);
  }
}
.sizer-row {
  justify-content: center;
}

/* Bone slider thumb + Scout hopper */
.bone-slider-wrap {
  position: relative;
  padding-top: 60px;
  margin-top: 20px;
}
.bone-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 10px;
  border-radius: 100px;
  background: linear-gradient(90deg, #047857, #10b981 50%, #6ee7b7);
  outline: none;
  cursor: pointer;
}
.bone-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 52px;
  height: 32px;
  background-image: url("../images/bone.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: transparent;
  border: none;
  cursor: grab;
  filter: drop-shadow(0 2px 4px rgba(4, 120, 87, 0.45));
}
.bone-slider::-webkit-slider-thumb:active { cursor: grabbing; }
.bone-slider::-moz-range-thumb {
  width: 52px;
  height: 32px;
  background-image: url("../images/bone.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: transparent;
  border: none;
  cursor: grab;
  filter: drop-shadow(0 2px 4px rgba(4, 120, 87, 0.45));
}

/* Scout hopping above the slider */
.scout-hopper {
  position: absolute;
  top: 0;
  width: 64px;
  height: 64px;
  margin-left: -32px; /* center on the thumb x */
  pointer-events: none;
  transition: left 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.scout-hopper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
  border: none;
  box-shadow: none;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.18));
}
.scout-hopper.hop {
  animation: scoutHop 0.5s ease-out;
}
@keyframes scoutHop {
  0%   { transform: translateY(0)    rotate(0); }
  30%  { transform: translateY(-14px) rotate(-8deg); }
  55%  { transform: translateY(-18px) rotate(0); }
  80%  { transform: translateY(-6px)  rotate(6deg); }
  100% { transform: translateY(0)    rotate(0); }
}

/* Calibration disclosure section */
.calibration-details {
  margin-top: 20px;
  text-align: left;
  background: var(--teal-100);
  border: 1px dashed var(--teal-300);
  border-radius: 12px;
  padding: 12px 16px;
}
.calibration-details summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: var(--teal-800);
  list-style: none;
  user-select: none;
}
.calibration-details summary::before {
  content: '⚙ ';
  margin-right: 4px;
}
.calibration-details summary::-webkit-details-marker { display: none; }
.calibration-details[open] summary { margin-bottom: 12px; }
.calibration-details .cal-status {
  margin-left: 8px;
  font-weight: 600;
  color: var(--teal-700);
  font-size: 11px;
}
.calibration-body { padding-top: 4px; }
