@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400..700;1,400..700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* Premium Vibe Colors */
  --bg-cream: #FDFBF7;         /* Warm linen/cream background */
  --bg-canvas: #F9F7F2;        /* Sleek card and soft input background */
  --forest-deep: #1E3932;      /* Sleek deep forest green */
  --forest-medium: #2D5A27;    /* Sleek medium green */
  --forest-light: #E8EFEA;     /* Soft sage green for badges/backgrounds */
  --gold-accent: #C5A059;      /* Beautiful muted heritage gold */
  --gold-light: #FFF8E1;       /* Soft gold ivory/amber */
  --charcoal: #2C2C2C;         /* Soft charcoal black for high legibility */
  --gray-subtle: #8C8C8C;      /* Muted gray for metadata indicators */
  --white-pure: #ffffff;
  
  /* System colors for trust ratings */
  --trust-a: #1E3932;
  --trust-b: #2D5A27;
  --trust-c: #C5A059;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;

  /* Elevation */
  --shadow-soft: 0 12px 34px -10px rgba(17, 54, 41, 0.08);
  --shadow-card: 0 8px 24px -6px rgba(17, 54, 41, 0.05), 0 2px 8px -2px rgba(17, 54, 41, 0.02);
  --shadow-inset: inset 0 2px 4px 0 rgba(17, 54, 41, 0.03);
  --border-subtle: 1px solid rgba(27, 78, 62, 0.08);
  --border-gold: 1px solid rgba(194, 149, 59, 0.18);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Transition */
  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Base Resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-sans);
  background-color: #ede7dd; /* Rich desktop backdrop simulating premium plaster/linen workspace */
  color: var(--charcoal);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow-x: hidden;
  line-height: 1.5;
}

/* DeskLo Mobile App Simulator Frame (Responsive) */
.dekhlo-container {
  width: 100%;
  max-width: 480px; /* iPhone 15 Pro Max style max-width for outstanding desktop rendering */
  min-height: 100vh;
  background-color: var(--bg-cream);
  box-shadow: 0 40px 100px -20px rgba(17, 54, 41, 0.22);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

@media (max-width: 480px) {
  body {
    background-color: var(--bg-cream);
  }
  .dekhlo-container {
    max-width: 100%;
    box-shadow: none;
  }
}

/* Dynamic Scroll Container with hidden scrollbars representing native touch feels */
.dekhlo-main {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 96px; /* Room for premium navigation bar */
  scroll-behavior: smooth;
  display: flex;
  flex-direction: column;
}

.dekhlo-main::-webkit-scrollbar {
  display: none;
}
.dekhlo-main {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

/* Typography styles */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--forest-deep);
  line-height: 1.25;
}

.brand-serif {
  font-family: var(--font-serif);
  font-weight: 700;
  font-style: italic;
}

/* Screen Layout state management */
.screen {
  display: none;
  width: 100%;
  animation: fadeIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.screen.active {
  display: flex;
  flex-direction: column;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* PREMIUM BOTTOM TAB BAR */
.nav-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 78px;
  background-color: rgba(251, 249, 244, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: var(--border-subtle);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom, 8px);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--gray-subtle);
  cursor: pointer;
  transition: var(--transition-smooth);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  gap: 4px;
  position: relative;
}

.nav-item svg {
  width: 22px;
  height: 22px;
  stroke-width: 2px;
  transition: var(--transition-bounce);
}

.nav-item.active {
  color: var(--forest-deep);
}

.nav-item.active svg {
  transform: translateY(-2px);
  color: var(--forest-deep);
}

.nav-item.active::after {
  content: '';
  position: absolute;
  top: -4px;
  width: 5px;
  height: 5px;
  background-color: var(--gold-accent);
  border-radius: var(--radius-full);
}

/* -----------------------
   HOME SCREEN COMPONENTS
   ----------------------- */

