/**
 * Livora V4 - Interactive Components Styles
 * Styles for interactive tools and features
 */

/* ========== Shared Tool Layout ========== */
.lv-tool-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: var(--lv-spacing-lg);
  padding: var(--lv-spacing-xl);
  background: linear-gradient(135deg, #fdf7f2 0%, #f6ebe2 100%);
  border: 1px solid rgba(200, 161, 101, 0.35);
  border-radius: var(--lv-radius-lg);
  position: relative;
  overflow: hidden;
}

.lv-tool-hero::after {
  content: '';
  position: absolute;
  top: -40%;
  left: -20%;
  width: 70%;
  height: 140%;
  background: radial-gradient(circle, rgba(212, 160, 131, 0.18) 0%, transparent 70%);
  transform: rotate(-8deg);
}

.lv-tool-hero-content,
.lv-tool-hero-card {
  position: relative;
  z-index: 1;
}

.lv-tool-kicker {
  display: inline-block;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lv-secondary);
  background: rgba(200, 161, 101, 0.15);
  border-radius: 999px;
  margin-bottom: var(--lv-spacing-sm);
}

.lv-tool-feature-list {
  list-style: none;
  margin: var(--lv-spacing-md) 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.lv-tool-feature-list li {
  position: relative;
  padding-right: 26px;
  color: var(--lv-text);
  font-size: 15px;
}

.lv-tool-feature-list li::before {
  content: '-';
  position: absolute;
  right: 0;
  color: var(--lv-secondary);
  font-size: 18px;
  line-height: 1;
}

.lv-tool-hero-card {
  background: var(--lv-white);
  border-radius: var(--lv-radius-lg);
  padding: var(--lv-spacing-lg);
  box-shadow: var(--lv-shadow-md);
  display: grid;
  gap: var(--lv-spacing-md);
  align-content: start;
}

.lv-tool-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: var(--lv-spacing-sm);
  border-bottom: 1px solid rgba(72, 56, 36, 0.12);
}

.lv-tool-stat:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.lv-tool-stat-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8c7a64;
}

.lv-tool-stat-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--lv-text);
}

.lv-authenticity-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: var(--lv-spacing-sm) var(--lv-spacing-md);
  background: #fff8ef;
  border-radius: var(--lv-radius-md);
  border: 1px dashed rgba(200, 161, 101, 0.4);
  font-size: 14px;
}

.lv-empty-state {
  padding: var(--lv-spacing-md);
  background: var(--lv-cream);
  border-radius: var(--lv-radius-md);
  text-align: center;
  color: var(--lv-text);
  margin: var(--lv-spacing-md) 0;
}

.livora-empty-state {
  padding: var(--lv-spacing-md);
  background: var(--lv-cream);
  border-radius: var(--lv-radius-md);
  text-align: center;
  color: var(--lv-text);
  margin: var(--lv-spacing-md) 0;
}

.livora-empty-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 10px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 20%, rgba(212, 160, 131, 0.18), transparent 60%),
    linear-gradient(135deg, rgba(200, 161, 101, 0.10), rgba(255, 255, 255, 0.9));
  border: 1px solid rgba(200, 161, 101, 0.28);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.05);
  font-size: 26px;
}

.livora-empty-title {
  margin: 4px 0;
  font-size: 16px;
  font-weight: 700;
}

.livora-empty-message {
  margin: 8px 0 4px;
}

.livora-empty-state-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--lv-spacing-sm);
  margin-top: var(--lv-spacing-sm);
}

/* ========== Quick Chips (Shop/Guides) ========== */
.livora-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(72, 56, 36, 0.14);
  background: #fff;
  color: #433628;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.livora-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(212, 160, 131, 0.42);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.06);
}

.livora-chip:focus-visible {
  outline: 3px solid rgba(212, 160, 131, 0.35);
  outline-offset: 3px;
}

.livora-chip--soft {
  background: rgba(212, 160, 131, 0.10);
  border-color: rgba(212, 160, 131, 0.20);
}

.livora-chip--ghost {
  background: transparent;
  border-style: dashed;
  border-color: rgba(72, 56, 36, 0.18);
  color: #6a5a4a;
}

.livora-quick-chips {
  margin: var(--lv-spacing-md) 0 var(--lv-spacing-lg);
  padding: var(--lv-spacing-lg);
  border-radius: var(--lv-radius-lg);
  border: 1px solid rgba(200, 161, 101, 0.30);
  background: linear-gradient(135deg, #ffffff 0%, #fdf7f1 60%, #fff6ec 100%);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.05);
}

.livora-quick-chips__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: var(--lv-spacing-md);
}

