/* PlantInfo Pro visual system */
:root {
  --pi-bg: #f5f7f1;
  --pi-ink: #14211a;
  --pi-muted: #637066;
  --pi-surface: rgba(255, 255, 255, 0.86);
  --pi-surface-solid: #ffffff;
  --pi-line: rgba(25, 75, 48, 0.14);
  --pi-primary: #1c8f55;
  --pi-primary-dark: #0f5f3b;
  --pi-mint: #90e6aa;
  --pi-lime: #d6ef71;
  --pi-clay: #d98252;
  --pi-plum: #6f5a9a;
  --pi-sky: #7fb9c7;
  --pi-shadow: 0 24px 70px rgba(31, 67, 45, 0.16);
  --pi-shadow-soft: 0 14px 38px rgba(31, 67, 45, 0.10);
  --pi-radius: 18px;
}

[data-theme="dark"] {
  --pi-bg: #0b1110;
  --pi-ink: #f1f8ef;
  --pi-muted: #afbeb2;
  --pi-surface: rgba(20, 28, 26, 0.84);
  --pi-surface-solid: #151d1a;
  --pi-line: rgba(207, 236, 214, 0.14);
  --pi-primary: #63d88d;
  --pi-primary-dark: #2aae65;
  --pi-mint: #7ddc9d;
  --pi-lime: #d8ec78;
  --pi-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  --pi-shadow-soft: 0 14px 38px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--pi-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(115deg, rgba(144, 230, 170, 0.18), transparent 34%),
    linear-gradient(245deg, rgba(127, 185, 199, 0.20), transparent 30%),
    var(--pi-bg);
  transition: background 0.3s ease, color 0.3s ease;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(25, 75, 48, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25, 75, 48, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

a { color: var(--pi-primary); }
.fw-black { font-weight: 900; }
.text-muted { color: var(--pi-muted) !important; }

.pi-navbar {
  background: rgba(14, 39, 26, 0.82) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
}

.navbar-brand { letter-spacing: 0; }
.brand-mark {
  width: 2.25rem;
  height: 2.25rem;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  color: #0d3520;
  background: linear-gradient(135deg, var(--pi-mint), var(--pi-lime));
  box-shadow: 0 12px 30px rgba(144, 230, 170, 0.28);
}

.navbar .nav-link {
  border-radius: 999px;
  padding-inline: 0.86rem !important;
  color: rgba(255, 255, 255, 0.86) !important;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.12);
}

.btn {
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn-success {
  color: #fff;
  border: 0;
  background: linear-gradient(135deg, var(--pi-primary), var(--pi-primary-dark));
  box-shadow: 0 14px 28px rgba(28, 143, 85, 0.22);
}
.btn-outline-success { color: var(--pi-primary); border-color: rgba(28, 143, 85, 0.35); }
.btn-outline-success:hover { border-color: var(--pi-primary); background: var(--pi-primary); }
.btn-dark { border: 0; background: #18251d; }

.hero-section {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 74px);
  display: flex;
  align-items: center;
  padding: 5.5rem 0 3.5rem;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #123420;
  background: rgba(214, 239, 113, 0.72);
  border: 1px solid rgba(28, 143, 85, 0.16);
  border-radius: 999px;
  padding: 0.5rem 0.8rem;
  font-size: 0.84rem;
  font-weight: 900;
}

[data-theme="dark"] .hero-kicker,
[data-theme="dark"] .section-kicker { color: #efffea; background: rgba(28, 143, 85, 0.24); }

.hero-title {
  max-width: 880px;
  font-size: clamp(3rem, 7vw, 6.9rem);
  line-height: 0.9;
  letter-spacing: 0;
  font-weight: 900;
}

.gradient-text {
  background: linear-gradient(135deg, var(--pi-primary), var(--pi-clay), var(--pi-plum));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy { max-width: 660px; font-size: 1.14rem; }

.hero-search-dock {
  width: min(640px, 100%);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem;
  border: 1px solid var(--pi-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--pi-shadow-soft);
  backdrop-filter: blur(18px);
}

[data-theme="dark"] .hero-search-dock {
  background: rgba(255, 255, 255, 0.07);
}

.hero-search-dock i {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--pi-primary);
}

.hero-search-dock input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--pi-ink);
  background: transparent;
  font-weight: 700;
}

.hero-stage {
  position: relative;
  min-height: 430px;
  border-radius: 28px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(8, 26, 18, 0.08), rgba(8, 26, 18, 0.18)),
    url("https://images.unsplash.com/photo-1463936575829-25148e1db1b8?auto=format&fit=crop&w=1200&q=80") center/cover;
  box-shadow: var(--pi-shadow);
  isolation: isolate;
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 28px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.18) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.18) 1px, transparent 1px);
  background-size: 58px 58px;
  opacity: 0.62;
  animation: gridDrift 9s ease-in-out infinite;
}

.hero-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 38%, rgba(8, 20, 14, 0.68));
  z-index: -1;
}

.scan-line {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--pi-lime), transparent);
  box-shadow: 0 0 34px rgba(214, 239, 113, 0.8);
  animation: scanPlant 4.5s ease-in-out infinite;
}

.plant-device {
  position: absolute;
  right: 1.1rem;
  bottom: 1.1rem;
  width: min(315px, calc(100% - 2.2rem));
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.84);
  color: #102019;
  padding: 1rem;
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.hero-floating-card {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #102019;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  padding: 0.62rem 0.82rem;
  font-weight: 900;
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.16);
  animation: floatCard 5.5s ease-in-out infinite;
}

.hero-floating-card i { color: var(--pi-primary); }
.hero-floating-card-top { left: 1rem; top: 1rem; }
.hero-floating-card-bottom { left: 1.2rem; bottom: 1.4rem; animation-delay: -2.1s; }

.device-meter {
  height: 0.55rem;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(16, 32, 25, 0.12);
}
.device-meter span {
  display: block;
  width: 76%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--pi-primary), var(--pi-lime));
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.85rem;
}

.stat-card,
.glass-card,
.card,
.info-box {
  color: var(--pi-ink);
  background: var(--pi-surface) !important;
  border: 1px solid var(--pi-line) !important;
  border-radius: var(--pi-radius) !important;
  box-shadow: var(--pi-shadow-soft);
  backdrop-filter: blur(18px);
}

.stat-card { padding: 1rem; }
.stat-card h4 { margin: 0; color: var(--pi-primary); font-size: 2rem; font-weight: 900; }
.stat-card p { margin: 0; color: var(--pi-muted); font-size: 0.9rem; }
.info-box { height: 100%; padding: 1rem; line-height: 1.6; }