.home-header {
  padding: 32px 24px 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.home-logo-wrap {
  display: flex;
  flex-direction: column;
}

.home-logo {
  font-size: 30px;
  color: var(--forest-deep);
  letter-spacing: -0.5px;
  margin-bottom: 2px;
}

.home-logo .gold {
  color: var(--gold-accent);
}

.home-subtitle {
  font-size: 13px;
  font-family: var(--font-sans);
  color: var(--gray-subtle);
  font-weight: 400;
  letter-spacing: 0.1px;
}

.home-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background-color: var(--forest-light);
  border: 1px solid rgba(27, 78, 62, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--forest-deep);
  font-weight: 600;
  font-size: 14px;
  font-family: var(--font-display);
}

/* Beautiful Warm Search Box Anchor */
.search-anchor-box {
  margin: 8px 24px 24px 24px;
  background-color: var(--bg-canvas);
  border: 1px solid rgba(27, 78, 62, 0.05);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.search-anchor-box:hover, .search-anchor-box:focus-within {
  border-color: rgba(27, 78, 62, 0.2);
  background-color: #f0e8dc;
}

.search-anchor-box svg {
  color: var(--forest-medium);
  width: 20px;
  height: 20px;
}

.search-anchor-text {
  font-size: 14px;
  color: var(--gray-subtle);
  font-family: var(--font-sans);
  flex: 1;
}

.search-shortcuts {
  font-size: 11px;
  color: var(--gold-accent);
  background-color: rgba(194, 149, 59, 0.08);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

/* Clean Category horizontal slider */
.section-title-wrap {
  padding: 0 24px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-title {
  font-size: 18px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--forest-deep);
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 16px;
  height: 2px;
  background-color: var(--gold-accent);
}

.section-action {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--gold-accent);
  background: none;
  border: none;
  cursor: pointer;
}

.category-badge-slider {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 24px 24px 24px;
  scrollbar-width: none;
}

.category-badge-slider::-webkit-scrollbar {
  display: none;
}

.category-badge {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--charcoal);
  background-color: rgba(27, 78, 62, 0.04);
  border: 1px solid rgba(27, 78, 62, 0.03);
  padding: 10px 18px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.category-badge:hover, .category-badge.active {
  background-color: var(--forest-deep);
  color: var(--white-pure);
  border-color: var(--forest-deep);
  box-shadow: 0 6px 14px -4px rgba(17, 54, 41, 0.2);
}

/* Trust-First Featured Product Layout */
.featured-card {
  margin: 0 24px 28px 24px;
  background-color: var(--white-pure);
  border-radius: var(--radius-lg);
  border: var(--border-subtle);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
  cursor: pointer;
}

.featured-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.featured-img-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  background-color: var(--bg-canvas);
  overflow: hidden;
}

.featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.featured-card:hover .featured-img {
  transform: scale(1.03);
}

.trust-badge-pill {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(17, 54, 41, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--bg-cream);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-display);
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(194, 149, 59, 0.25);
}

.trust-badge-pill svg {
  width: 12px;
  height: 12px;
  color: var(--gold-accent);
  fill: var(--gold-accent);
}

.source-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-display);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.source-badge.amazon {
  background-color: #232f3e;
  color: #ff9900;
}

.source-badge.flipkart {
  background-color: #2874f0;
  color: #ffe500;
}

.featured-content {
  padding: 20px;
}

.featured-category {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--gold-accent);
  font-weight: 700;
  font-family: var(--font-display);
  margin-bottom: 4px;
}

.featured-title {
  font-size: 17px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--forest-deep);
  margin-bottom: 8px;
  line-height: 1.3;
}

.featured-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid rgba(27, 78, 62, 0.05);
  margin-top: 12px;
}

.featured-price-wrap {
  display: flex;
  flex-direction: column;
}

.featured-price {
  font-size: 18px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--forest-deep);
}

.featured-original-price {
  font-size: 12px;
  color: var(--gray-subtle);
  text-decoration: line-through;
}

