/* ============================================================
   assets/css/pages/index.css — Avanzaar Homepage (Complete)
   ============================================================
   WHY THE PREVIOUS VERSION DIDN'T WORK:
   style.css defines `.header-container` and `.footer-container`
   but never defines a plain `.container` class. index.php uses
   `.container` repeatedly (e.g. <div class="container av-hero-wrapper">,
   <div class="container av-stats-inner">, plain <div class="container">
   around the categories/featured/recent/trust/cta sections).
   With no `.container` rule anywhere, those elements had no
   max-width or padding at all -- full-bleed, edge-to-edge,
   which is what caused the broken/overlapping layout.

   THE FIX: this file defines `.container` itself (since style.css
   doesn't own it), plus every "av-" prefixed class used across
   the whole homepage in one place. Tokens (--color-*, --font-*,
   --space-*, --radius-*, --shadow-*) are reused as-is from
   style.css's :root -- no new colors introduced.

   Load order:
     <link rel="stylesheet" href="assets/css/style.css">
     <link rel="stylesheet" href="assets/css/pages/index.css">
   ============================================================ */

/* ------------------------------------------------------------
   Container -- defined HERE because style.css does not define
   a plain .container anywhere (only .header-container /
   .footer-container, which are unrelated, separate classes).
   ------------------------------------------------------------ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  box-sizing: border-box;
}

.av-mono {
  font-family: 'IBM Plex Mono', 'SF Mono', Consolas, monospace;
  font-variant-numeric: tabular-nums;
}

/* Shared scroll-reveal primitive -- one motion idea, reused on
   every section below the hero. Toggle .av-revealed via JS
   (IntersectionObserver, included at the bottom of this file's
   usage notes) as elements enter the viewport. */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0s);
}
[data-reveal].av-revealed {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.av-hero {
  position: relative;
  background: var(--color-primary-dark);
  overflow: hidden;
  padding: 88px 0 68px;
  isolation: isolate;
}

.av-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.55), transparent 70%);
  animation: av-grid-drift 40s linear infinite;
  z-index: 0;
}

@keyframes av-grid-drift {
  from { background-position: 0 0; }
  to   { background-position: 54px 54px; }
}

.av-hero-glow {
  position: absolute;
  top: -210px;
  right: -150px;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(245,166,35,0.32), rgba(245,166,35,0) 70%);
  filter: blur(6px);
  pointer-events: none;
  z-index: 0;
  animation: av-glow-breathe 8s ease-in-out infinite;
}

@keyframes av-glow-breathe {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.06); }
}

@media (prefers-reduced-motion: reduce) {
  .av-hero::before { animation: none; }
  .av-hero-glow { animation: none; }
}

/* .av-hero-wrapper sits ON TOP of .container in the markup
   (class="container av-hero-wrapper") -- .container supplies
   max-width/centering/padding, this class only adds the grid. */
.av-hero-wrapper {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-xl);
  align-items: center;
}

@media (max-width: 940px) {
  .av-hero-wrapper { grid-template-columns: 1fr; }
}

/* ---- Eyebrow badge ---- */
.av-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  color: #E3E7FF;
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
  opacity: 0;
  animation: av-fade-up 0.7s cubic-bezier(0.16,1,0.3,1) 0.05s forwards;
}

.av-hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-success);
  box-shadow: 0 0 0 0 rgba(16,185,129,0.6);
  animation: av-pulse 2s infinite;
}

@keyframes av-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(16,185,129,0.55); }
  70%  { box-shadow: 0 0 0 6px rgba(16,185,129,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}

@keyframes av-fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- Headline ---- */
.av-hero-headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 5.2vw, 58px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: #FFFFFF;
  margin-bottom: 22px;
}

.av-hero-accent {
  color: var(--color-accent);
}

@media (prefers-reduced-motion: reduce) {
  .av-hero-badge { animation: none; opacity: 1; }
}

.av-hero-description {
  font-size: 16px;
  color: #B9C0E0;
  max-width: 540px;
  line-height: 1.7;
  margin-bottom: 30px;
  opacity: 0;
  animation: av-fade-up 0.7s cubic-bezier(0.16,1,0.3,1) 0.3s forwards;
}