.section-shell { padding: 4rem 0; }
.filter-panel .input-group-text { border-color: var(--pi-line); }

.home-command-section {
  margin-top: -2.5rem;
  position: relative;
  z-index: 2;
  padding-bottom: 3rem;
}

.command-panel {
  height: 100%;
  padding: 1.25rem;
  border: 1px solid var(--pi-line);
  border-radius: 24px;
  background: var(--pi-surface);
  box-shadow: var(--pi-shadow-soft);
  backdrop-filter: blur(18px);
}

.command-panel-primary {
  color: #f4fff6;
  background:
    linear-gradient(135deg, rgba(15, 95, 59, 0.94), rgba(28, 143, 85, 0.82)),
    var(--pi-primary);
}

.command-panel-primary .section-kicker {
  color: #123420;
  background: rgba(214, 239, 113, 0.9);
}

.cockpit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}

.cockpit-grid div {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.12);
}

.cockpit-grid strong {
  display: block;
  font-size: 1.85rem;
  line-height: 1;
  font-weight: 900;
}

.cockpit-grid span {
  display: block;
  margin-top: 0.3rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.84rem;
  font-weight: 800;
}

.home-category-row,
.quick-search-strip {
  display: flex;
  gap: 0.72rem;
  flex-wrap: wrap;
}

.home-category-pill,
.quick-search-chip {
  border: 1px solid var(--pi-line);
  color: var(--pi-ink);
  background: rgba(255, 255, 255, 0.62);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

[data-theme="dark"] .home-category-pill,
[data-theme="dark"] .quick-search-chip {
  background: rgba(255, 255, 255, 0.07);
}

.home-category-pill {
  min-height: 72px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.8rem;
  border-radius: 18px;
  padding: 0.8rem 0.95rem;
  text-align: left;
}

.home-category-pill span {
  max-width: 210px;
  font-weight: 900;
  line-height: 1.15;
}

.home-category-pill strong {
  width: 2.45rem;
  height: 2.45rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #0d3520;
  background: linear-gradient(135deg, var(--pi-mint), var(--pi-lime));
}

.home-category-pill:hover,
.home-category-pill.is-active,
.quick-search-chip:hover,
.quick-search-chip.is-active {
  transform: translateY(-2px);
  border-color: rgba(28, 143, 85, 0.38);
  background: rgba(144, 230, 170, 0.18);
  box-shadow: 0 12px 28px rgba(31, 67, 45, 0.10);
}

.quick-search-chip {
  border-radius: 999px;
  padding: 0.58rem 0.84rem;
  font-weight: 900;
}

.catalog-count {
  border: 1px solid var(--pi-line);
  border-radius: 999px;
  padding: 0.58rem 0.86rem;
  color: var(--pi-primary);
  background: rgba(255, 255, 255, 0.62);
  font-weight: 900;
}

.featured-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  grid-auto-rows: minmax(250px, auto);
  gap: 1rem;
}

.featured-tile {
  position: relative;
  min-height: 260px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-radius: 26px;
  color: #fff;
  text-decoration: none;
  box-shadow: var(--pi-shadow-soft);
  isolation: isolate;
}

.featured-tile-1 {
  grid-row: span 2;
}

.featured-tile img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.featured-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 24%, rgba(7, 19, 13, 0.78));
}

.featured-tile:hover img {
  transform: scale(1.06);
}

.featured-tile .badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
}

.featured-tile div {
  padding: 1.2rem;
}

.featured-tile p {
  margin: 0 0 0.3rem;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

.featured-tile h3 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 3rem);
  font-weight: 900;
}

.plant-card {
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.28s cubic-bezier(.2,.8,.2,1), box-shadow 0.28s ease, border-color 0.28s ease;
}

.plant-card:hover,
.similar-card:hover {
  transform: translateY(-8px);
  border-color: rgba(28, 143, 85, 0.35) !important;
  box-shadow: var(--pi-shadow);
}

.plant-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.55s ease;
}
.plant-card:hover .plant-image { transform: scale(1.06); }
.plant-card .card-body { min-height: 275px; }
.garden-img { width: 100%; min-height: 100%; object-fit: cover; }

.garden-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem;
  border: 1px solid var(--pi-line);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(144, 230, 170, 0.16), rgba(127, 185, 199, 0.12)),
    var(--pi-surface);
  box-shadow: var(--pi-shadow-soft);
  backdrop-filter: blur(18px);
}

.garden-score {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 220px;
  border: 1px solid var(--pi-line);
  border-radius: 20px;
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.58);
}

[data-theme="dark"] .garden-score { background: rgba(255, 255, 255, 0.07); }

.garden-score-ring {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, var(--pi-surface-solid) 0 56%, transparent 57%),
    conic-gradient(var(--pi-primary) var(--score), rgba(28, 143, 85, 0.14) 0);
  box-shadow: inset 0 0 0 1px var(--pi-line);
}

.garden-score-ring span {
  color: var(--pi-primary);
  font-size: 1.45rem;
  font-weight: 900;
}

.garden-score strong { font-weight: 900; }
.garden-score span { color: var(--pi-muted); font-size: 0.9rem; font-weight: 800; }

.garden-dashboard {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr)) minmax(220px, 1.2fr);
  gap: 0.85rem;
}

.garden-stat,
.garden-next {
  border: 1px solid var(--pi-line);
  border-radius: 20px;
  padding: 1rem;
  background: var(--pi-surface);
  box-shadow: var(--pi-shadow-soft);
  backdrop-filter: blur(18px);
}

.garden-stat {
  position: relative;
  overflow: hidden;
}

.garden-stat::after {
  content: "";
  position: absolute;
  width: 72px;
  height: 72px;
  right: -24px;
  bottom: -28px;
  border-radius: 50%;
  background: rgba(144, 230, 170, 0.22);
}

.garden-stat i {
  color: var(--pi-primary);
  font-size: 1.25rem;
}

.garden-stat strong {
  display: block;
  margin-top: 0.65rem;
  color: var(--pi-primary);
  font-size: 2rem;
  line-height: 1;
  font-weight: 900;
}

