:root {
  --ink: #171717;
  --muted: #64615d;
  --line: #dedbd4;
  --paper: #faf8f2;
  --surface: #ffffff;
  --mint: #d8f1df;
  --coral: #ffb59f;
  --sky: #c7e7ff;
  --gold: #f4d35e;
  --input-bg: #ffffff;
  --shadow: rgba(23, 23, 23, 0.08);
}

:root[data-theme="dark"] {
  --ink: #f4f1ea;
  --muted: #b9b2a8;
  --line: #3a362f;
  --paper: #10100f;
  --surface: #1b1a18;
  --mint: #214b2d;
  --coral: #7d3d31;
  --sky: #203f55;
  --gold: #e1bd43;
  --input-bg: #24221f;
  --shadow: rgba(0, 0, 0, 0.35);
}

html {
  font-size: 16px;
  min-height: 100%;
  position: relative;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin-bottom: 72px;
}

body,
.app-nav,
.app-card,
.plain-page,
.recco-card,
.product-detail,
.profile-header,
.form-control,
.form-select,
.btn,
a {
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

a {
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.app-nav {
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.navbar-brand {
  font-size: 1.35rem;
  font-weight: 900;
}

.navbar-toggler {
  border-color: var(--line);
}

.navbar-toggler-icon {
  filter: var(--nav-icon-filter, none);
}

:root[data-theme="dark"] {
  --nav-icon-filter: invert(1);
}

.nav-link {
  color: var(--ink);
  font-weight: 750;
}

.nav-button {
  background: transparent;
  border: 0;
  padding: var(--bs-nav-link-padding-y) var(--bs-nav-link-padding-x);
}

.app-shell {
  padding-top: 24px;
}

.btn,
.form-control,
.form-select {
  border-radius: 8px;
}

.btn {
  font-weight: 800;
}

.btn-dark {
  background: var(--ink);
  border-color: var(--ink);
}

.form-control:focus,
.btn:focus {
  box-shadow: 0 0 0 0.18rem rgba(244, 211, 94, 0.45);
}

.form-control,
.form-select {
  background: var(--input-bg);
  border-color: var(--line);
  color: var(--ink);
}

.form-control::placeholder {
  color: var(--muted);
}

.form-control:focus,
.form-select:focus {
  background: var(--input-bg);
  border-color: var(--gold);
  color: var(--ink);
}

.hero-panel {
  align-items: stretch;
  background:
    linear-gradient(120deg, rgba(216, 241, 223, 0.94), rgba(199, 231, 255, 0.9)),
    url("https://images.unsplash.com/photo-1522335789203-aabd1fc54bc9?auto=format&fit=crop&w=1800&q=80");
  background-position: center;
  background-size: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) 320px;
  min-height: 430px;
  overflow: hidden;
  padding: 44px;
}

.hero-copy {
  align-self: end;
  max-width: 820px;
}

.eyebrow {
  color: #5f4b00;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.hero-panel h1,
.section-heading h1,
.auth-copy h1 {
  font-size: clamp(2.15rem, 6vw, 5rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.98;
  margin: 0 0 18px;
}

.hero-text,
.muted,
.auth-copy p {
  color: var(--muted);
}

.hero-text {
  font-size: 1.12rem;
  max-width: 640px;
}

.hero-actions,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-snapshot {
  align-self: end;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border: 1px solid rgba(23, 23, 23, 0.12);
  border-radius: 8px;
  display: grid;
  gap: 16px;
  padding: 20px;
}

.snapshot-number {
  display: block;
  font-size: 2.3rem;
  font-weight: 900;
  line-height: 1;
}

.snapshot-label {
  color: var(--muted);
  display: block;
  font-weight: 700;
  margin-top: 5px;
}

.section-heading {
  align-items: end;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-heading h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.app-card,
.plain-page {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}

.plain-page {
  max-width: 760px;
}

.auth-grid {
  display: grid;
  gap: 26px;
  grid-template-columns: minmax(0, 1fr) 440px;
}

.auth-copy {
  align-self: center;
}

.form-stack {
  display: grid;
  gap: 16px;
}

.notice {
  background: var(--mint);
  border: 1px solid #aed8b8;
  border-radius: 8px;
  color: #17381f;
  font-weight: 750;
  padding: 12px;
}

.notice.danger-zone {
  background: rgba(255, 87, 87, 0.12);
  border-color: rgba(255, 124, 124, 0.34);
  color: var(--ink);
}

.legal-page .app-card {
  min-height: 100%;
}

.feed-list {
  display: grid;
  gap: 16px;
}

.recco-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  overflow: hidden;
}

.recco-image-link img,
.recco-card > a img {
  height: 100%;
  min-height: 250px;
  object-fit: cover;
  width: 100%;
}

.recco-card-body {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.recco-card h3,
.app-card h2,
.weekly-card h3,
.compact-recco h3 {
  font-size: 1.25rem;
  font-weight: 900;
  margin: 0;
}

.recco-card p {
  margin: 0;
}

.recco-meta,
.recco-footer {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-weight: 750;
  justify-content: space-between;
}

.recco-meta strong,
.status-chip {
  background: var(--mint);
  border-radius: 999px;
  color: #17381f;
  padding: 5px 10px;
}

.comment-form {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.comments-preview {
  background: color-mix(in srgb, var(--paper) 70%, var(--surface));
  border-radius: 8px;
  display: grid;
  gap: 6px;
  padding: 10px;
}

.comments-preview p {
  color: var(--muted);
  font-size: 0.92rem;
}

.quick-feedback {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feedback-chip {
  background: color-mix(in srgb, var(--paper) 68%, var(--surface));
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 800;
  padding: 6px 10px;
}

.feedback-chip.active,
.feedback-chip:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #171717;
}

.link-preview-box {
  background: color-mix(in srgb, var(--sky) 22%, var(--surface));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.link-preview-status {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 750;
  min-height: 1.4rem;
}

.ai-assist-box {
  align-items: center;
  background: color-mix(in srgb, var(--gold) 18%, var(--surface));
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 12px;
}

.interest-panel,
.prompt-panel {
  background: color-mix(in srgb, var(--paper) 58%, var(--surface));
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 14px;
}

.interest-panel h2,
.prompt-panel h2,
.mini-heading h2 {
  font-size: 1.08rem;
  font-weight: 900;
  margin: 0;
}

.choice-grid,
.mini-choice-grid,
.prompt-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.choice-pill,
.mini-choice-grid label,
.prompt-grid label {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  gap: 6px;
  font-weight: 800;
  padding: 7px 10px;
}

.mini-choice-grid {
  max-width: 520px;
}

.mini-choice-grid label {
  font-size: 0.78rem;
  padding: 5px 8px;
}

.prompt-grid fieldset {
  border: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.prompt-grid legend {
  color: var(--muted);
  float: none;
  font-size: 0.92rem;
  font-weight: 850;
  margin-bottom: 4px;
  width: 100%;
}

.prompt-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.prompt-summary span {
  background: var(--sky);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 800;
  padding: 5px 9px;
}

.home-trends,
.home-tabs-shell {
  display: grid;
  gap: 16px;
  margin-bottom: 22px;
}

.home-trends {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-tab-input {
  height: 1px;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  width: 1px;
}

.home-tabs {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 5px;
}

.home-tabs label {
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  font-weight: 900;
  padding: 11px 14px;
  text-align: center;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.home-tabs label:hover {
  color: var(--ink);
}

.home-tab-panel {
  display: none;
  gap: 16px;
}

#home-tab-friends:checked ~ .home-tabs label[for="home-tab-friends"],
#home-tab-trending:checked ~ .home-tabs label[for="home-tab-trending"] {
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-1px);
}

#home-tab-friends:checked ~ .friends-panel,
#home-tab-trending:checked ~ .trending-panel {
  display: grid;
}

.trend-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 16px;
}

.trend-strip {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.trend-tile {
  display: grid;
  gap: 6px;
}

.trend-tile img {
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  object-fit: cover;
  width: 100%;
}

.trend-tile span {
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1.15;
}

.trend-tile small {
  color: var(--muted);
  font-weight: 750;
  line-height: 1.2;
}

.trend-rating-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.trend-rating-row small {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 7px;
}

.follow-category-form {
  display: grid;
  gap: 8px;
}

.follow-actions {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.search-bar {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 20px;
}

.stack-section {
  display: grid;
  gap: 14px;
}

.social-row {
  align-items: center;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  padding-top: 14px;
}

.social-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.avatar-img,
.profile-header img {
  background: var(--sky);
  border-radius: 50%;
  height: 52px;
  object-fit: cover;
  width: 52px;
}

.social-row h3,
.social-row p {
  margin: 0;
}

.product-detail,
.profile-header {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 24px;
  grid-template-columns: 300px minmax(0, 1fr);
  padding: 22px;
}

.product-detail > img {
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  object-fit: cover;
  width: 100%;
}

.profile-header img {
  height: 120px;
  width: 120px;
}

.taste-match {
  align-items: center;
  background: var(--mint);
  border: 1px solid color-mix(in srgb, var(--mint) 60%, var(--line));
  border-radius: 8px;
  color: var(--ink);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
  padding: 10px 12px;
}

.taste-match strong {
  font-size: 1.05rem;
}

.shelf-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-vibe-panel {
  display: grid;
  gap: 14px;
}

.profile-vibe-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.vibe-card {
  align-content: start;
  display: grid;
  gap: 12px;
  min-height: 100%;
}

.vibe-card h3 {
  font-size: 1.05rem;
  font-weight: 950;
  line-height: 1.1;
  margin: 0;
}

.vibe-card-follow {
  background:
    radial-gradient(circle at top left, rgba(126, 240, 161, 0.16), transparent 34%),
    var(--surface);
}

.vibe-card .shelf-items {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.shelf-card {
  display: grid;
  gap: 12px;
}

.shelf-card h3 {
  font-size: 1.15rem;
  font-weight: 900;
  margin: 0;
}

.shelf-items {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.shelf-item {
  display: grid;
  gap: 6px;
}

.shelf-item img {
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  object-fit: cover;
  width: 100%;
}

.shelf-item span {
  font-size: 0.86rem;
  line-height: 1.2;
}

.notification-list {
  display: grid;
  gap: 12px;
}

.notification-row {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  padding: 14px;
}

.notification-row.unread {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--gold) 28%, transparent);
}

.notification-row p {
  margin: 0;
}

.compact-recco {
  display: grid;
  gap: 8px;
}

.compact-recco div {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.weekly-group {
  margin-bottom: 28px;
}

.weekly-group h2 {
  font-weight: 900;
  margin-bottom: 12px;
}

.weekly-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.weekly-card {
  display: grid;
  gap: 14px;
  grid-template-columns: 130px minmax(0, 1fr);
}

.weekly-card img {
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  object-fit: cover;
  width: 100%;
}

.filter-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1.5fr) minmax(160px, 0.75fr) minmax(140px, 0.6fr) minmax(140px, 0.6fr) auto;
  margin-bottom: 20px;
  padding: 14px;
}

.home-filter-panel {
  margin-top: 4px;
}

.login-method-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.login-method-panel[hidden] {
  display: none;
}

.product-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-card {
  display: grid;
  gap: 12px;
  overflow: hidden;
  padding: 0;
}

.product-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.product-card-body {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.product-card h3 {
  font-size: 1.15rem;
  font-weight: 900;
  margin: 0;
}

.offer-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.offer-card {
  align-content: start;
  display: grid;
  gap: 12px;
}

.offer-card h3 {
  font-size: 1.05rem;
  font-weight: 900;
  margin: 0;
}

.offer-card strong {
  font-size: 1.4rem;
  line-height: 1;
}

.best-offer-strip {
  align-items: center;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--line));
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0;
  padding: 12px 14px;
}

.best-offer-strip span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.best-offer-strip strong {
  font-size: 1.15rem;
}

.quick-review-modal .modal-content {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
}

.quick-review-modal .modal-header,
.quick-review-modal .modal-footer {
  border-color: var(--line);
}

.quick-review-modal .btn-close {
  filter: invert(1);
}

.quick-review-body {
  display: grid;
  gap: 18px;
  grid-template-columns: 220px minmax(0, 1fr);
}

.quick-review-body > img {
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  object-fit: cover;
  width: 100%;
}

.metric-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.metric-pill {
  background: var(--sky);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 800;
  padding: 5px 9px;
}

.submission-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.subtle-card {
  background: color-mix(in srgb, var(--paper) 62%, var(--surface));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.empty-state {
  display: grid;
  gap: 12px;
}

.footer {
  border-top: 1px solid var(--line);
  bottom: 0;
  line-height: 56px;
  position: absolute;
  width: 100%;
}

@media (max-width: 992px) {
  .hero-panel,
  .auth-grid,
  .product-detail,
  .profile-header {
    grid-template-columns: 1fr;
  }

  .weekly-grid {
    grid-template-columns: 1fr;
  }

  .filter-panel,
  .product-grid,
  .offer-grid,
  .shelf-grid,
  .profile-vibe-grid,
  .home-trends {
    grid-template-columns: 1fr;
  }

  .home-heading {
    align-items: start;
    margin-bottom: 30px;
  }

  .home-filter-panel {
    margin-bottom: 30px;
  }
}

@media (max-width: 640px) {
  .app-shell {
    padding-top: 16px;
  }

  .hero-panel {
    min-height: auto;
    padding: 26px;
  }

  .section-heading,
  .recco-card,
  .search-bar,
  .comment-form,
  .weekly-card,
  .filter-panel,
  .ai-assist-box {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: start;
    display: grid;
  }

  .recco-image-link img,
  .recco-card > a img {
    aspect-ratio: 16 / 10;
    min-height: 0;
  }

  .social-row {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .shelf-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .notification-row {
    align-items: start;
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .notification-row .btn {
    grid-column: 2;
    width: max-content;
  }

  .trend-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .social-row form,
  .follow-actions,
  .social-row .status-chip {
    grid-column: 2;
  }

  .follow-actions {
    justify-items: start;
  }
}



/* Recco visual system v2. This final layer intentionally wins over legacy MVP styles. */
:root,
:root[data-theme],
:root[data-theme="dark"] {
  --ink: #f7f3ea;
  --muted: #c7c0b4;
  --soft: #aaa296;
  --line: rgba(247, 243, 234, 0.14);
  --paper: #080908;
  --surface: rgba(24, 25, 22, 0.84);
  --surface-strong: #1b1c18;
  --mint: #7ef0a1;
  --coral: #ff8d70;
  --sky: #8ecbff;
  --gold: #f7d96b;
  --input-bg: rgba(255, 255, 255, 0.055);
  --shadow: rgba(0, 0, 0, 0.46);
  --nav-icon-filter: invert(1);
  color-scheme: dark;
}

body {
  background:
    linear-gradient(110deg, rgba(126, 240, 161, 0.11), transparent 28%),
    linear-gradient(250deg, rgba(142, 203, 255, 0.11), transparent 34%),
    linear-gradient(180deg, #080908 0%, var(--paper) 42%, #10110e 100%);
  color: var(--ink);
  margin-bottom: 44px;
  min-height: 100vh;
  overflow-x: hidden;
}

body,
.app-shell,
main,
.app-card,
.plain-page,
.recco-card,
.product-detail,
.profile-header,
.trend-block,
.subtle-card,
.notification-row,
.filter-panel,
.link-preview-box,
.ai-assist-box,
.interest-panel,
.prompt-panel,
.product-card {
  color: var(--ink);
}

p,
label,
.form-label,
.text-muted,
.muted,
small,
.small {
  color: var(--muted) !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
strong,
.navbar-brand,
.card-title,
.product-card h3,
.recco-card h2,
.recco-card h3 {
  color: var(--ink);
}

a {
  color: var(--sky);
}

a:hover,
a:focus {
  color: var(--gold);
}

body::before,
body::after {
  content: "";
  inset: 0;
  pointer-events: none;
  position: fixed;
  z-index: -1;
}

body::before {
  background:
    linear-gradient(90deg, transparent, rgba(247, 217, 107, 0.055), transparent),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.027) 0 1px, transparent 1px 96px);
  opacity: 0.62;
}

body::after {
  background: linear-gradient(90deg, transparent 0%, rgba(126, 240, 161, 0.18) 34%, rgba(255, 141, 112, 0.16) 62%, transparent 100%);
  opacity: 0;
  transform: translateX(-100%);
}

body.is-thinking::after,
body.is-flowing::after {
  animation: reccoSweep 1200ms cubic-bezier(0.55, 0, 0.15, 1) infinite;
  opacity: 1;
}

@keyframes reccoSweep {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

.app-nav {
  background: rgba(8, 9, 8, 0.72);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

.navbar-brand {
  color: var(--ink);
  letter-spacing: 0;
}

.navbar-toggler {
  border-color: var(--line);
}

.navbar-toggler-icon {
  filter: var(--nav-icon-filter);
}

.nav-link {
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  padding: 8px 12px;
}

.nav-link:hover,
.nav-link:focus {
  background: rgba(255, 255, 255, 0.055);
  color: var(--ink);
  text-decoration: none;
}

.nav-cta {
  background: var(--ink);
  color: var(--paper);
  margin-left: 4px;
}

.nav-cta:hover,
.nav-cta:focus {
  background: var(--gold);
  color: #15120a;
}

.app-menu {
  background: rgba(22, 23, 21, 0.96);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 20px 70px var(--shadow);
  padding: 8px;
}

.dropdown-divider {
  border-color: var(--line);
}

.dropdown-item {
  border-radius: 6px;
  color: var(--ink);
  font-weight: 760;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

.app-shell {
  max-width: 1120px;
  padding-top: 34px;
}

.footer {
  background: transparent;
  border-top: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 36px;
}

.footer-links {
  display: inline-flex;
  gap: 14px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus {
  color: var(--ink);
}

.hero-panel {
  background:
    linear-gradient(120deg, rgba(8, 9, 8, 0.12), rgba(8, 9, 8, 0.82)),
    url("https://images.unsplash.com/photo-1522335789203-aabd1fc54bc9?auto=format&fit=crop&w=1800&q=80");
  border: 0;
  box-shadow: inset 0 0 0 1px var(--line), 0 28px 100px var(--shadow);
  grid-template-columns: minmax(0, 1fr);
  min-height: min(72vh, 680px);
  padding: clamp(28px, 7vw, 84px);
}

.hero-copy {
  align-self: end;
}

.hero-panel h1,
.section-heading h1,
.auth-copy h1 {
  max-width: 820px;
}

.eyebrow {
  color: var(--gold);
  letter-spacing: 0.12em;
}

.hero-text {
  color: color-mix(in srgb, var(--ink) 76%, transparent);
}

.section-heading {
  align-items: center;
  margin-bottom: 18px;
}

.section-heading h1 {
  font-size: clamp(2rem, 5vw, 3.8rem);
}

.app-card,
.plain-page,
.recco-card,
.product-detail,
.profile-header,
.trend-block,
.subtle-card,
.notification-row,
.filter-panel,
.link-preview-box,
.ai-assist-box,
.interest-panel,
.prompt-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 60px var(--shadow);
}

.recco-card,
.product-card,
.trend-tile,
.shelf-item {
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.recco-card:hover,
.product-card:hover,
.trend-tile:hover,
.shelf-item:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.recco-card {
  grid-template-columns: minmax(190px, 0.34fr) minmax(0, 1fr);
}

.recco-image-link img,
.recco-card > a img,
.product-card img,
.trend-tile img,
.shelf-item img,
.product-detail > img {
  filter: saturate(0.92) contrast(1.02);
}

.btn {
  border-radius: 999px;
  min-height: 40px;
  padding-inline: 16px;
}

.btn-dark {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.btn-outline-dark {
  border-color: var(--line);
  color: var(--ink);
}

.btn-outline-dark:disabled,
.btn-dark:disabled {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--line);
  color: var(--soft);
}

.btn-outline-dark:hover,
.btn-dark:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #15120a;
  text-decoration: none;
}

.form-control,
.form-select {
  background: var(--input-bg);
  border-color: var(--line);
  color: var(--ink);
  min-height: 46px;
}

.form-control:focus,
.form-select:focus {
  background: var(--input-bg);
  border-color: rgba(126, 240, 161, 0.5);
  color: var(--ink);
  box-shadow: 0 0 0 0.18rem rgba(126, 240, 161, 0.18);
}

.form-control::placeholder {
  color: var(--soft);
}

.form-hint {
  color: var(--soft);
  display: block;
  font-size: 0.88rem;
  margin-top: 6px;
}

.form-select option {
  background: var(--surface-strong);
  color: var(--ink);
}

.table,
.list-group,
.list-group-item,
.card,
.modal-content {
  --bs-table-color: var(--ink);
  --bs-table-bg: transparent;
  --bs-card-color: var(--ink);
  --bs-card-bg: var(--surface);
  --bs-list-group-color: var(--ink);
  --bs-list-group-bg: var(--surface);
  --bs-modal-color: var(--ink);
  --bs-modal-bg: var(--surface-strong);
  color: var(--ink);
}

.alert,
.validation-summary-errors,
.field-validation-error {
  color: #ffd6cb;
}

.dropdown-menu {
  --bs-dropdown-color: var(--ink);
  --bs-dropdown-link-color: var(--ink);
  --bs-dropdown-link-hover-color: var(--ink);
  --bs-dropdown-bg: var(--surface-strong);
}

.metric-pill,
.prompt-summary span,
.recco-meta strong,
.status-chip {
  background: rgba(126, 240, 161, 0.14);
  color: var(--ink);
}

.feedback-chip,
.choice-pill,
.mini-choice-grid label,
.prompt-grid label {
  background: rgba(255, 255, 255, 0.052);
}

.feedback-chip.active,
.feedback-chip:hover {
  background: var(--mint);
  border-color: var(--mint);
  color: #061107;
}

.home-trends {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
}

.home-tabs {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.09);
}

#home-tab-friends:checked ~ .home-tabs label[for="home-tab-friends"],
#home-tab-trending:checked ~ .home-tabs label[for="home-tab-trending"] {
  background: var(--mint);
  color: #061107;
}

.trend-block {
  overflow: hidden;
}

.trend-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.trend-tile {
  border-radius: 8px;
  padding: 8px;
}

.trend-tile:hover {
  background: rgba(255, 255, 255, 0.05);
}

.filter-panel {
  backdrop-filter: blur(18px);
}

.auth-grid {
  grid-template-columns: minmax(280px, 0.88fr) minmax(360px, 1fr);
}

.auth-copy {
  align-self: start;
  position: sticky;
  top: 96px;
}

.auth-copy .subtle-card {
  box-shadow: none;
}

.link-preview-box,
.ai-assist-box {
  background: rgba(255, 255, 255, 0.045);
}

.ai-assist-box {
  border-color: rgba(247, 217, 107, 0.26);
}

.ai-assist-box .btn {
  background: var(--gold);
  border-color: var(--gold);
  color: #15120a;
}

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

@media (max-width: 992px) {
  .auth-copy {
    position: static;
  }
}

@media (max-width: 640px) {
  .app-shell {
    padding-left: 14px;
    padding-right: 14px;
    padding-top: 16px;
  }

  .hero-panel {
    min-height: calc(100svh - 118px);
    padding: 26px 18px;
  }

  .home-trends,
  .home-tabs-shell,
  .profile-vibe-grid,
  .offer-grid,
  .quick-review-body,
  .trend-strip,
  .recco-card {
    grid-template-columns: 1fr;
  }

  .auth-grid {
    gap: 16px;
    grid-template-columns: 1fr;
  }

  .auth-copy {
    position: static;
  }

  .auth-copy h1,
  .hero-panel h1,
  .section-heading h1 {
    font-size: clamp(2rem, 13vw, 3rem);
    line-height: 0.98;
    overflow-wrap: anywhere;
  }

  .auth-copy p,
  .hero-text {
    font-size: 1rem;
  }

  .app-card,
  .plain-page,
  .subtle-card,
  .prompt-panel,
  .link-preview-box,
  .ai-assist-box,
  .filter-panel,
  .trend-block {
    padding: 16px;
  }

  .hero-actions,
  .action-row,
  .submission-actions,
  .follow-actions,
  .quick-feedback,
  .choice-grid,
  .mini-choice-grid,
  .prompt-grid fieldset {
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .hero-actions .btn,
  .action-row .btn,
  .action-row form,
  .submission-actions .btn,
  .follow-actions .btn,
  .follow-actions form,
  .quick-feedback form,
  .quick-feedback button,
  .form-stack > .btn,
  .search-bar .btn,
  .filter-panel .btn,
  .ai-assist-box .btn {
    width: 100%;
  }

  .search-bar,
  .comment-form,
  .filter-panel,
  .ai-assist-box {
    gap: 10px;
    grid-template-columns: 1fr;
  }

  .form-control,
  .form-select,
  .btn {
    min-height: 48px;
  }

  .recco-card {
    overflow: hidden;
  }

  .recco-card-body,
  .product-card-body {
    padding: 16px;
  }

  .prompt-summary,
  .metric-strip,
  .recco-footer {
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr;
  }

  .social-row {
    gap: 12px;
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .social-row h3,
  .social-row p,
  .trend-tile span,
  .trend-tile small,
  .product-card h3,
  .recco-card h3 {
    overflow-wrap: anywhere;
  }

  .social-row form,
  .follow-actions,
  .social-row .status-chip {
    grid-column: 1 / -1;
  }

  .mini-choice-grid label,
  .prompt-grid label,
  .feedback-chip {
    justify-content: center;
    min-height: 42px;
  }

  .footer {
    line-height: 28px;
  }

.nav-cta {
    margin-left: 0;
  }
}

.smart-product-results {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.smart-product-heading {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.smart-product-card {
  align-items: center;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: var(--text);
  display: grid;
  gap: 12px;
  grid-template-columns: 52px minmax(0, 1fr);
  padding: 10px;
  text-align: left;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
  width: 100%;
}

.smart-product-card:hover,
.smart-product-card:focus-visible {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.24);
  transform: translateY(-1px);
}

.smart-product-card img {
  aspect-ratio: 1;
  border-radius: 7px;
  height: 52px;
  object-fit: cover;
  width: 52px;
}

.smart-product-card strong,
.smart-product-card small {
  display: block;
  overflow-wrap: anywhere;
}

.smart-product-card small {
  color: var(--muted);
  margin-top: 2px;
}

.product-image-preview {
  margin-top: 10px;
}

.product-image-preview img {
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  max-height: 220px;
  object-fit: cover;
  width: 100%;
}

.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.sr-only {
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.icon-actions {
  align-items: center;
}

.icon-btn,
.btn-icon {
  align-items: center;
  aspect-ratio: 1;
  border-radius: 999px;
  display: inline-flex;
  justify-content: center;
  line-height: 1;
  min-height: 40px;
  min-width: 40px;
  padding: 0;
}

.icon-btn {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text);
  text-decoration: none;
}

.icon-btn:hover,
.icon-btn:focus-visible {
  background: rgba(255, 255, 255, 0.11);
  color: var(--text);
}

.icon-btn-primary {
  background: var(--text);
  color: var(--surface);
}

.icon-btn-primary:hover,
.icon-btn-primary:focus-visible {
  background: var(--accent);
  color: #041008;
}

.icon-btn.is-copied {
  background: var(--mint);
  color: #041008;
}

.icon-btn svg,
.btn-icon svg {
  fill: currentColor;
  height: 19px;
  width: 19px;
}

.btn-icon.btn-sm {
  min-height: 34px;
  min-width: 34px;
}

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

.brand-whatsapp {
  color: #6ee7a8;
}

.brand-facebook {
  color: #8bb7ff;
}

.brand-linkedin {
  color: #8fd2ff;
}

.admin-shell {
  display: grid;
  gap: 18px;
}

.admin-header {
  align-items: end;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.admin-header h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  margin: 0;
}

.admin-range {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  display: flex;
  padding: 4px;
}

.admin-range button {
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 800;
  min-width: 48px;
  padding: 8px 12px;
}

.admin-range button.is-active {
  background: var(--text);
  color: var(--surface);
}

.admin-kpi-grid,
.admin-grid {
  display: grid;
  gap: 12px;
}

.admin-kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-grid-main {
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
}

.admin-wide {
  min-width: 0;
}

.admin-kpi,
.admin-panel {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

.admin-kpi {
  display: grid;
  gap: 4px;
  min-height: 120px;
  padding: 16px;
}

.admin-kpi span,
.admin-panel-heading span,
.admin-kpi small,
.admin-table small {
  color: var(--muted);
}

.admin-kpi strong {
  font-size: 2rem;
  line-height: 1;
}

.admin-kpi em {
  font-style: normal;
  font-weight: 900;
  margin-left: 6px;
}

.admin-kpi em.good {
  color: var(--mint);
}

.admin-kpi em.bad {
  color: #ff9aa8;
}

.admin-panel {
  min-width: 0;
  padding: 16px;
}

.admin-panel-heading {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.admin-panel-heading h2 {
  font-size: 1rem;
  margin: 0;
}

.admin-chart {
  align-items: end;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(auto-fit, minmax(8px, 1fr));
  height: 220px;
  padding-top: 12px;
}

.admin-chart-day {
  align-items: end;
  display: grid;
  gap: 2px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  height: 100%;
}

.bar {
  border-radius: 999px 999px 0 0;
  display: block;
  min-height: 4px;
}

.views {
  background: #8fd2ff;
}

.posts {
  background: var(--mint);
}

.signups {
  background: #f7c873;
}

.admin-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.admin-legend span {
  align-items: center;
  color: var(--muted);
  display: inline-flex;
  font-size: 0.86rem;
  gap: 6px;
}

.admin-legend i {
  border-radius: 999px;
  display: inline-block;
  height: 9px;
  width: 9px;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  border-collapse: collapse;
  width: 100%;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  padding: 10px 8px;
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.admin-table a {
  color: var(--text);
  font-weight: 850;
  text-decoration: none;
}

.admin-table small {
  display: block;
  margin-top: 2px;
}

.admin-metric-list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.admin-metric-list div {
  align-items: center;
  background: rgba(255, 255, 255, 0.045);
  border-radius: 7px;
  display: flex;
  justify-content: space-between;
  padding: 10px;
}

.admin-metric-list dt {
  color: var(--muted);
  font-weight: 700;
}

.admin-metric-list dd {
  font-weight: 900;
  margin: 0;
}

.connections-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.connection-card,
.social-connection-card {
  display: grid;
  gap: 16px;
}

.social-connection-list {
  display: grid;
  gap: 12px;
}

.social-connection-card {
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
}

.social-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.social-link-row a {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 800;
  padding: 7px 11px;
  text-decoration: none;
}

.email-connect-grid,
.receipt-draft-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.email-provider-card,
.email-account-card,
.receipt-draft-card {
  display: grid;
  gap: 16px;
}

.email-provider-card {
  align-content: space-between;
  min-height: 230px;
}

.email-account-list {
  display: grid;
  gap: 12px;
}

.email-account-card {
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
}

.receipt-draft-card h3,
.email-account-card h3,
.email-provider-card h2 {
  overflow-wrap: anywhere;
}

.receipt-draft-card {
  min-height: 230px;
}

.receipt-draft-card .action-row {
  align-self: end;
}

@media (max-width: 640px) {
  .email-account-card {
    grid-template-columns: 1fr;
  }

  .social-connection-card {
    grid-template-columns: 1fr;
  }

  .share-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .share-actions.icon-actions {
    display: flex;
  }

  .action-row .btn.btn-icon {
    flex: 0 0 auto;
    width: auto;
  }

  .admin-header {
    align-items: stretch;
    display: grid;
  }

  .admin-kpi-grid,
  .admin-grid,
  .admin-grid-main {
    grid-template-columns: 1fr;
  }

  .admin-kpi {
    min-height: 100px;
  }
}