.livora-quick-chips__head strong {
  font-size: 16px;
}

.livora-quick-chips__head span {
  color: #8c7a64;
  font-size: 13px;
}

.livora-quick-chips__group {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  padding-top: var(--lv-spacing-sm);
  margin-top: var(--lv-spacing-sm);
  border-top: 1px solid rgba(72, 56, 36, 0.08);
}

.livora-quick-chips__group:first-child {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.livora-quick-chips__label {
  font-size: 13px;
  font-weight: 800;
  color: #6a5a4a;
  padding-top: 10px;
}

.livora-quick-chips__items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ========== Guide "Next Steps" Box ========== */
.livora-next-steps {
  margin: var(--lv-spacing-xl) 0;
  padding: var(--lv-spacing-xl);
  border-radius: var(--lv-radius-lg);
  border: 1px solid rgba(200, 161, 101, 0.28);
  background: radial-gradient(circle at 15% 10%, rgba(212, 160, 131, 0.14), transparent 55%),
    linear-gradient(135deg, #ffffff 0%, #fdf7f2 55%, #fff6ec 100%);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.06);
}

.livora-next-steps__head {
  display: grid;
  gap: 8px;
  margin-bottom: var(--lv-spacing-lg);
}

.livora-next-steps__head h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.livora-next-steps__head p {
  margin: 0;
  color: #8c7a64;
  font-size: 14px;
}

.livora-next-steps__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--lv-spacing-md);
}

.livora-next-steps__card {
  padding: var(--lv-spacing-lg);
  border-radius: var(--lv-radius-lg);
  border: 1px solid rgba(72, 56, 36, 0.10);
  background: #fff;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.04);
  display: grid;
  gap: 10px;
}

.livora-next-steps__card strong {
  font-size: 15px;
}

.livora-next-steps__card p {
  margin: 0;
  color: #7a6a58;
  font-size: 14px;
}

.livora-next-steps__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.livora-next-steps__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 768px) {
  .livora-quick-chips {
    padding: var(--lv-spacing-md);
  }

  .livora-quick-chips__group {
    grid-template-columns: 1fr;
  }

  .livora-quick-chips__label {
    padding-top: 0;
  }

  .livora-next-steps {
    padding: var(--lv-spacing-lg);
  }

  .livora-next-steps__grid {
    grid-template-columns: 1fr;
  }
}

/* ========== Trust Bar (Global) ========== */
.livora-trustbar {
  margin: var(--lv-spacing-md) 0;
  padding: 12px 14px;
  border-radius: var(--lv-radius-lg);
  border: 1px solid rgba(200, 161, 101, 0.28);
  background: linear-gradient(135deg, #ffffff 0%, #fdf7f1 65%, #fff6ec 100%);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.livora-trustbar__item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(72, 56, 36, 0.10);
  background: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.livora-trustbar__item:hover {
  transform: translateY(-1px);
  border-color: rgba(212, 160, 131, 0.35);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.06);
}

.livora-trustbar__icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 20%, rgba(212, 160, 131, 0.18), transparent 60%),
    linear-gradient(135deg, rgba(200, 161, 101, 0.12), rgba(255, 255, 255, 0.95));
  border: 1px solid rgba(200, 161, 101, 0.28);
  font-weight: 900;
  color: #5c4a37;
}

.livora-trustbar__title {
  font-weight: 900;
  font-size: 14px;
  color: #3f3328;
  line-height: 1.25;
}

.livora-trustbar__desc {
  display: block;
  margin-top: 3px;
  color: #8c7a64;
  font-size: 12px;
  line-height: 1.35;
}

@media (max-width: 980px) {
  .livora-trustbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .livora-trustbar {
    grid-template-columns: 1fr;
  }
}

/* ========== Auto ToC + TL;DR (Content Pages) ========== */
.livora-toc {
  margin: var(--lv-spacing-md) 0;
  padding: var(--lv-spacing-md);
  border-radius: var(--lv-radius-lg);
  border: 1px solid rgba(72, 56, 36, 0.10);
  background: #fff;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.04);
}

.livora-toc__title {
  font-weight: 900;
  font-size: 14px;
  color: #3f3328;
  margin-bottom: 10px;
}

.livora-toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.livora-toc__list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(72, 56, 36, 0.12);
  background: rgba(212, 160, 131, 0.08);
  color: #433628;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.livora-toc__list a:hover {
  transform: translateY(-1px);
  border-color: rgba(212, 160, 131, 0.35);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.06);
}