.garden-stat span,
.garden-next span {
  display: block;
  margin-top: 0.35rem;
  color: var(--pi-muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.garden-stat-due {
  border-color: rgba(217, 130, 82, 0.36) !important;
}

.garden-stat-due i,
.garden-stat-due strong { color: var(--pi-clay); }

.garden-next {
  background:
    linear-gradient(135deg, rgba(15, 95, 59, 0.92), rgba(28, 143, 85, 0.76)),
    var(--pi-primary);
  color: #f4fff6;
}

.garden-next .text-muted,
.garden-next span { color: rgba(255, 255, 255, 0.72) !important; }
.garden-next strong { display: block; margin-top: 0.25rem; font-size: 1.35rem; font-weight: 900; }

.garden-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto auto;
  gap: 0.85rem;
  align-items: center;
  border: 1px solid var(--pi-line);
  border-radius: 22px;
  padding: 0.8rem;
  background: var(--pi-surface);
  box-shadow: var(--pi-shadow-soft);
  backdrop-filter: blur(18px);
}

.garden-search {
  position: relative;
}

.garden-search i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--pi-muted);
  z-index: 1;
}

.garden-search .form-control {
  padding-left: 2.65rem;
}

.garden-filter-group {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.garden-filter {
  border: 1px solid var(--pi-line);
  border-radius: 999px;
  padding: 0.62rem 0.86rem;
  color: var(--pi-ink);
  background: rgba(255, 255, 255, 0.58);
  font-weight: 900;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

[data-theme="dark"] .garden-filter { background: rgba(255, 255, 255, 0.07); }

.garden-filter:hover,
.garden-filter.is-active {
  transform: translateY(-1px);
  color: #fff;
  border-color: var(--pi-primary);
  background: var(--pi-primary);
}

.garden-card {
  overflow: hidden;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.garden-card .row {
  min-height: 420px;
}

.garden-card:hover {
  transform: translateY(-5px);
  border-color: rgba(28, 143, 85, 0.32) !important;
  box-shadow: var(--pi-shadow);
}

.garden-card-due {
  border-color: rgba(217, 130, 82, 0.45) !important;
}

.garden-card-due::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--pi-clay), var(--pi-lime));
}

.garden-image-link {
  display: block;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(28, 143, 85, 0.16), rgba(127, 185, 199, 0.16));
}

.garden-card .garden-img {
  transition: transform 0.45s ease;
}

.garden-card:hover .garden-img {
  transform: scale(1.045);
}

.garden-status-badge {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--pi-line);
  background: rgba(255, 255, 255, 0.62);
  font-size: 0.76rem;
  font-weight: 900;
}

.garden-status-healthy,
.garden-status-watered {
  color: var(--pi-primary);
  background: rgba(28, 143, 85, 0.13);
}

.garden-status-needs-water {
  color: #226e85;
  background: rgba(127, 185, 199, 0.18);
}

.garden-status-needs-attention {
  color: #9b4b26;
  background: rgba(217, 130, 82, 0.18);
}

.garden-care-strip {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.garden-care-strip span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
  border: 1px solid var(--pi-line);
  border-radius: 999px;
  padding: 0.42rem 0.62rem;
  color: var(--pi-muted);
  background: rgba(255, 255, 255, 0.48);
  font-size: 0.78rem;
  font-weight: 800;
}

[data-theme="dark"] .garden-care-strip span {
  background: rgba(255, 255, 255, 0.06);
}

.garden-care-strip i {
  color: var(--pi-primary);
}

.garden-timeline {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: center;
  border: 1px solid var(--pi-line);
  border-radius: 16px;
  padding: 0.75rem;
  background: linear-gradient(135deg, rgba(144, 230, 170, 0.13), rgba(127, 185, 199, 0.10));
}

.garden-timeline strong {
  display: block;
  font-weight: 900;
}

.garden-timeline span {
  color: var(--pi-muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.timeline-dot {
  position: relative;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--pi-primary);
  box-shadow: 0 0 0 8px rgba(28, 143, 85, 0.12);
}

.timeline-dot.is-due {
  background: var(--pi-clay);
  box-shadow: 0 0 0 8px rgba(217, 130, 82, 0.16);
  animation: duePulse 1.6s ease-in-out infinite;
}

.garden-form .form-label {
  font-size: 0.82rem;
  font-weight: 900;
}

.favorites-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem;
  border: 1px solid var(--pi-line);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(111, 90, 154, 0.13), rgba(144, 230, 170, 0.16)),
    var(--pi-surface);
  box-shadow: var(--pi-shadow-soft);
  backdrop-filter: blur(18px);
}

.favorites-orbit {
  position: relative;
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--pi-line);
  background: rgba(255, 255, 255, 0.54);
}

[data-theme="dark"] .favorites-orbit { background: rgba(255, 255, 255, 0.07); }

.favorites-orbit span {
  position: absolute;
  inset: 14px;
  border: 1px dashed rgba(28, 143, 85, 0.42);
  border-radius: inherit;
  animation: spin 14s linear infinite;
}

.favorites-orbit i {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #0d3520;
  background: linear-gradient(135deg, var(--pi-mint), var(--pi-lime));
  font-size: 1.45rem;
  box-shadow: 0 18px 34px rgba(28, 143, 85, 0.18);
}

.favorites-dashboard {
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr)) minmax(240px, 1.4fr);
  gap: 0.85rem;
}

.favorite-stat,
.favorite-feature {
  border: 1px solid var(--pi-line);
  border-radius: 20px;
  padding: 1rem;
  background: var(--pi-surface);
  box-shadow: var(--pi-shadow-soft);
  backdrop-filter: blur(18px);
}

.favorite-stat i {
  color: var(--pi-plum);
  font-size: 1.25rem;
}

.favorite-stat strong {
  display: block;
  margin-top: 0.65rem;
  color: var(--pi-primary);
  font-size: 2rem;
  line-height: 1;
  font-weight: 900;
}

.favorite-stat span,
.favorite-feature span {
  display: block;
  margin-top: 0.35rem;
  color: var(--pi-muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.favorite-feature {
  color: #f4fff6;
  background:
    linear-gradient(135deg, rgba(111, 90, 154, 0.92), rgba(28, 143, 85, 0.72)),
    var(--pi-plum);
}

.favorite-feature .text-muted,
.favorite-feature span { color: rgba(255, 255, 255, 0.72) !important; }
.favorite-feature strong { display: block; margin-top: 0.25rem; font-size: 1.35rem; font-weight: 900; }

.favorite-spotlight {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(280px, 1.1fr);
  gap: 1.2rem;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--pi-line);
  border-radius: 28px;
  background: var(--pi-surface);
  box-shadow: var(--pi-shadow-soft);
  backdrop-filter: blur(18px);
}

.favorite-spotlight img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.favorite-spotlight > div {
  padding: 1.5rem;
  align-self: center;
}

.favorites-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto auto;
  gap: 0.85rem;
  align-items: center;
  border: 1px solid var(--pi-line);
  border-radius: 22px;
  padding: 0.8rem;
  background: var(--pi-surface);
  box-shadow: var(--pi-shadow-soft);
  backdrop-filter: blur(18px);
}