/* ---- Search bar: floating, lifted card ---- */
.av-hero-search {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 6px 6px 6px 18px;
  max-width: 560px;
  margin-bottom: 22px;
  box-shadow: 0 20px 50px rgba(8,12,36,0.45);
  opacity: 0;
  animation: av-fade-up 0.7s cubic-bezier(0.16,1,0.3,1) 0.42s forwards;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.av-hero-search:focus-within {
  box-shadow: 0 24px 60px rgba(8,12,36,0.55), 0 0 0 3px rgba(245,166,35,0.35);
  transform: translateY(-2px);
}

.av-hero-search-icon {
  display: flex;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.av-hero-search input {
  flex: 1 1 auto;
  min-width: 0;
  border: none;
  outline: none;
  padding: 14px 8px;
  font-size: 14.5px;
  font-family: var(--font-body);
  color: var(--color-text);
  background: transparent;
}

.av-hero-search input::placeholder { color: #9CA3AF; }
.av-hero-search .btn { flex-shrink: 0; white-space: nowrap; }

@media (max-width: 540px) {
  .av-hero-search { flex-wrap: wrap; padding: 14px; }
  .av-hero-search input { width: 100%; padding: 10px 0; }
  .av-hero-search .btn { width: 100%; }
}

/* ---- Quick category tag pills ---- */
.av-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 36px;
  opacity: 0;
  animation: av-fade-up 0.7s cubic-bezier(0.16,1,0.3,1) 0.54s forwards;
}

.av-hero-tag {
  font-size: 13px;
  font-weight: 500;
  color: #D7DBF5;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 7px 16px;
  border-radius: 999px;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.av-hero-tag:hover {
  background: rgba(245,166,35,0.16);
  border-color: rgba(245,166,35,0.45);
  color: var(--color-accent);
  transform: translateY(-1px);
}

/* ---- Category marquee strip ---- */
.av-category-strip {
  position: relative;
  max-width: 600px;
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  opacity: 0;
  animation: av-fade-up 0.7s cubic-bezier(0.16,1,0.3,1) 0.64s forwards;
}

.av-category-track {
  display: flex;
  gap: 34px;
  width: max-content;
  animation: av-marquee-scroll 32s linear infinite;
}

.av-hero:hover .av-category-track {
  animation-play-state: paused;
}

.av-category-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 500;
  color: #C3C9EA;
  white-space: nowrap;
}

.av-category-item i {
  font-size: 14px;
  color: var(--color-accent);
  width: 18px;
  text-align: center;
}

@keyframes av-marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .av-category-track { animation: none; }
}

/* ============================================================
   HERO VISUAL — signature element: the Asset Card
   ============================================================ */
.av-hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  perspective: 1200px;
}

.av-asset-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 370px;
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  box-shadow: 0 30px 70px rgba(8,12,36,0.5);
  padding: var(--space-lg);
  opacity: 0;
  transform: translateY(28px);
  animation: av-card-rise 0.9s cubic-bezier(0.16,1,0.3,1) 0.3s forwards;
  transition: transform 0.15s ease-out, box-shadow 0.25s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

@keyframes av-card-rise {
  to { opacity: 1; transform: translateY(0); }
}

.av-asset-card.av-tilt-active {
  transform: rotateX(calc(var(--tiltY, 0) * 1deg))
             rotateY(calc(var(--tiltX, 0) * 1deg));
  box-shadow: 0 36px 80px rgba(8,12,36,0.55);
}

@media (prefers-reduced-motion: reduce) {
  .av-asset-card { animation: none; opacity: 1; transform: none; }
  .av-asset-card.av-tilt-active { transform: none; }
}

.av-asset-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
}

.av-asset-chip {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--color-primary);
  background: var(--color-bg);
  padding: 5px 12px;
  border-radius: 999px;
}

.av-asset-stamp {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-success);
  background: var(--color-success-bg);
  padding: 5px 10px;
  border-radius: 999px;
  transform: rotate(-8deg) scale(0);
  animation: av-stamp-in 0.5s cubic-bezier(0.34,1.56,0.64,1) 1.1s forwards;
}

@keyframes av-stamp-in {
  to { transform: rotate(-8deg) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .av-asset-stamp { animation: none; transform: rotate(-8deg) scale(1); }
}

.av-asset-card-figure {
  display: flex;
  flex-direction: column;
  margin-bottom: var(--space-md);
}

.av-asset-figure-label {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: 2px;
}

.av-asset-figure-value {
  font-family: 'IBM Plex Mono', 'SF Mono', Consolas, monospace;
  font-variant-numeric: tabular-nums;
  font-size: 34px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.01em;
}

.av-asset-card-rows {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: var(--space-md) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-md);
}