.companion-verdict-banner {
  background-color: var(--gold-light);
  border-left: 3px solid var(--gold-accent);
  padding: 10px 14px;
  border-top-right-radius: var(--radius-sm);
  border-bottom-right-radius: var(--radius-sm);
  margin-top: 12px;
  font-size: 12px;
  font-style: italic;
  font-family: var(--font-sans);
  color: var(--charcoal);
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.companion-verdict-banner svg {
  width: 16px;
  height: 16px;
  color: var(--gold-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Beautiful Warm Explainer Banner on Home */
.calm-explainer-card {
  margin: 0 24px 28px 24px;
  background: linear-gradient(135deg, var(--forest-deep) 0%, #0d291e 100%);
  color: var(--bg-cream);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 35px -5px rgba(17, 54, 41, 0.15);
  border: var(--border-gold);
}

.calm-explainer-card::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 150px;
  height: 150px;
  border-radius: var(--radius-full);
  background: radial-gradient(circle, rgba(194, 149, 59, 0.12) 0%, transparent 70%);
}

.explainer-title {
  font-size: 19px;
  color: var(--white-pure);
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.explainer-title svg {
  color: var(--gold-accent);
  width: 18px;
  height: 18px;
}

.explainer-desc {
  font-size: 13px;
  font-family: var(--font-sans);
  color: #ccdcd4;
  line-height: 1.5;
  margin-bottom: 16px;
}

.explainer-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.explainer-pill {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  background-color: rgba(251, 249, 244, 0.08);
  border: 1px solid rgba(251, 249, 244, 0.1);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  color: var(--bg-cream);
  display: flex;
  align-items: center;
  gap: 4px;
}

.explainer-pill svg {
  width: 11px;
  height: 11px;
  color: var(--gold-accent);
}

/* Horizontal slide recently viewed */
.recent-view-slider {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 24px 28px 24px;
  scrollbar-width: none;
}

.recent-view-slider::-webkit-scrollbar {
  display: none;
}

.recent-card {
  flex-shrink: 0;
  width: 140px;
  background-color: var(--white-pure);
  border-radius: var(--radius-md);
  border: var(--border-subtle);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.recent-card:hover {
  transform: translateY(-2px);
}

.recent-img-wrap {
  width: 100%;
  height: 96px;
  background-color: var(--bg-canvas);
  overflow: hidden;
}

.recent-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recent-info {
  padding: 10px;
}

.recent-title {
  font-size: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--forest-deep);
  height: 36px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 4px;
}

.recent-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.recent-price {
  font-size: 12px;
  font-weight: 700;
  color: var(--forest-medium);
}

.recent-score {
  font-size: 10px;
  font-weight: 700;
  color: var(--gold-accent);
  background: rgba(194, 149, 59, 0.08);
  padding: 1px 4px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
}


/* -----------------------
   SEARCH SCREEN COMPONENTS
   ----------------------- */

.search-header-sticky {
  position: sticky;
  top: 0;
  background-color: var(--bg-cream);
  z-index: 50;
  padding: 24px 24px 12px 24px;
  border-bottom: 1px solid rgba(27, 78, 62, 0.03);
}

.search-title-row {
  margin-bottom: 12px;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  gap: 10px;
  align-items: center;
}

.search-input-box {
  flex: 1;
  background-color: var(--bg-canvas);
  border: 1px solid rgba(27, 78, 62, 0.06);
  border-radius: var(--radius-md);
  padding: 14px 18px 14px 44px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--charcoal);
  outline: none;
  transition: var(--transition-smooth);
}

.search-input-box:focus {
  border-color: rgba(27, 78, 62, 0.3);
  background-color: var(--white-pure);
  box-shadow: 0 4px 12px rgba(17, 54, 41, 0.04);
}

.search-input-wrapper svg.search-icon {
  position: absolute;
  left: 16px;
  color: var(--gray-subtle);
  width: 18px;
  height: 18px;
}

.search-clear-btn {
  position: absolute;
  right: 14px;
  background: none;
  border: none;
  color: var(--gray-subtle);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
}

.search-clear-btn svg {
  width: 15px;
  height: 15px;
}

.filter-pills-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 0;
  margin-top: 8px;
  scrollbar-width: none;
}

.filter-pills-row::-webkit-scrollbar {
  display: none;
}

.filter-pill {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-subtle);
  background-color: rgba(27, 78, 62, 0.03);
  border: 1px solid rgba(27, 78, 62, 0.02);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-pill.active {
  background-color: var(--forest-medium);
  color: var(--white-pure);
  border-color: var(--forest-medium);
}

/* Embedded product search results list */
.search-results-container {
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.no-results {
  padding: 48px 24px;
  text-align: center;
  color: var(--gray-subtle);
  font-family: var(--font-sans);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.no-results svg {
  width: 44px;
  height: 44px;
  color: var(--gold-accent);
}

.no-results-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--forest-deep);
}

.no-results-text {
  font-size: 13px;
  max-width: 220px;
  line-height: 1.4;
}

/* Dynamic Product Card in List */
.product-item-card {
  background-color: var(--white-pure);
  border: var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  gap: 14px;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
  cursor: pointer;
  position: relative;
}

.product-item-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.product-item-img-wrap {
  width: 90px;
  height: 90px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-canvas);
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}

.product-item-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-item-brand-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2px;
}