.favorites-search {
  position: relative;
}

.favorites-search i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--pi-muted);
  z-index: 1;
}

.favorites-search .form-control {
  padding-left: 2.65rem;
}

.favorites-filter-group,
.favorites-category-strip {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.favorites-filter,
.favorite-category-chip {
  border: 1px solid var(--pi-line);
  color: var(--pi-ink);
  background: rgba(255, 255, 255, 0.58);
  font-weight: 900;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

[data-theme="dark"] .favorites-filter,
[data-theme="dark"] .favorite-category-chip {
  background: rgba(255, 255, 255, 0.07);
}

.favorites-filter {
  border-radius: 999px;
  padding: 0.62rem 0.86rem;
}

.favorite-category-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border-radius: 999px;
  padding: 0.58rem 0.72rem 0.58rem 0.9rem;
}

.favorite-category-chip strong {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #0d3520;
  background: linear-gradient(135deg, var(--pi-mint), var(--pi-lime));
}

.favorites-filter:hover,
.favorites-filter.is-active,
.favorite-category-chip:hover,
.favorite-category-chip.is-active {
  transform: translateY(-1px);
  border-color: var(--pi-primary);
  background: rgba(144, 230, 170, 0.18);
  box-shadow: 0 12px 28px rgba(31, 67, 45, 0.10);
}

.favorites-filter.is-active {
  color: #fff;
  background: var(--pi-primary);
}

.favorite-card {
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.favorite-card:hover {
  transform: translateY(-7px);
  border-color: rgba(111, 90, 154, 0.28) !important;
  box-shadow: var(--pi-shadow);
}

.favorite-image-wrap {
  position: relative;
  height: 250px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(111, 90, 154, 0.12), rgba(144, 230, 170, 0.16));
}

.favorite-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.favorite-card:hover .favorite-image {
  transform: scale(1.06);
}

.favorite-image-wrap .badge {
  position: absolute;
  left: 1rem;
  top: 1rem;
}

.favorite-heart {
  position: absolute;
  right: 1rem;
  top: 1rem;
  width: 2.65rem;
  height: 2.65rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: rgba(111, 90, 154, 0.84);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
  animation: heartPulse 2.8s ease-in-out infinite;
}

.badge {
  border-radius: 999px;
  padding: 0.48rem 0.72rem;
  font-weight: 800;
}
.bg-success-subtle { background: rgba(28, 143, 85, 0.13) !important; }
.text-success-emphasis { color: var(--pi-primary) !important; }

.form-control,
.form-select {
  border-radius: 14px;
  border: 1px solid var(--pi-line);
  color: var(--pi-ink);
  background-color: rgba(255, 255, 255, 0.78);
  padding: 0.84rem 1rem;
}

[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
  color: var(--pi-ink);
  background-color: rgba(255, 255, 255, 0.07);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--pi-primary);
  box-shadow: 0 0 0 0.25rem rgba(28, 143, 85, 0.14);
}

.detail-hero-img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 26px;
  box-shadow: var(--pi-shadow);
}
.detail-action-box { position: sticky; top: 6rem; }
.care-tips-box { line-height: 1.75; }
.compact-info-alert { display: inline-block; max-width: 560px; padding: 0.75rem 1rem; }
.similar-img { height: 150px; object-fit: cover; }
.similar-card { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.auth-panel { max-width: 540px; margin-inline: auto; }

.profile-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.45rem;
  border: 1px solid var(--pi-line);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(144, 230, 170, 0.14), rgba(111, 90, 154, 0.10)),
    var(--pi-surface);
  box-shadow: var(--pi-shadow-soft);
  backdrop-filter: blur(18px);
}

.profile-health {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 230px;
  border: 1px solid var(--pi-line);
  border-radius: 20px;
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.58);
}

[data-theme="dark"] .profile-health { background: rgba(255, 255, 255, 0.07); }

.profile-health-ring {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, var(--pi-surface-solid) 0 56%, transparent 57%),
    conic-gradient(var(--pi-plum) var(--score), rgba(111, 90, 154, 0.16) 0);
  box-shadow: inset 0 0 0 1px var(--pi-line);
}

.profile-health-ring span {
  color: var(--pi-plum);
  font-size: 1.45rem;
  font-weight: 900;
}

.profile-health strong { font-weight: 900; }
.profile-health span { color: var(--pi-muted); font-size: 0.9rem; font-weight: 800; }

.profile-dashboard {
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr)) minmax(240px, 1.3fr);
  gap: 0.85rem;
}

.profile-stat,
.profile-security-card {
  border: 1px solid var(--pi-line);
  border-radius: 20px;
  padding: 1rem;
  background: var(--pi-surface);
  box-shadow: var(--pi-shadow-soft);
  backdrop-filter: blur(18px);
}

.profile-stat {
  color: var(--pi-ink);
  text-decoration: none;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.profile-stat:hover {
  transform: translateY(-3px);
  border-color: rgba(28, 143, 85, 0.32);
  box-shadow: var(--pi-shadow);
}

.profile-stat i {
  color: var(--pi-primary);
  font-size: 1.25rem;
}

.profile-stat strong {
  display: block;
  margin-top: 0.65rem;
  color: var(--pi-primary);
  font-size: 2rem;
  line-height: 1;
  font-weight: 900;
}

.profile-stat span,
.profile-security-card span {
  display: block;
  margin-top: 0.35rem;
  color: var(--pi-muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.profile-security-card {
  color: #f4fff6;
  background:
    linear-gradient(135deg, rgba(15, 95, 59, 0.92), rgba(111, 90, 154, 0.72)),
    var(--pi-primary);
}

.profile-security-card .text-muted,
.profile-security-card span { color: rgba(255, 255, 255, 0.72) !important; }
.profile-security-card strong { display: block; margin-top: 0.25rem; font-size: 1.35rem; font-weight: 900; }

.profile-card {
  overflow: hidden;
  position: relative;
}

.profile-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background: linear-gradient(90deg, var(--pi-primary), var(--pi-lime), var(--pi-sky));
}

.profile-avatar {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  color: #0d3520;
  background: linear-gradient(135deg, var(--pi-mint), var(--pi-lime));
  box-shadow: 0 18px 34px rgba(28, 143, 85, 0.18);
  font-size: 2rem;
  font-weight: 900;
}

.profile-avatar-xl {
  width: 86px;
  height: 86px;
  border-radius: 26px;
  font-size: 2.35rem;
}

.profile-meta-list {
  display: grid;
  gap: 0.7rem;
}

.profile-meta-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--pi-line);
  border-radius: 14px;
  padding: 0.72rem 0.82rem;
  background: rgba(255, 255, 255, 0.46);
}