.av-asset-row {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--color-text);
}

.av-asset-row span { color: var(--color-text-muted); }
.av-asset-row strong { font-weight: 600; }

.av-asset-row-live {
  color: var(--color-success);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.av-asset-row-live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-success);
  box-shadow: 0 0 0 0 rgba(16,185,129,0.6);
  animation: av-pulse 2s infinite;
}

.av-asset-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.av-asset-price-label { font-size: 12.5px; color: var(--color-text-muted); }

.av-asset-price {
  font-family: 'IBM Plex Mono', 'SF Mono', Consolas, monospace;
  font-variant-numeric: tabular-nums;
  font-size: 21px;
  font-weight: 700;
  color: var(--color-accent-dark);
}

.av-float-card {
  position: absolute;
  z-index: 3;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 10px 16px;
  display: flex;
  flex-direction: column;
  font-size: 11.5px;
  opacity: 0;
}

.av-float-card span { color: var(--color-text-muted); }
.av-float-card strong {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--color-primary);
  font-variant-numeric: tabular-nums;
}

.av-float-1 { top: 4%; left: -6%; }
.av-float-2 { bottom: 8%; right: -8%; }

@keyframes av-float-in-1 {
  from { opacity: 0; transform: translate(-16px, -10px); }
  to   { opacity: 1; transform: translate(0, 0); }
}
@keyframes av-float-in-2 {
  from { opacity: 0; transform: translate(16px, 10px); }
  to   { opacity: 1; transform: translate(0, 0); }
}
@keyframes av-drift-1 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes av-drift-2 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

@media (prefers-reduced-motion: no-preference) {
  .av-float-1 { animation: av-float-in-1 0.7s cubic-bezier(0.16,1,0.3,1) 1.0s forwards, av-drift-1 6s ease-in-out 1.8s infinite; }
  .av-float-2 { animation: av-float-in-2 0.7s cubic-bezier(0.16,1,0.3,1) 1.2s forwards, av-drift-2 7s ease-in-out 2.0s infinite; }
}

@media (max-width: 940px) {
  .av-float-1, .av-float-2 { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .av-float-card { animation: none; opacity: 1; }
}

/* ============================================================
   STATS STRIP
   ============================================================ */
.av-stats-strip {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.av-stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: var(--space-lg) 0;
  text-align: center;
}

.av-stat-item { position: relative; }

.av-stat-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 32px;
  background: var(--color-border);
}

.av-stat-item strong {
  display: block;
  font-family: 'IBM Plex Mono', 'SF Mono', Consolas, monospace;
  font-variant-numeric: tabular-nums;
  font-size: 27px;
  font-weight: 700;
  color: var(--color-primary);
}

.av-stat-item span { font-size: 12.5px; color: var(--color-text-muted); }

@media (max-width: 700px) {
  .av-stats-inner { grid-template-columns: repeat(2, 1fr); gap: var(--space-md) 0; }
  .av-stat-item:nth-child(2)::after { display: none; }
  .av-stat-item:not(:last-child)::after { height: 24px; }
}

/* ============================================================
   GENERIC SECTION WRAPPER
   ============================================================ */
.av-section { padding: var(--space-xl) 0; }
.av-section-tint { background: var(--color-bg); }

.av-section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
  gap: 8px;
}

.av-section-title-center {
  flex-direction: column;
  text-align: center;
  align-items: center;
}

.av-star { color: var(--color-accent); }

.av-category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.av-category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px 12px 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
}
.av-category-card:hover {
  background: var(--color-surface-hover);
  border-color: var(--color-accent);
}

/* Badge icon wrapper */
.av-cat-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 14px;
  background: rgba(0,0,0,0.04);
  font-size: 22px;
}
.av-cat-badge {
  position: absolute;
  top: -6px; right: -8px;
  background: #E24B4A;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 5px;
  border-radius: 20px;
  min-width: 18px;
  text-align: center;
  border: 2px solid var(--color-bg); /* matches page bg to create cutout effect */
  line-height: 1;
}

.av-category-grid {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 8px;
}

.av-category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 6px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

/* hide name & count completely */
.av-category-name,
.av-category-count { display: none; }