.product-item-category {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gold-accent);
  font-weight: 700;
  font-family: var(--font-display);
}

.product-item-platform {
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-display);
  padding: 1px 6px;
  border-radius: var(--radius-sm);
}

.product-item-platform.amazon {
  background-color: #fcefdc;
  color: #ff9900;
}

.product-item-platform.flipkart {
  background-color: #edf2fc;
  color: #1a6ff8;
}

.product-item-title {
  font-size: 14px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--forest-deep);
  line-height: 1.3;
  margin-bottom: 4px;
  height: 36px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-item-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.product-item-price-col {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.product-item-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--forest-deep);
}

.product-item-discount {
  font-size: 9px;
  color: var(--gold-accent);
  font-weight: 700;
}

.product-item-trust-indicator {
  display: flex;
  align-items: center;
  gap: 3px;
  background-color: var(--forest-light);
  border: 1px solid rgba(27, 78, 62, 0.05);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.product-item-trust-indicator svg {
  width: 11px;
  height: 11px;
  color: var(--forest-medium);
  fill: var(--forest-medium);
}

.product-item-trust-label {
  font-size: 10px;
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--forest-medium);
}


/* -----------------------
   PRODUCT DETAILS SCREEN
   ----------------------- */

.details-sticky-header {
  position: sticky;
  top: 0;
  background-color: rgba(251, 249, 244, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 50;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(27, 78, 62, 0.03);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.back-btn, .share-btn {
  background: none;
  border: none;
  color: var(--forest-deep);
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.back-btn:hover, .share-btn:hover {
  background-color: rgba(27, 78, 62, 0.04);
}

.details-title-navbar {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--forest-deep);
  flex: 1;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 12px;
}

/* Beautiful Product Showcase Image Banner */
.details-hero {
  position: relative;
  width: 100%;
  height: 280px;
  background-color: var(--bg-canvas);
}

.details-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.details-platform-strip {
  position: absolute;
  bottom: 16px;
  left: 20px;
  background: rgba(17, 54, 41, 0.95);
  backdrop-filter: blur(8px);
  color: var(--bg-cream);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-family: var(--font-display);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: var(--border-gold);
}

.details-platform-strip .platform-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background-color: var(--gold-accent);
}

/* Product Info Card overlay effect */
.details-body {
  padding: 24px 20px;
  flex: 1;
}

.details-category {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold-accent);
  font-weight: 700;
  font-family: var(--font-display);
  margin-bottom: 6px;
}

.details-title-full {
  font-size: 22px;
  font-weight: 700;
  color: var(--forest-deep);
  margin-bottom: 12px;
  line-height: 1.35;
  font-family: var(--font-display);
}

.details-score-container {
  display: flex;
  align-items: center;
  gap: 16px;
  background-color: var(--white-pure);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  border: var(--border-subtle);
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
}