[data-theme="dark"] .profile-meta-list div {
  background: rgba(255, 255, 255, 0.06);
}

.profile-meta-list span {
  color: var(--pi-muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.profile-meta-list strong {
  text-align: right;
  font-weight: 900;
}

.profile-actions {
  display: grid;
  gap: 0.75rem;
}

.profile-actions a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid var(--pi-line);
  border-radius: 18px;
  padding: 0.9rem;
  color: var(--pi-ink);
  text-decoration: none;
  background: var(--pi-surface);
  box-shadow: var(--pi-shadow-soft);
  backdrop-filter: blur(18px);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.profile-actions a:hover {
  transform: translateX(4px);
  border-color: rgba(28, 143, 85, 0.32);
  box-shadow: var(--pi-shadow);
}

.profile-actions i {
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #0d3520;
  background: linear-gradient(135deg, var(--pi-mint), var(--pi-lime));
}

.profile-actions span {
  font-weight: 900;
}

.profile-form-card {
  overflow: hidden;
  position: relative;
}

.profile-form-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--pi-primary), var(--pi-plum), var(--pi-sky));
}

.password-strength {
  height: 0.5rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(25, 75, 48, 0.12);
}

.password-strength span {
  display: block;
  width: var(--strength, 0%);
  height: 100%;
  border-radius: inherit;
  background: var(--pi-muted);
  transition: width 0.25s ease, background 0.25s ease;
}

.password-strength[data-level="weak"] span { background: var(--pi-clay); }
.password-strength[data-level="good"] span { background: var(--pi-sky); }
.password-strength[data-level="strong"] span { background: var(--pi-primary); }

.profile-feed {
  display: grid;
  gap: 0.75rem;
}

.profile-feed-item,
.profile-comment-item {
  border: 1px solid var(--pi-line);
  border-radius: 16px;
  color: var(--pi-ink);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.50);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

[data-theme="dark"] .profile-feed-item,
[data-theme="dark"] .profile-comment-item {
  background: rgba(255, 255, 255, 0.06);
}

.profile-feed-item {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 0.75rem;
  align-items: center;
  padding: 0.7rem;
}

.profile-feed-item img {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  object-fit: cover;
}

.profile-feed-item strong,
.profile-comment-item strong {
  display: block;
  font-weight: 900;
}

.profile-feed-item span,
.profile-comment-item span {
  display: block;
  color: var(--pi-muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.profile-comment-item {
  display: block;
  padding: 0.85rem;
}

.profile-comment-item p {
  margin: 0.45rem 0 0;
  color: var(--pi-muted);
}

.profile-feed-item:hover,
.profile-comment-item:hover {
  transform: translateY(-2px);
  border-color: rgba(28, 143, 85, 0.32);
  box-shadow: var(--pi-shadow-soft);
}

.care-profile {
  border: 1px solid var(--pi-line);
  border-radius: var(--pi-radius);
  padding: 1.2rem;
  background: linear-gradient(135deg, rgba(144, 230, 170, 0.16), rgba(127, 185, 199, 0.12));
}

.care-meter-list {
  display: grid;
  gap: 0.8rem;
}

.care-meter {
  position: relative;
  min-height: 58px;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid var(--pi-line);
  padding: 0.85rem;
}

[data-theme="dark"] .care-meter { background: rgba(255, 255, 255, 0.06); }

.care-meter div {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.care-meter i { color: var(--pi-primary); }
.care-meter span {
  position: absolute;
  inset: auto auto 0 0;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pi-primary), var(--pi-lime));
  animation: meterIn 0.9s ease both;
}

.admin-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  padding: 1.35rem;
  border: 1px solid var(--pi-line);
  border-radius: 24px;
  background: var(--pi-surface);
  box-shadow: var(--pi-shadow-soft);
  backdrop-filter: blur(18px);
}

.admin-hero-premium {
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(144, 230, 170, 0.14), rgba(127, 185, 199, 0.12)),
    var(--pi-surface);
}

.admin-health {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 260px;
  border: 1px solid var(--pi-line);
  border-radius: 20px;
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.58);
}

[data-theme="dark"] .admin-health { background: rgba(255, 255, 255, 0.07); }

.admin-health-ring {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, var(--pi-surface-solid) 0 56%, transparent 57%),
    conic-gradient(var(--pi-primary) var(--score), rgba(28, 143, 85, 0.14) 0);
  box-shadow: inset 0 0 0 1px var(--pi-line);
}

.admin-health-ring span {
  color: var(--pi-primary);
  font-size: 1.45rem;
  font-weight: 900;
}

.admin-health strong { font-weight: 900; }
.admin-health span { color: var(--pi-muted); font-size: 0.9rem; font-weight: 800; }

.admin-action-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
}

.admin-action-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  border: 1px solid var(--pi-line);
  border-radius: 20px;
  padding: 1rem;
  color: var(--pi-ink);
  text-decoration: none;
  background: var(--pi-surface);
  box-shadow: var(--pi-shadow-soft);
  backdrop-filter: blur(18px);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.admin-action-card:hover {
  transform: translateY(-4px);
  border-color: rgba(28, 143, 85, 0.32);
  box-shadow: var(--pi-shadow);
}

.admin-action-card i {
  width: 2.7rem;
  height: 2.7rem;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #0d3520;
  background: linear-gradient(135deg, var(--pi-mint), var(--pi-lime));
}

.admin-action-card strong,
.admin-action-card span {
  display: block;
}

.admin-action-card strong {
  font-weight: 900;
}

.admin-action-card span {
  color: var(--pi-muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.admin-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr)) minmax(220px, 1.2fr);
  gap: 0.85rem;
}

.admin-kpi,
.admin-system-card {
  border: 1px solid var(--pi-line);
  border-radius: 20px;
  padding: 1rem;
  background: var(--pi-surface);
  box-shadow: var(--pi-shadow-soft);
  backdrop-filter: blur(18px);
}

.admin-kpi {
  position: relative;
  overflow: hidden;
}

.admin-kpi::after {
  content: "";
  position: absolute;
  width: 74px;
  height: 74px;
  right: -26px;
  bottom: -30px;
  border-radius: 50%;
  background: rgba(144, 230, 170, 0.22);
}

.admin-kpi i {
  color: var(--pi-primary);
  font-size: 1.25rem;
}