/* tooltip on hover */
.av-cat-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 10;
}
.av-category-card:hover .av-cat-tooltip { opacity: 1; }

/* mobile */
@media (max-width: 540px) {
  .av-category-grid { grid-template-columns: repeat(5, 1fr); }
}

/* Mobile: 4-column icon grid */
@media (max-width: 500px) {
  .av-category-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .av-category-card { padding: 12px 4px 8px; gap: 5px; }
  .av-cat-icon-wrap { width: 40px; height: 40px; font-size: 18px; }
  .av-category-name { font-size: 10px; }
  .av-category-count { display: none; }
}


/* Grid */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

/* Card */
a.listing-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
a.listing-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
}

/* Thumbnail */
.listing-card-thumb {
  position: relative;
  width: 100%; aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--color-surface-alt);
  flex-shrink: 0;
}
.listing-card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.3s ease;
}
a.listing-card:hover .listing-card-thumb img { transform: scale(1.03); }

/* Badges */
.lc-badge {
  position: absolute; top: 8px;
  font-size: 10px; font-weight: 600;
  padding: 3px 8px; border-radius: 20px;
  display: inline-flex; align-items: center; gap: 4px;
  line-height: 1.4;
}
.lc-badge i { font-size: 8px; }
.lc-badge-featured { left: 8px; background: #BA7517; color: #fff; }
.lc-badge-escrow   { right: 8px; background: rgba(0,0,0,0.55); color: #fff; }
.lc-badge-cat      { right: 8px; background: rgba(0,0,0,0.55); color: #fff; }

/* Body */
.listing-card-body {
  display: flex; flex-direction: column;
  flex: 1; padding: 11px 12px 12px;
}
.lc-category {
  font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--color-text-muted); margin: 0 0 3px;
}
.lc-title {
  font-size: 13px; font-weight: 600;
  color: var(--color-text); line-height: 1.4;
  margin: 0 0 8px;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.lc-divider {
  height: 1px; background: var(--color-border);
  margin-bottom: 8px;
}
.lc-meta {
  display: flex; align-items: center;
  gap: 8px; flex-wrap: wrap;
  font-size: 11px; color: var(--color-text-muted);
  margin-bottom: 10px;
  min-height: 16px;
}
.lc-meta-item { display: flex; align-items: center; gap: 3px; white-space: nowrap; }
.lc-meta-item i { font-size: 10px; flex-shrink: 0; }

/* Footer */
.lc-footer {
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 8px; margin-top: auto;
}
.lc-price-block {
  min-width: 0; flex-shrink: 1; overflow: hidden;
}
.lc-price {
  font-size: 17px; font-weight: 700;
  color: var(--color-text); line-height: 1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lc-price-sub {
  font-size: 10px; color: var(--color-text-muted); margin-top: 2px;
}
.lc-cta {
  background: #E24B4A; color: #fff;
  border-radius: 8px; font-size: 11.5px; font-weight: 600;
  padding: 7px 12px; white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s;
}
a.listing-card:hover .lc-cta { background: #c93c3b; }

/* Mobile */
@media (max-width: 480px) {
  .listings-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .lc-price { font-size: 14px; }
  .lc-cta { padding: 6px 10px; font-size: 11px; }
}



/* ============================================================
   TRUST GRID
   ============================================================ */
.av-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

@media (max-width: 940px) { .av-trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .av-trust-grid { grid-template-columns: 1fr; } }

.av-trust-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-lg);
  transition: transform 0.25s cubic-bezier(0.16,1,0.3,1), box-shadow 0.25s ease;
}

.av-trust-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.av-trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--color-bg);
  font-size: 18px;
  margin-bottom: 14px;
}

.av-trust-card h3 { font-size: 16px; margin-bottom: 8px; }
.av-trust-card p { font-size: 13.5px; color: var(--color-text-muted); line-height: 1.6; }

/* ============================================================
   CLOSING CTA
   ============================================================ */
.av-cta {
  position: relative;
  background: var(--color-primary);
  padding: var(--space-xl) 0;
  overflow: hidden;
}

.av-cta::before {
  content: "";
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(245,166,35,0.22), transparent 70%);
  pointer-events: none;
}