.livora-tldr {
  margin: var(--lv-spacing-md) 0;
  padding: var(--lv-spacing-lg);
  border-radius: var(--lv-radius-lg);
  border: 1px solid rgba(200, 161, 101, 0.26);
  background: linear-gradient(135deg, #ffffff 0%, #fdf7f1 65%, #fff6ec 100%);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.05);
}

.livora-tldr__title {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 900;
  color: #3f3328;
}

.livora-tldr__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.livora-tldr__list li {
  position: relative;
  padding-right: 18px;
  color: #5c4a37;
  font-size: 14px;
}

.livora-tldr__list li::before {
  content: '•';
  position: absolute;
  right: 0;
  color: var(--lv-secondary);
  font-size: 18px;
  line-height: 1;
}

/* ========== Hub Search (Brands/Guides/Ingredients/Concerns) ========== */
.livora-hub-search {
  margin: var(--lv-spacing-md) 0;
  padding: var(--lv-spacing-md);
  border-radius: var(--lv-radius-lg);
  border: 1px solid rgba(72, 56, 36, 0.10);
  background: #fff;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.04);
  display: grid;
  gap: 10px;
}

.livora-hub-search__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.livora-hub-search__input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(72, 56, 36, 0.18);
  background: #fff;
  font-size: 15px;
}

.livora-hub-search__input:focus {
  outline: none;
  border-color: rgba(212, 160, 131, 0.9);
  box-shadow: 0 0 0 3px rgba(212, 160, 131, 0.14);
}

.livora-hub-search__clear {
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 800;
  border: 1px solid rgba(72, 56, 36, 0.18);
  background: #fff;
  color: #5c4a37;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.livora-hub-search__clear:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.06);
}

.livora-hub-search__meta {
  color: #8c7a64;
  font-size: 13px;
}

@media (max-width: 640px) {
  .livora-hub-search__row {
    grid-template-columns: 1fr;
  }
}

/* ========== Product Search (Shortcode) ========== */
.livora-product-search {
  margin-top: var(--lv-spacing-md);
  border-radius: var(--lv-radius-lg);
  border: 1px solid rgba(72, 56, 36, 0.12);
  background: #fff;
  padding: var(--lv-spacing-lg);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.05);
}

.livora-product-search.is-loading {
  opacity: 0.98;
}

.livora-product-search-bar {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: var(--lv-spacing-sm);
  align-items: center;
}

.livora-product-search-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(72, 56, 36, 0.18);
  background: #fff;
  font-size: 16px;
}

.livora-product-search-input:focus {
  outline: none;
  border-color: rgba(212, 160, 131, 0.9);
  box-shadow: 0 0 0 3px rgba(212, 160, 131, 0.14);
}

.livora-product-search-btn,
.livora-product-search-clear {
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.livora-product-search-btn {
  background: linear-gradient(135deg, var(--lv-primary), var(--lv-secondary));
  color: #fff;
  box-shadow: 0 12px 26px rgba(212, 160, 131, 0.24);
}

.livora-product-search-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(212, 160, 131, 0.30);
}

.livora-product-search-clear {
  background: #fff;
  color: #5c4a37;
  border-color: rgba(72, 56, 36, 0.18);
}

.livora-product-search-clear:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.06);
}

.livora-product-search-btn:disabled,
.livora-product-search-clear:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.livora-product-search-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: var(--lv-spacing-sm);
  margin-top: var(--lv-spacing-md);
  padding-top: var(--lv-spacing-md);
  border-top: 1px solid rgba(72, 56, 36, 0.08);
}

.livora-product-search-filters label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: #6a5a4a;
}

.livora-product-search-filters select,
.livora-product-search-filters input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(72, 56, 36, 0.14);
  background: #fff;
}

.livora-product-search-status {
  margin-top: var(--lv-spacing-md);
  color: #7a6a58;
  font-size: 14px;
}

.livora-product-search-results {
  margin-top: var(--lv-spacing-md);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--lv-spacing-md);
}

.livora-product-search-results .lv-tool-skeleton {
  margin: 0;
}

.livora-product-search-results .livora-empty-state {
  grid-column: 1 / -1;
}