.admin-kpi strong {
  display: block;
  margin-top: 0.65rem;
  color: var(--pi-primary);
  font-size: 2rem;
  line-height: 1;
  font-weight: 900;
}

.admin-kpi span,
.admin-system-card span {
  display: block;
  margin-top: 0.35rem;
  color: var(--pi-muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.admin-system-card {
  color: #f4fff6;
  background:
    linear-gradient(135deg, rgba(15, 95, 59, 0.92), rgba(111, 90, 154, 0.72)),
    var(--pi-primary);
}

.admin-system-card .text-muted,
.admin-system-card span { color: rgba(255, 255, 255, 0.72) !important; }
.admin-system-card strong { display: block; margin-top: 0.25rem; font-size: 1.8rem; font-weight: 900; }

.admin-bar-list,
.admin-top-list {
  display: grid;
  gap: 0.85rem;
}

.admin-bar-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) 1fr;
  gap: 1rem;
  align-items: center;
  border: 1px solid var(--pi-line);
  border-radius: 16px;
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.48);
}

[data-theme="dark"] .admin-bar-row { background: rgba(255, 255, 255, 0.06); }

.admin-bar-row strong,
.admin-bar-row span {
  display: block;
}

.admin-bar-row strong { font-weight: 900; }
.admin-bar-row span { color: var(--pi-muted); font-size: 0.84rem; font-weight: 800; }

.admin-bar {
  height: 0.7rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(25, 75, 48, 0.10);
}

.admin-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--pi-primary), var(--pi-lime));
  animation: meterIn 0.9s ease both;
}

.admin-top-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--pi-line);
  border-radius: 16px;
  padding: 0.85rem;
  color: var(--pi-ink);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.48);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

[data-theme="dark"] .admin-top-list a { background: rgba(255, 255, 255, 0.06); }

.admin-top-list a:hover {
  transform: translateX(4px);
  border-color: rgba(28, 143, 85, 0.32);
}

.admin-top-list span { font-weight: 900; }
.admin-top-list strong {
  width: 2.1rem;
  height: 2.1rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #0d3520;
  background: linear-gradient(135deg, var(--pi-mint), var(--pi-lime));
}

.admin-search {
  position: relative;
  width: min(320px, 100%);
}

.admin-search i {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--pi-muted);
  z-index: 1;
}

.admin-search .form-control { padding-left: 2.45rem; }

.admin-table {
  color: var(--pi-ink);
  --bs-table-bg: transparent;
  --bs-table-color: var(--pi-ink);
  --bs-table-hover-bg: rgba(28, 143, 85, 0.07);
  border-color: var(--pi-line);
}

.admin-thumb {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(31, 67, 45, 0.12);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.85rem;
}

.category-chip,
.admin-user-row,
.admin-feed-item {
  border: 1px solid var(--pi-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.52);
}

[data-theme="dark"] .category-chip,
[data-theme="dark"] .admin-user-row,
[data-theme="dark"] .admin-feed-item { background: rgba(255, 255, 255, 0.06); }

.category-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem;
}

.category-chip span {
  display: block;
  color: var(--pi-muted);
  font-size: 0.86rem;
}

.admin-feed-item {
  padding: 0.9rem;
  margin-bottom: 0.75rem;
}

.admin-user-list {
  display: grid;
  gap: 0.75rem;
}

.admin-user-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem;
}

.editor-preview {
  position: sticky;
  top: 6rem;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 0.82fr);
  gap: 1.2rem;
  align-items: stretch;
}

.auth-shell-register {
  grid-template-columns: minmax(300px, 0.9fr) minmax(340px, 1fr);
}

.auth-showcase {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border: 1px solid var(--pi-line);
  border-radius: 30px;
  padding: clamp(1.3rem, 4vw, 2rem);
  color: #f4fff6;
  background:
    linear-gradient(135deg, rgba(8, 32, 20, 0.62), rgba(8, 32, 20, 0.18)),
    url("https://images.unsplash.com/photo-1485955900006-10f4d324d411?auto=format&fit=crop&w=1200&q=80") center/cover;
  box-shadow: var(--pi-shadow);
  isolation: isolate;
}

.auth-showcase::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 30%, rgba(7, 19, 13, 0.78));
}

.auth-showcase h1 {
  max-width: 640px;
  font-size: clamp(2.4rem, 5vw, 4.9rem);
  line-height: 0.95;
}

.auth-showcase p {
  max-width: 540px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
  font-weight: 700;
}

.auth-orbit {
  position: absolute;
  right: 2rem;
  bottom: 7.2rem;
  width: 150px;
  height: 150px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
}

.auth-orbit span {
  position: absolute;
  inset: 20px;
  border: 1px dashed rgba(255, 255, 255, 0.62);
  border-radius: inherit;
  animation: spin 16s linear infinite;
}

.auth-orbit i {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  color: #0d3520;
  background: linear-gradient(135deg, var(--pi-mint), var(--pi-lime));
  font-size: 2rem;
}

.auth-benefits {
  position: absolute;
  left: 1.3rem;
  right: 1.3rem;
  bottom: 1.3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.auth-benefits div {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
}

.auth-benefits i {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--pi-lime);
  font-size: 1.25rem;
}

.auth-benefits span {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 900;
  font-size: 0.86rem;
}

.auth-panel-premium {
  align-self: center;
  width: 100%;
  max-width: none;
  overflow: hidden;
  position: relative;
}

.auth-panel-premium::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(90deg, var(--pi-primary), var(--pi-lime), var(--pi-sky));
}

.auth-demo-box {
  display: grid;
  gap: 0.35rem;
  border: 1px solid var(--pi-line);
  border-radius: 18px;
  padding: 0.9rem;
  background: rgba(144, 230, 170, 0.12);
}

.auth-demo-box strong {
  font-weight: 900;
}

.auth-demo-box span {
  color: var(--pi-muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.auth-live-note {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  border: 1px solid var(--pi-line);
  border-radius: 18px;
  padding: 0.9rem;
  color: var(--pi-muted);
  background: rgba(144, 230, 170, 0.12);
  font-size: 0.9rem;
  font-weight: 800;
}

.auth-live-note i {
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 13px;
  color: #0d3520;
  background: linear-gradient(135deg, var(--pi-mint), var(--pi-lime));
}

.achievement-hero,
.compare-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem;
  border: 1px solid var(--pi-line);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(144, 230, 170, 0.15), rgba(127, 185, 199, 0.13)),
    var(--pi-surface);
  box-shadow: var(--pi-shadow-soft);
  backdrop-filter: blur(18px);
}

.achievement-completion {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 270px;
  border: 1px solid var(--pi-line);
  border-radius: 20px;
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.58);
}