.details-score-number {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  border: 4px solid var(--forest-light);
  background-color: var(--forest-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  color: var(--white-pure);
  box-shadow: 0 4px 10px rgba(17, 54, 41, 0.1);
}

.details-score-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.details-score-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--forest-deep);
  margin-bottom: 2px;
}

.details-score-desc {
  font-size: 11px;
  color: var(--gray-subtle);
}

.details-score-value {
  color: var(--gold-accent);
  font-weight: 700;
}

/* Honest Companion Verdict Block */
.companion-verdict-card {
  background-color: var(--gold-light);
  border: var(--border-gold);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 28px;
}

.verdict-header {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-accent);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.verdict-header svg {
  width: 14px;
  height: 14px;
}

.verdict-text {
  font-size: 14px;
  font-style: italic;
  font-family: var(--font-sans);
  color: var(--charcoal);
  line-height: 1.5;
}

/* Content Sections */
.details-section {
  margin-bottom: 28px;
}

.item-price-hero-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--white-pure);
  border: var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 24px;
}

.details-pricing-block {
  display: flex;
  flex-direction: column;
}

.price-main {
  font-size: 26px;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--forest-deep);
  line-height: 1;
}

.price-strike-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.price-strike {
  font-size: 13px;
  color: var(--gray-subtle);
  text-decoration: line-through;
}

.price-discount {
  font-size: 11px;
  color: var(--gold-accent);
  font-weight: 700;
  background-color: rgba(194, 149, 59, 0.08);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
}

/* Simplified Explanation Block (The Star Feature) */
.explanation-card {
  background-color: var(--white-pure);
  border: var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.explanation-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: var(--forest-medium);
}

.explanation-badge-banner {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  color: var(--forest-medium);
  background-color: var(--forest-light);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 12px;
}

.explanation-badge-banner svg {
  width: 11px;
  height: 11px;
}

.explanation-text {
  font-size: 14px;
  color: var(--charcoal);
  line-height: 1.6;
  font-family: var(--font-sans);
}

/* Trust List Indicators */
.trust-bullets-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.trust-bullet-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.trust-bullet-icon {
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  background-color: var(--forest-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--forest-medium);
}

.trust-bullet-icon svg {
  width: 12px;
  height: 12px;
}

.trust-bullet-text {
  font-size: 13px;
  color: var(--charcoal);
  font-family: var(--font-sans);
}

/* Warnings/Dry facts honesty indicators */
.know-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.know-icon {
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  background-color: #fbf5e8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold-accent);
}

.know-icon svg {
  width: 12px;
  height: 12px;
}

.know-text {
  font-size: 13px;
  color: var(--charcoal);
  font-family: var(--font-sans);
}

/* Who is it for block */
.audience-box {
  background-color: rgba(28, 82, 62, 0.02);
  border: 1px dashed rgba(28, 82, 62, 0.1);
  border-radius: var(--radius-md);
  padding: 16px;
  font-size: 13px;
  color: var(--charcoal);
  line-height: 1.5;
  font-style: italic;
}

/* Specs Tech specifications grid */
.specs-table {
  background-color: var(--white-pure);
  border: var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.specs-row {
  display: flex;
  border-bottom: 1px solid rgba(27, 78, 62, 0.04);
  font-size: 13px;
}

.specs-row:last-child {
  border-bottom: none;
}

.specs-key {
  width: 130px;
  padding: 12px 16px;
  background-color: rgba(27, 78, 62, 0.015);
  font-weight: 600;
  color: var(--gray-subtle);
  border-right: 1px solid rgba(27, 78, 62, 0.04);
}

.specs-value {
  flex: 1;
  padding: 12px 16px;
  color: var(--charcoal);
}

/* CTA Sticky Action Bar block at bottom */
.cta-action-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(251, 249, 244, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: var(--border-subtle);
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0px)) 20px;
  z-index: 101;
  display: flex;
  gap: 12px;
}