.livora-product-search-item {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(72, 56, 36, 0.10);
  background: linear-gradient(180deg, #ffffff 0%, #fdf7f1 100%);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.livora-product-search-item:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 160, 131, 0.35);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.07);
}

.livora-product-search-thumb {
  width: 86px;
  height: 86px;
  border-radius: 14px;
  overflow: hidden;
  background: #faf6f1;
  border: 1px solid rgba(72, 56, 36, 0.10);
  display: grid;
  place-items: center;
}

.livora-product-search-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.livora-product-search-meta {
  display: grid;
  gap: 6px;
  align-content: center;
}

.livora-product-search-name {
  font-weight: 700;
  color: #3f3328;
  line-height: 1.4;
}

.livora-product-search-price {
  font-weight: 800;
  color: var(--lv-primary);
}

@media (max-width: 768px) {
  .livora-product-search {
    padding: var(--lv-spacing-md);
  }

  .livora-product-search-bar {
    grid-template-columns: 1fr 1fr;
  }

  .livora-product-search-clear {
    grid-column: 1 / -1;
  }

  .livora-product-search-results {
    grid-template-columns: 1fr;
  }
}

.lv-tool-feedback {
  margin: var(--lv-spacing-md) 0;
}

.lv-inline-error {
  margin-top: var(--lv-spacing-sm);
  padding: 10px 12px;
  border-radius: var(--lv-radius-md);
  border: 1px solid rgba(220, 53, 69, 0.25);
  background: rgba(220, 53, 69, 0.08);
  color: #8a1f2a;
  font-size: 14px;
}

.lv-tool-skeleton {
  display: grid;
  gap: 10px;
  padding: var(--lv-spacing-md);
  border-radius: var(--lv-radius-md);
  background: linear-gradient(135deg, rgba(200, 161, 101, 0.08), rgba(255, 255, 255, 0.5));
  border: 1px solid rgba(72, 56, 36, 0.12);
}

.lv-skeleton-row {
  height: 16px;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.06) 25%, rgba(0, 0, 0, 0.10) 37%, rgba(0, 0, 0, 0.06) 63%);
  background-size: 400% 100%;
  animation: lv-skeleton 1.2s ease-in-out infinite;
}

@keyframes lv-skeleton {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}

.lv-routine-summary,
.lv-gift-summary,
.lv-quiz-summary {
  margin-top: 6px;
  color: #8c7a64;
  font-size: 14px;
}

.lv-question-help {
  margin: 6px 0 0;
  font-size: 14px;
  color: #8c7a64;
}

/* ========== Routine Builder ========== */
.lv-routine-builder {
  max-width: 900px;
  margin: 0 auto;
  padding: var(--lv-spacing-lg);
}

.lv-routine-step {
  display: none;
  padding: var(--lv-spacing-xl);
  background-color: var(--lv-white);
  border-radius: var(--lv-radius-lg);
  box-shadow: var(--lv-shadow-md);
  margin-bottom: var(--lv-spacing-lg);
}

.lv-routine-step.active {
  display: block;
  animation: fadeIn 0.5s ease-out;
}

.lv-routine-step-header {
  text-align: center;
  margin-bottom: var(--lv-spacing-xl);
}

.lv-routine-progress {
  width: 100%;
  height: 6px;
  background-color: var(--lv-cream);
  border-radius: var(--lv-radius-full);
  overflow: hidden;
  margin-bottom: var(--lv-spacing-lg);
}

.lv-routine-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--lv-primary), var(--lv-secondary));
  transition: width 0.5s ease;
  border-radius: var(--lv-radius-full);
}

.lv-step-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--lv-spacing-md);
  margin: var(--lv-spacing-lg) 0;
}

.lv-step-option {
  padding: var(--lv-spacing-md);
  background-color: var(--lv-cream);
  border: 2px solid transparent;
  border-radius: var(--lv-radius-md);
  cursor: pointer;
  transition: var(--lv-transition);
  text-align: center;
}

.lv-step-option:hover {
  border-color: var(--lv-primary);
  background-color: var(--lv-white);
  transform: translateY(-2px);
}

.lv-step-option.selected {
  border-color: var(--lv-primary);
  background-color: var(--lv-primary);
  color: var(--lv-white);
}

.lv-step-option input[type="radio"],
.lv-step-option input[type="checkbox"] {
  display: none;
}

.lv-step-navigation {
  display: flex;
  justify-content: space-between;
  gap: var(--lv-spacing-md);
  margin-top: var(--lv-spacing-xl);
}

.lv-step-btn {
  flex: 1;
  padding: var(--lv-spacing-md) var(--lv-spacing-lg);
  border: none;
  border-radius: var(--lv-radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: var(--lv-transition);
}

.lv-step-btn-next {
  background-color: var(--lv-primary);
  color: var(--lv-white);
}

.lv-step-btn-prev {
  background-color: var(--lv-white);
  color: var(--lv-primary);
  border: 2px solid var(--lv-primary);
}

.lv-routine-results {
  display: none;
  padding: var(--lv-spacing-xl);
  background-color: var(--lv-white);
  border-radius: var(--lv-radius-lg);
  box-shadow: var(--lv-shadow-md);
}

.lv-routine-results.active {
  display: block;
  animation: fadeIn 0.5s ease-out;
}

.lv-routine-results-header {
  margin-bottom: var(--lv-spacing-md);
}

.lv-routine-schedule {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--lv-spacing-md);
  margin-bottom: var(--lv-spacing-lg);
}