[data-theme="dark"] .achievement-completion { background: rgba(255, 255, 255, 0.07); }

.achievement-ring {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, var(--pi-surface-solid) 0 56%, transparent 57%),
    conic-gradient(var(--pi-primary) var(--score), rgba(28, 143, 85, 0.14) 0);
  box-shadow: inset 0 0 0 1px var(--pi-line);
}

.achievement-ring span {
  color: var(--pi-primary);
  font-size: 1.35rem;
  font-weight: 900;
}

.achievement-completion strong,
.achievement-completion span {
  display: block;
}

.achievement-completion strong { font-weight: 900; }
.achievement-completion span { color: var(--pi-muted); font-size: 0.9rem; font-weight: 800; }

.achievement-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 0.85rem;
}

.achievement-stats div,
.achievement-card,
.achievement-focus,
.compare-selector,
.compare-meter-card {
  border: 1px solid var(--pi-line);
  background: var(--pi-surface);
  box-shadow: var(--pi-shadow-soft);
  backdrop-filter: blur(18px);
}

.achievement-stats div {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 1rem;
}

.achievement-stats div::after {
  content: "";
  position: absolute;
  width: 74px;
  height: 74px;
  right: -26px;
  bottom: -30px;
  border-radius: 50%;
  background: rgba(144, 230, 170, 0.22);
}

.achievement-stats i {
  color: var(--pi-primary);
  font-size: 1.25rem;
}

.achievement-stats strong {
  display: block;
  margin-top: 0.65rem;
  color: var(--pi-primary);
  font-size: 2rem;
  line-height: 1;
  font-weight: 900;
}

.achievement-stats span {
  display: block;
  margin-top: 0.35rem;
  color: var(--pi-muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.achievement-focus {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-radius: 24px;
  padding: 1rem;
}

.achievement-focus-icon,
.achievement-badge {
  display: grid;
  place-items: center;
  color: #0d3520;
  background: linear-gradient(135deg, var(--pi-mint), var(--pi-lime));
  box-shadow: 0 14px 30px rgba(28, 143, 85, 0.16);
}

.achievement-focus-icon {
  width: 4.4rem;
  height: 4.4rem;
  flex: 0 0 auto;
  border-radius: 22px;
  font-size: 2rem;
}

.achievement-focus > strong {
  color: var(--pi-primary);
  font-size: 1.25rem;
}

.achievement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.achievement-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: 1rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.achievement-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--pi-primary), var(--pi-lime), var(--pi-sky));
}

.achievement-card:hover {
  transform: translateY(-5px);
  border-color: rgba(28, 143, 85, 0.34);
  box-shadow: var(--pi-shadow);
}

.achievement-card.is-locked {
  filter: saturate(0.55);
}

.achievement-card.is-locked .achievement-badge {
  color: var(--pi-muted);
  background: rgba(25, 75, 48, 0.10);
  box-shadow: none;
}

.achievement-card-top,
.achievement-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.achievement-badge {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 18px;
  font-size: 1.45rem;
}

.achievement-card-top span,
.achievement-card-foot span {
  border: 1px solid var(--pi-line);
  border-radius: 999px;
  padding: 0.35rem 0.58rem;
  color: var(--pi-muted);
  background: rgba(255, 255, 255, 0.48);
  font-size: 0.76rem;
  font-weight: 900;
}

[data-theme="dark"] .achievement-card-top span,
[data-theme="dark"] .achievement-card-foot span { background: rgba(255, 255, 255, 0.07); }

.achievement-card h3 {
  margin: 1rem 0 0.35rem;
  font-size: 1.25rem;
  font-weight: 900;
}

.achievement-card p {
  min-height: 48px;
  color: var(--pi-muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.achievement-progress {
  height: 0.62rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(25, 75, 48, 0.10);
}

.achievement-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--pi-primary), var(--pi-lime));
  animation: meterIn 0.8s ease both;
}

.achievement-card-foot {
  margin-top: 0.85rem;
}

.achievement-card-foot strong {
  color: var(--pi-primary);
  font-weight: 900;
}

.compare-selector {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr) auto;
  gap: 0.9rem;
  align-items: start;
  border-radius: 24px;
  padding: 1rem;
}

.compare-search-field {
  position: relative;
}

.compare-search-box {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  border: 1px solid var(--pi-line);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 28px rgba(31, 67, 45, 0.08);
}

[data-theme="dark"] .compare-search-box {
  background: rgba(255, 255, 255, 0.07);
}

.compare-search-box i {
  width: 3.65rem;
  height: 3.65rem;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--pi-primary);
  font-size: 1.2rem;
}

.compare-search-box .form-control {
  min-height: 3.65rem;
  border: 0;
  color: var(--pi-ink);
  background: transparent;
  font-weight: 800;
  box-shadow: none;
}

.compare-search-results {
  display: none;
  max-height: 330px;
  overflow: auto;
  margin-top: 0.75rem;
  border: 1px solid var(--pi-line);
  border-radius: 20px;
  padding: 0.65rem;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: var(--pi-shadow-soft);
  backdrop-filter: blur(18px);
}

.compare-search-field.has-query .compare-search-results {
  display: grid;
  gap: 0.55rem;
}

.compare-search-results::after {
  content: "No matching plants";
  display: none;
  padding: 0.75rem;
  color: var(--pi-muted);
  font-weight: 800;
  text-align: center;
}

.compare-search-results.is-empty::after {
  display: block;
}

.compare-search-results button {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem 0.8rem;
  align-items: center;
  width: 100%;
  border: 1px solid var(--pi-line);
  border-radius: 16px;
  padding: 0.82rem 0.9rem;
  color: var(--pi-ink);
  background: rgba(255, 255, 255, 0.58);
  text-align: left;
  box-shadow: 0 8px 18px rgba(31, 67, 45, 0.06);
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

[data-theme="dark"] .compare-search-results,
[data-theme="dark"] .compare-search-results button {
  background: rgba(255, 255, 255, 0.07);
}

.compare-search-results button:hover,
.compare-search-results button.is-selected {
  transform: translateY(-1px);
  border-color: rgba(28, 143, 85, 0.35);
  background: rgba(144, 230, 170, 0.18);
  box-shadow: 0 12px 26px rgba(31, 67, 45, 0.10);
}

.compare-search-results button span {
  min-width: 0;
  font-weight: 900;
}

.compare-search-results button small {
  min-width: 0;
  color: var(--pi-muted);
  font-weight: 800;
  text-align: right;
}

.compare-vs {
  width: 3.4rem;
  height: 3.4rem;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #0d3520;
  background: linear-gradient(135deg, var(--pi-mint), var(--pi-lime));
  font-weight: 900;
}

.compare-showcase {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.compare-plant-card {
  position: relative;
  min-height: 390px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-radius: 28px;
  color: #fff;
  box-shadow: var(--pi-shadow);
  isolation: isolate;
}

.compare-plant-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.compare-plant-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 20%, rgba(7, 19, 13, 0.82));
}