.av-cta-inner { position: relative; z-index: 1; text-align: center; }
.av-cta-inner h2 { color: #fff; margin-bottom: 10px; }

.av-cta-inner p {
  color: #C9CEE0;
  max-width: 480px;
  margin: 0 auto 28px;
  font-size: 15px;
}

.av-cta-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.av-cta-secondary { color: #fff; }
.av-cta-secondary:hover { color: var(--color-accent); }


/* ============================================================
   assets/css/pages/google-search.css  (v2 — icon-only, fixed overlap)
   ============================================================
   */

.av-gsearch {
  position: relative;
  width: 100%;
  max-width: 560px;
}

/* ---- The pill itself ---- */
.av-gsearch-form {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #FFFFFF;
  border-radius: 999px;
  height: 52px;
  padding: 0 6px 0 20px;
  box-shadow: 0 1px 6px rgba(32, 33, 36, 0.18);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.av-gsearch-form:hover {
  box-shadow: 0 2px 10px rgba(32, 33, 36, 0.22);
}

.av-gsearch:focus-within .av-gsearch-form {
  box-shadow: 0 4px 18px rgba(32, 33, 36, 0.28);
  transform: translateY(-1px);
}

/* ---- Leading search icon (decorative, static) ---- */
.av-gsearch-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  color: #9AA0A6;
}

.av-gsearch:focus-within .av-gsearch-icon {
  color: var(--color-primary);
}

/* ---- Input: the ONLY flexible-width element in the bar ---- */
.av-gsearch-input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 16px;
  color: #202124;
  padding: 0 8px;
}

.av-search-input:focus {
  outline: none;
}

.av-gsearch-input::placeholder {
  color: #9AA0A6;
}

/* ---- Clear (×) icon button -- fixed size, hidden until text exists ---- */
.av-gsearch-clear {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border: none;
  background: transparent;
  color: #70757A;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.8);
  transition: opacity 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.av-gsearch-clear.av-visible {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.av-gsearch-clear:hover {
  background: rgba(60, 64, 67, 0.08);
  color: #202124;
}

/* ---- Submit icon button -- fixed circular button, no text ---- */
.av-gsearch-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border: none;
  background: var(--color-accent);
  color: var(--color-primary-dark);
  border-radius: 50%;
  transition: background 0.15s ease, color 0.15s ease, transform 0.12s ease;
}

.av-gsearch-submit:hover {
  background: var(--color-accent-dark);
  color: #fff;
  transform: scale(1.05);
}

.av-gsearch-submit:active {
  transform: scale(0.96);
}

@media (max-width: 480px) {
  .av-gsearch-form { height: 48px; padding: 0 5px 0 16px; }
  .av-gsearch-submit { width: 36px; height: 36px; flex-basis: 36px; }
  .av-gsearch-clear { width: 28px; height: 28px; flex-basis: 28px; }
}

/* ============================================================
   AUTOCOMPLETE DROPDOWN
   Anchored to .av-gsearch (the outer wrapper), not the form,
   so its left/right edges always match the pill exactly and
   never shift due to the form's internal flex layout.
   ============================================================ */
.av-gsearch-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  list-style: none;
  margin: 0;
  padding: 6px 0;
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 4px 6px rgba(32,33,36,0.08), 0 8px 24px rgba(32,33,36,0.18);
  overflow: hidden;
  z-index: 60;

  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}

.av-gsearch-suggestions.av-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.av-gsearch-suggestion {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  cursor: pointer;
  transition: background 0.1s ease;
}

.av-gsearch-suggestion:hover,
.av-gsearch-suggestion.av-active {
  background: var(--color-bg);
}

.av-gsearch-suggestion-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: #9AA0A6;
}

.av-gsearch-suggestion-text {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 14.5px;
  color: #3C4043;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.av-gsearch-suggestion-text strong {
  font-weight: 700;
  color: #202124;
}

.av-gsearch-suggestion-meta {
  flex: 0 0 auto;
  font-size: 12px;
  color: var(--color-text-muted);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .av-gsearch-form, .av-gsearch-clear, .av-gsearch-submit, .av-gsearch-suggestions {
    transition: none;
  }
}

/* ============================================================
   Light variant — for use on white/light backgrounds instead
   of a dark hero (adds a visible border for contrast)
   ============================================================ */
.av-gsearch-light .av-gsearch-form {
  border: 1px solid var(--color-border);
  box-shadow: none;
}

.av-gsearch-light .av-gsearch-form:hover,
.av-gsearch-light:focus-within .av-gsearch-form {
  box-shadow: 0 2px 10px rgba(32,33,36,0.10);
}