.lv-schedule-card {
  padding: var(--lv-spacing-md);
  background: var(--lv-cream);
  border-radius: var(--lv-radius-md);
}

.lv-schedule-card h4 {
  margin: 0 0 var(--lv-spacing-sm);
}

.lv-schedule-inputs {
  display: grid;
  gap: var(--lv-spacing-sm);
}

.lv-schedule-inputs label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: var(--lv-text);
}

.lv-schedule-time-input {
  padding: 8px 10px;
  border: 1px solid rgba(72, 56, 36, 0.2);
  border-radius: var(--lv-radius-sm);
  font-family: var(--lv-font-family);
}

.lv-conflict-summary {
  margin-bottom: var(--lv-spacing-md);
}

.lv-routine-morning,
.lv-routine-night {
  margin: var(--lv-spacing-xl) 0;
  padding: var(--lv-spacing-lg);
  background-color: var(--lv-cream);
  border-radius: var(--lv-radius-lg);
}

.lv-routine-product {
  display: flex;
  align-items: center;
  gap: var(--lv-spacing-md);
  padding: var(--lv-spacing-md);
  background-color: var(--lv-white);
  border-radius: var(--lv-radius-md);
  margin-bottom: var(--lv-spacing-sm);
}

.lv-routine-product .lv-product-link {
  color: inherit;
  text-decoration: none;
}

.lv-routine-product .lv-product-link:hover {
  color: var(--lv-primary);
}

.lv-routine-product img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--lv-radius-sm);
}

.lv-routine-product-info {
  flex: 1;
}

.lv-routine-product-price {
  color: var(--lv-primary);
  font-weight: 700;
  font-size: 18px;
}

/* ========== Gift Finder ========== */
.lv-gift-finder {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--lv-spacing-lg);
}

.lv-gift-progress {
  padding: var(--lv-spacing-sm);
  background: var(--lv-cream);
  border-radius: var(--lv-radius-md);
  margin: var(--lv-spacing-md) 0;
  display: grid;
  gap: 6px;
}

.lv-gift-progress-bar {
  height: 6px;
  background: linear-gradient(90deg, var(--lv-primary), var(--lv-secondary));
  border-radius: var(--lv-radius-full);
  transition: width 0.4s ease;
}

.lv-gift-counter {
  font-size: 14px;
  color: #8c7a64;
}

.lv-gift-question {
  display: none;
  padding: var(--lv-spacing-xl);
  background-color: var(--lv-white);
  border-radius: var(--lv-radius-lg);
  box-shadow: var(--lv-shadow-md);
  margin-bottom: var(--lv-spacing-lg);
}

.lv-gift-question.active {
  display: block;
  animation: slideInRight 0.5s ease-out;
}

.lv-gift-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--lv-spacing-md);
  margin: var(--lv-spacing-lg) 0;
}

.lv-gift-option {
  padding: var(--lv-spacing-lg);
  background-color: var(--lv-cream);
  border: 2px solid transparent;
  border-radius: var(--lv-radius-md);
  text-align: center;
  cursor: pointer;
  transition: var(--lv-transition);
}

.lv-gift-option:hover {
  border-color: var(--lv-primary);
  transform: translateY(-3px);
  box-shadow: var(--lv-shadow-md);
}

.lv-gift-option.selected {
  border-color: var(--lv-primary);
  background-color: var(--lv-primary);
  color: var(--lv-white);
}

.lv-gift-option-icon {
  font-size: 48px;
  margin-bottom: var(--lv-spacing-sm);
}

.lv-gift-nav {
  display: flex;
  gap: var(--lv-spacing-md);
  margin-top: var(--lv-spacing-md);
}

.lv-gift-nav .lv-btn {
  flex: 1;
}

.lv-budget-slider {
  margin-top: var(--lv-spacing-md);
  padding: var(--lv-spacing-md);
  background: var(--lv-white);
  border-radius: var(--lv-radius-md);
  box-shadow: var(--lv-shadow-sm);
}

.lv-budget-values {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #8c7a64;
  margin-bottom: var(--lv-spacing-sm);
}

.lv-budget-inputs {
  display: grid;
  gap: var(--lv-spacing-sm);
}

.lv-budget-inputs input[type="range"] {
  width: 100%;
}