.compare-plant-card:hover img { transform: scale(1.055); }

.compare-plant-card div {
  width: 100%;
  padding: 1.2rem;
}

.compare-plant-card h2 {
  margin: 0.7rem 0 0.35rem;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 900;
}

.compare-plant-card p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

.compare-meters {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 0.85rem;
}

.compare-meter-card {
  border-radius: 20px;
  padding: 1rem;
}

.compare-meter-card > strong {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
  font-weight: 900;
}

.compare-meter-card > strong i { color: var(--pi-primary); }

.compare-dual-meter {
  display: grid;
  grid-template-columns: minmax(88px, 0.6fr) 1fr;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.65rem;
}

.compare-dual-meter span {
  color: var(--pi-muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.compare-dual-meter div {
  height: 0.56rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(25, 75, 48, 0.10);
}

.compare-dual-meter em {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--pi-primary), var(--pi-lime));
  animation: meterIn 0.8s ease both;
}

.compare-table-card {
  overflow: hidden;
}

.compare-table {
  color: var(--pi-ink);
  --bs-table-bg: transparent;
  --bs-table-color: var(--pi-ink);
  --bs-table-hover-bg: rgba(28, 143, 85, 0.07);
  border-color: var(--pi-line);
}

.compare-table th {
  font-weight: 900;
}

.compare-table thead th {
  color: #f4fff6;
  background: rgba(15, 95, 59, 0.92);
  border-color: rgba(255, 255, 255, 0.14);
}

.compare-table tbody th {
  min-width: 190px;
  color: var(--pi-primary);
}

.empty-state {
  padding: 2rem;
  text-align: center;
  border-radius: var(--pi-radius);
  border: 1px dashed rgba(28, 143, 85, 0.28);
  background: rgba(255, 255, 255, 0.52);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.pi-toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1080;
  min-width: min(360px, calc(100vw - 2rem));
  color: var(--pi-ink);
  background: var(--pi-surface-solid);
  border: 1px solid var(--pi-line);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  box-shadow: var(--pi-shadow);
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.pi-toast.show { opacity: 1; transform: translateY(0); }

@keyframes scanPlant {
  0%, 100% { transform: translateY(0); opacity: 0.55; }
  50% { transform: translateY(220px); opacity: 1; }
}

@keyframes meterIn {
  from { transform: scaleX(0); transform-origin: left; }
  to { transform: scaleX(1); transform-origin: left; }
}

@keyframes gridDrift {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(10px, -8px, 0); }
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes duePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.14); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes heartPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 991px) {
  .hero-section { min-height: auto; padding: 4rem 0 2rem; }
  .hero-stage { min-height: 360px; }
  .detail-action-box { position: static; }
  .editor-preview { position: static; }
  .admin-hero { align-items: stretch; flex-direction: column; }
  .achievement-hero,
  .compare-hero { align-items: stretch; flex-direction: column; }
  .achievement-completion { min-width: 0; }
  .achievement-stats { grid-template-columns: repeat(2, 1fr); }
  .compare-selector { grid-template-columns: 1fr; }
  .compare-vs { margin: 0 auto; }
  .compare-showcase { grid-template-columns: 1fr; }
  .compare-meters { grid-template-columns: 1fr; }
  .admin-health { min-width: 0; }
  .admin-action-bar { grid-template-columns: 1fr; }
  .admin-dashboard-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-system-card { grid-column: 1 / -1; }
  .admin-bar-row { grid-template-columns: 1fr; }
  .auth-shell,
  .auth-shell-register { grid-template-columns: 1fr; }
  .auth-showcase { min-height: 460px; }
  .profile-hero { align-items: stretch; flex-direction: column; }
  .profile-dashboard { grid-template-columns: repeat(2, 1fr); }
  .profile-security-card { grid-column: 1 / -1; }
  .garden-hero { align-items: stretch; flex-direction: column; }
  .garden-dashboard { grid-template-columns: repeat(2, 1fr); }
  .garden-next { grid-column: 1 / -1; }
  .garden-toolbar { grid-template-columns: 1fr; }
  .favorites-hero { align-items: stretch; flex-direction: column; }
  .favorites-dashboard { grid-template-columns: repeat(2, 1fr); }
  .favorite-feature { grid-column: 1 / -1; }
  .favorite-spotlight { grid-template-columns: 1fr; }
  .favorites-toolbar { grid-template-columns: 1fr; }
  .home-command-section { margin-top: 0; padding-top: 1rem; }
  .featured-grid { grid-template-columns: 1fr; }
  .featured-tile-1 { grid-row: span 1; }
}

@media (max-width: 767px) {
  .hero-title { font-size: clamp(2.55rem, 15vw, 4.2rem); }
  .plant-image { height: 215px; }
  .plant-card .card-body { min-height: auto; }
  .hero-stage { min-height: 430px; }
  .category-chip,
  .admin-user-row { align-items: flex-start; flex-direction: column; }
  .garden-card .row { min-height: auto; }
  .garden-image-link { min-height: 220px; }
  .garden-dashboard { grid-template-columns: 1fr; }
  .garden-score { min-width: 0; }
  .profile-dashboard { grid-template-columns: 1fr; }
  .profile-health { min-width: 0; }
  .achievement-stats { grid-template-columns: 1fr; }
  .achievement-focus { align-items: flex-start; flex-direction: column; }
  .achievement-focus > strong { align-self: flex-end; }
  .compare-plant-card { min-height: 330px; }
  .favorites-dashboard { grid-template-columns: 1fr; }
  .favorite-image-wrap { height: 220px; }
  .hero-search-dock { grid-template-columns: auto 1fr; border-radius: 22px; }
  .hero-search-dock .btn { grid-column: 1 / -1; width: 100%; }
  .hero-floating-card { display: none; }
  .cockpit-grid { grid-template-columns: 1fr; }
  .home-category-pill { width: 100%; }
  .admin-dashboard-grid { grid-template-columns: 1fr; }
  .auth-benefits { grid-template-columns: 1fr; }
  .auth-showcase { min-height: 620px; }
  .auth-orbit { right: 1rem; bottom: 12.5rem; }
}