.cta-button {
  flex: 1;
  background-color: var(--forest-deep);
  color: var(--white-pure);
  border: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  padding: 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition-bounce);
  box-shadow: 0 10px 24px -6px rgba(17, 54, 41, 0.35);
  text-decoration: none;
}

.cta-button:hover {
  transform: translateY(-2px);
  background-color: var(--forest-medium);
  box-shadow: 0 12px 30px -4px rgba(17, 54, 41, 0.45);
}

.cta-button svg {
  width: 18px;
  height: 18px;
}

.cta-button .platform-name {
  color: var(--gold-accent);
}

.cta-dismiss-btn {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(27, 78, 62, 0.1);
  background-color: var(--white-pure);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--forest-deep);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.cta-dismiss-btn:hover {
  background-color: var(--forest-light);
}


/* -----------------------
   SETTINGS SCREEN
   ----------------------- */

.settings-header {
  padding: 32px 24px 16px 24px;
}

.settings-section-card {
  background-color: var(--white-pure);
  border: var(--border-subtle);
  border-radius: var(--radius-lg);
  margin: 0 24px 24px 24px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.settings-section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--gold-accent);
  letter-spacing: 0.8px;
  padding: 18px 20px 8px 20px;
}

.settings-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(27, 78, 62, 0.04);
  transition: var(--transition-smooth);
}

.settings-row:last-child {
  border-bottom: none;
}

.settings-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.settings-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background-color: var(--forest-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--forest-medium);
}

.settings-icon svg {
  width: 16px;
  height: 16px;
}

.settings-text-block {
  display: flex;
  flex-direction: column;
}

.settings-item-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--charcoal);
  font-family: var(--font-sans);
}

.settings-item-desc {
  font-size: 11px;
  color: var(--gray-subtle);
}

/* Toggle Switch styles for pure HTML/CSS interactive feel */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider-toggle {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: var(--bg-canvas);
  transition: .3s;
  border-radius: var(--radius-full);
}

.slider-toggle:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: var(--white-pure);
  transition: .3s;
  border-radius: var(--radius-full);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

input:checked + .slider-toggle {
  background-color: var(--forest-deep);
}

input:checked + .slider-toggle:before {
  transform: translateX(20px);
}

.settings-value-pill {
  font-size: 11px;
  font-weight: 700;
  background-color: var(--forest-light);
  color: var(--forest-medium);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
}

/* Profile Section on top of Settings */
.settings-profile-card {
  margin: 0 24px 24px 24px;
  background: white;
  border-radius: var(--radius-lg);
  border: var(--border-subtle);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-card);
}

.profile-avatar {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background-color: var(--forest-deep);
  color: var(--white-pure);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-family: var(--font-display);
  font-weight: 700;
  border: 1px solid rgba(27, 78, 62, 0.15);
}

.profile-info {
  flex: 1;
}

.profile-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--forest-deep);
}

.profile-role {
  font-size: 12px;
  color: var(--gray-subtle);
}

.badge-verified-member {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: var(--gold-accent);
  background-color: var(--gold-light);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-top: 4px;
  font-weight: 700;
}

.badge-verified-member svg {
  width: 10px;
  height: 10px;
}

/* Bottom decorative brand banner in settings */
.settings-brand-stamp {
  margin: 16px 24px 32px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.stamp-logo {
  font-size: 18px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--forest-deep);
}

.stamp-logo .gold {
  color: var(--gold-accent);
}

.stamp-text {
  font-size: 12px;
  color: var(--gray-subtle);
  font-family: var(--font-sans);
  max-width: 250px;
  line-height: 1.4;
}

.stamp-version {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(28, 82, 62, 0.3);
}

/* Responsive Utilities */
.text-align-center { text-align: center; }
.margin-top-auto { margin-top: auto; }
.display-flex { display: flex; }
.gap-8 { gap: 8px; }

/* Highlight styling inside search text query matches */
.highlight {
  background-color: rgba(194, 149, 59, 0.15);
  border-radius: 2px;
  padding: 0 2px;
  font-weight: 600;
}