.lv-gift-results {
  display: none;
  padding: var(--lv-spacing-xl);
  background-color: var(--lv-white);
  border-radius: var(--lv-radius-lg);
  box-shadow: var(--lv-shadow-md);
}

.lv-gift-results.active {
  display: block;
  animation: fadeIn 0.6s ease-out;
}

.lv-gift-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--lv-spacing-md);
  margin-bottom: var(--lv-spacing-md);
}

.lv-gift-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--lv-spacing-lg);
}

.lv-gift-product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--lv-spacing-sm);
  padding: var(--lv-spacing-md);
  background-color: var(--lv-white);
  border-radius: var(--lv-radius-lg);
  border: 1px solid rgba(72, 56, 36, 0.15);
  box-shadow: var(--lv-shadow-sm);
  transition: var(--lv-transition);
}

.lv-gift-product-card.selected {
  border-color: var(--lv-primary);
  box-shadow: var(--lv-shadow-md);
}

.lv-gift-product-card .lv-product-checkbox {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
}

.lv-gift-product-card .lv-product-image {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: var(--lv-radius-md);
}

.lv-gift-product-card .lv-product-name {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.lv-gift-product-card .lv-product-link {
  color: var(--lv-text);
  text-decoration: none;
}

.lv-gift-product-card .lv-product-link:hover {
  color: var(--lv-primary);
}

.lv-gift-product-card .lv-product-price {
  color: var(--lv-primary);
  font-weight: 700;
}

.lv-product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--lv-spacing-xs);
  font-size: 12px;
  color: #8c7a64;
}

.lv-product-meta a {
  color: var(--lv-primary);
  text-decoration: none;
}

.lv-product-meta a:hover {
  text-decoration: underline;
}

.lv-gift-product-card .lv-product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--lv-spacing-xs);
  align-items: center;
}

.lv-gift-product-card .lv-product-actions .lv-btn {
  flex: 1;
}

.lv-gift-card {
  padding: var(--lv-spacing-lg);
  background-color: var(--lv-cream);
  border-radius: var(--lv-radius-lg);
  margin-bottom: var(--lv-spacing-md);
}

/* ========== Skin Quiz ========== */
.lv-skin-quiz {
  max-width: 700px;
  margin: 0 auto;
  padding: var(--lv-spacing-lg);
}

.lv-quiz-progress {
  padding: var(--lv-spacing-sm);
  background: var(--lv-cream);
  border-radius: var(--lv-radius-md);
  margin: var(--lv-spacing-md) 0;
}

.lv-quiz-progress-bar {
  height: 6px;
  background: linear-gradient(90deg, var(--lv-primary), var(--lv-secondary));
  border-radius: var(--lv-radius-full);
  transition: width 0.4s ease;
}

.lv-quiz-question {
  display: none;
  padding: var(--lv-spacing-xl);
  background-color: var(--lv-white);
  border-radius: var(--lv-radius-lg);
  box-shadow: var(--lv-shadow-md);
  margin-bottom: var(--lv-spacing-lg);
}

.lv-quiz-question.active {
  display: block;
  animation: fadeIn 0.5s ease-out;
}

.lv-quiz-options {
  display: flex;
  flex-direction: column;
  gap: var(--lv-spacing-sm);
  margin: var(--lv-spacing-lg) 0;
}

.lv-quiz-option {
  padding: var(--lv-spacing-md) var(--lv-spacing-lg);
  background-color: var(--lv-cream);
  border: 2px solid transparent;
  border-radius: var(--lv-radius-md);
  cursor: pointer;
  transition: var(--lv-transition);
  text-align: right;
}

.lv-quiz-option:hover {
  border-color: var(--lv-primary);
  background-color: var(--lv-white);
}

.lv-quiz-option.selected {
  border-color: var(--lv-primary);
  background-color: var(--lv-primary);
  color: var(--lv-white);
}

.lv-quiz-results {
  display: none;
  padding: var(--lv-spacing-xl);
  background-color: var(--lv-white);
  border-radius: var(--lv-radius-lg);
  box-shadow: var(--lv-shadow-md);
}

.lv-quiz-results.active {
  display: block;
  animation: fadeIn 0.6s ease-out;
}

.lv-quiz-nav {
  display: flex;
  gap: var(--lv-spacing-md);
  margin-top: var(--lv-spacing-md);
}

.lv-quiz-nav .lv-btn {
  flex: 1;
}

.lv-skin-type-badge {
  display: inline-block;
  padding: var(--lv-spacing-sm) var(--lv-spacing-lg);
  background-color: var(--lv-primary);
  color: var(--lv-white);
  border-radius: var(--lv-radius-full);
  font-weight: 700;
  font-size: 18px;
  margin: var(--lv-spacing-md) 0;
}

/* ========== Flash Deals ========== */
.lv-flash-deals {
  padding: var(--lv-spacing-xl);
  background: linear-gradient(135deg, var(--lv-primary) 0%, var(--lv-secondary) 100%);
  border-radius: var(--lv-radius-lg);
  color: var(--lv-white);
  margin: var(--lv-spacing-xl) 0;
  position: relative;
  overflow: hidden;
}

.lv-countdown-timer {
  display: flex;
  justify-content: center;
  gap: var(--lv-spacing-md);
  margin: var(--lv-spacing-lg) 0;
}

.lv-countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--lv-spacing-md);
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: var(--lv-radius-md);
  min-width: 80px;
}

.lv-countdown-value {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: var(--lv-spacing-xs);
}

.lv-countdown-label {
  font-size: 12px;
  opacity: 0.9;
}

.lv-deals-controls {
  display: flex;
  justify-content: center;
  gap: var(--lv-spacing-md);
  margin-bottom: var(--lv-spacing-lg);
}

.lv-deals-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--lv-spacing-lg);
}

.lv-deal-card {
  background-color: var(--lv-white);
  border-radius: var(--lv-radius-lg);
  overflow: hidden;
  box-shadow: var(--lv-shadow-lg);
  transition: var(--lv-transition);
  color: var(--lv-text);
}

.lv-deal-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--lv-shadow-lg);
}

.lv-deal-card.active {
  outline: 2px solid rgba(200, 161, 101, 0.5);
  transform: translateY(-6px);
}

.lv-deal-expired-message {
  margin-top: var(--lv-spacing-sm);
  padding: var(--lv-spacing-sm);
  background: rgba(220, 53, 69, 0.12);
  border-radius: var(--lv-radius-sm);
  font-size: 14px;
}

.lv-deal-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 8px 16px;
  background-color: var(--lv-danger);
  color: var(--lv-white);
  border-radius: var(--lv-radius-full);
  font-weight: 700;
  font-size: 14px;
  z-index: 1;
}

.lv-stock-warning {
  padding: var(--lv-spacing-sm);
  background-color: var(--lv-warning);
  color: var(--lv-white);
  text-align: center;
  font-weight: 600;
  border-radius: var(--lv-radius-sm);
  margin: var(--lv-spacing-md) 0;
}

/* ========== Activity Feed ========== */
.lv-activity-feed {
  max-width: 600px;
  margin: 0 auto;
  padding: var(--lv-spacing-lg);
}

.lv-activity-feed-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--lv-spacing-md);
  margin-bottom: var(--lv-spacing-md);
}

.lv-activity-subtitle {
  margin: 6px 0 0;
  color: #8c7a64;
  font-size: 14px;
}

.lv-activity-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--lv-spacing-sm);
}

.lv-activity-toolbar {
  display: grid;
  gap: var(--lv-spacing-md);
  margin-bottom: var(--lv-spacing-md);
}

.lv-activity-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--lv-spacing-sm);
}

.lv-activity-filter {
  border: 1px solid rgba(72, 56, 36, 0.2);
  background: var(--lv-white);
  padding: 6px 14px;
  border-radius: var(--lv-radius-full);
  cursor: pointer;
  font-size: 14px;
  transition: var(--lv-transition-fast);
}

.lv-activity-filter.active {
  background: var(--lv-primary);
  color: var(--lv-white);
  border-color: transparent;
}

.lv-activity-search input {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--lv-radius-md);
  border: 1px solid rgba(72, 56, 36, 0.2);
  font-family: var(--lv-font-family);
}

.lv-activity-privacy {
  display: flex;
  align-items: center;
  gap: var(--lv-spacing-sm);
  font-size: 14px;
  color: #8c7a64;
}

.lv-activity-privacy select {
  padding: 8px 10px;
  border-radius: var(--lv-radius-sm);
  border: 1px solid rgba(72, 56, 36, 0.2);
  font-family: var(--lv-font-family);
}

.lv-activity-analytics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--lv-spacing-sm);
  margin-bottom: var(--lv-spacing-md);
}

.lv-analytics-item {
  padding: var(--lv-spacing-sm);
  background: var(--lv-cream);
  border-radius: var(--lv-radius-md);
  text-align: center;
}

.lv-analytics-label {
  display: block;
  font-size: 12px;
  color: #8c7a64;
  margin-bottom: 4px;
}

.lv-analytics-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--lv-text);
}

.lv-activity-item {
  display: flex;
  align-items: flex-start;
  gap: var(--lv-spacing-md);
  padding: var(--lv-spacing-md);
  background-color: var(--lv-white);
  border-radius: var(--lv-radius-md);
  box-shadow: var(--lv-shadow-sm);
  margin-bottom: var(--lv-spacing-md);
  animation: slideInRight 0.5s ease-out;
}

.lv-activity-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--lv-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
}

.lv-activity-content {
  flex: 1;
}

.lv-activity-time {
  font-size: 12px;
  color: #999;
  margin-top: var(--lv-spacing-xs);
}

/* ========== Personalization ========== */
.lv-personalized-section {
  padding: var(--lv-spacing-xl);
  background: var(--lv-white);
  border-radius: var(--lv-radius-lg);
  box-shadow: var(--lv-shadow-md);
}

.lv-personalized-header {
  margin-bottom: var(--lv-spacing-md);
}

.lv-personalized-header p {
  margin: 6px 0 0;
  color: #8c7a64;
  font-size: 14px;
}

.lv-personalized-products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--lv-spacing-md);
  margin-top: var(--lv-spacing-md);
}

.lv-recommended-product {
  padding: var(--lv-spacing-md);
  background: var(--lv-cream);
  border-radius: var(--lv-radius-md);
  text-align: right;
}

.lv-brand-story {
  margin: 6px 0;
  font-size: 13px;
  color: #8c7a64;
}

.lv-product-price {
  margin-top: 6px;
  font-weight: 700;
  color: var(--lv-primary);
}

.lv-match-score {
  font-size: 12px;
  color: #8c7a64;
  margin-bottom: 6px;
}

.lv-personalized-actions {
  margin-top: var(--lv-spacing-md);
  text-align: center;
}

/* ========== Progress Indicators ========== */
.lv-progress-steps {
  display: flex;
  justify-content: space-between;
  margin: var(--lv-spacing-xl) 0;
  position: relative;
}

.lv-progress-steps::before {
  content: '';
  position: absolute;
  top: 20px;
  right: 0;
  left: 0;
  height: 2px;
  background-color: var(--lv-cream);
  z-index: 0;
}

.lv-progress-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.lv-progress-step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--lv-cream);
  border: 3px solid var(--lv-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #999;
  margin-bottom: var(--lv-spacing-sm);
  transition: var(--lv-transition);
}

.lv-progress-step.active .lv-progress-step-circle {
  background-color: var(--lv-primary);
  border-color: var(--lv-primary);
  color: var(--lv-white);
}

.lv-progress-step.completed .lv-progress-step-circle {
  background-color: var(--lv-success);
  border-color: var(--lv-success);
  color: var(--lv-white);
}

.lv-progress-step-label {
  font-size: 12px;
  color: #999;
  text-align: center;
}

.lv-progress-step.active .lv-progress-step-label {
  color: var(--lv-primary);
  font-weight: 600;
}

/* ========== Form Elements ========== */
.lv-input-group {
  margin-bottom: var(--lv-spacing-md);
}

.lv-input-group label {
  display: block;
  margin-bottom: var(--lv-spacing-xs);
  font-weight: 600;
  color: var(--lv-text);
}

.lv-input-group input[type="text"],
.lv-input-group input[type="email"],
.lv-input-group input[type="number"],
.lv-input-group textarea,
.lv-input-group select {
  width: 100%;
  padding: var(--lv-spacing-sm) var(--lv-spacing-md);
  border: 2px solid var(--lv-cream);
  border-radius: var(--lv-radius-md);
  font-family: var(--lv-font-family);
  font-size: 16px;
  direction: rtl;
  transition: var(--lv-transition);
}

.lv-input-group input:focus,
.lv-input-group textarea:focus,
.lv-input-group select:focus {
  outline: none;
  border-color: var(--lv-primary);
  box-shadow: 0 0 0 3px rgba(212, 160, 131, 0.1);
}

.lv-input-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* ========== Loading States ========== */
.lv-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--lv-spacing-xl);
}

.lv-loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
  .lv-tool-hero {
    grid-template-columns: 1fr;
  }

  .lv-step-options,
  .lv-gift-options {
    grid-template-columns: 1fr;
  }
  
  .lv-countdown-timer {
    flex-wrap: wrap;
  }
  
  .lv-progress-steps {
    flex-direction: column;
    gap: var(--lv-spacing-md);
  }
  
  .lv-progress-steps::before {
    display: none;
  }

  .lv-activity-feed-header {
    flex-direction: column;
    align-items: stretch;
  }

  .lv-activity-actions {
    justify-content: flex-start;
  }
}

