:root {
  --bg: #eef1f8;
  --surface: #ffffff;
  --surface-hover: #f7f9fa;
  --ink: #0f1419;
  --ink-secondary: #536471;
  --ink-muted: #8b98a5;
  --line: #eff3f4;
  --line-strong: #dfe6ee;
  --brand: #1d9bf0;
  --brand-hover: #1a8cd8;
  --brand-soft: #e8f5fd;
  --brand-deep: #1478f0;
  --accent-purple: #7c6cf0;
  --positive: #00ba7c;
  --positive-soft: #e6f9f1;
  --negative: #f4212e;
  --negative-soft: #fdecee;
  --radius: 20px;
  --radius-sm: 999px;
  --shadow: 0 8px 32px rgba(15, 20, 25, 0.06);
  --shadow-soft: 0 2px 12px rgba(15, 20, 25, 0.05);
  --nav-height: 60px;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --brand-font: "DM Sans", var(--sans);
  --layout-nav-width: 240px;
  --layout-feed-width: 600px;
  --layout-aside-width: 350px;
  --layout-gap: 1.5rem;
  --layout-max-width: calc(
    var(--layout-nav-width) + var(--layout-feed-width) + var(--layout-aside-width) + 2 * var(--layout-gap)
  );
  --layout-browse-width: calc(
    var(--layout-feed-width) + var(--layout-gap) + var(--layout-aside-width)
  );
  --hero-bg-image: url("/static/hero.webp");
  /* Legacy aliases */
  --feed-width: var(--layout-feed-width);
  --sidebar-width: var(--layout-aside-width);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
}

button,
input {
  font: inherit;
}

button {
  border: none;
  cursor: pointer;
  background: none;
}

a {
  color: inherit;
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.lucide {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
  stroke: currentColor;
}

.btn-with-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.icon--spin {
  animation: spin 0.9s linear infinite;
}

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

.topnav {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--nav-height);
  border-bottom: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-soft);
}

.topnav__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: var(--layout-max-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.topnav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
  flex-shrink: 0;
  text-decoration: none;
  color: var(--ink);
}

.topnav__brand-mark {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  object-fit: contain;
  display: block;
}

.topnav__brand-name {
  font-family: var(--brand-font);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1;
  white-space: nowrap;
  color: var(--ink);
  text-transform: lowercase;
}

.topnav__brand-name-accent {
  color: var(--brand);
}

.topnav__signup {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-left: auto;
  flex-shrink: 0;
}

.topnav__signup-field {
  position: relative;
  width: min(300px, 38vw);
}

.topnav__signup-icon {
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  color: var(--ink-muted);
  pointer-events: none;
}

.topnav__signup-field input {
  width: 100%;
  padding: 0.52rem 0.85rem 0.52rem 2.2rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.875rem;
}

.topnav__signup-field input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand);
}

.topnav__signup-field input::placeholder {
  color: var(--ink-muted);
}

.topnav__signup-btn {
  padding: 0.52rem 1.05rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 700;
  white-space: nowrap;
}

.search-field {
  position: relative;
  flex: 1;
}

.search-field__icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-muted);
  pointer-events: none;
}

.search-field input {
  width: 100%;
  padding: 0.62rem 0.9rem 0.62rem 2.4rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
}

.search-field input:focus {
  outline: none;
  border-color: var(--brand);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--brand);
}

.search-field input::placeholder {
  color: var(--ink-muted);
}

.btn-primary {
  padding: 0.62rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
}

.btn-primary:hover:not(:disabled) {
  background: var(--brand-hover);
}

.btn-secondary {
  padding: 0.55rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
}

.btn-secondary:hover:not(:disabled) {
  background: var(--surface-hover);
}

.btn-primary:disabled,
.btn-secondary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.app-shell {
  display: grid;
  grid-template-columns: var(--layout-nav-width) minmax(0, 1fr);
  gap: var(--layout-gap);
  justify-content: center;
  width: 100%;
  max-width: var(--layout-max-width);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 1rem;
  align-items: start;
}

.app-shell--home .feed-column {
  max-width: none;
  gap: 1.35rem;
}

.app-shell--profile {
  grid-template-columns:
    var(--layout-nav-width)
    minmax(0, var(--layout-feed-width))
    minmax(0, var(--layout-aside-width));
}

.app-shell:not(.app-shell--profile) .sidebar--right {
  display: none;
}

.site-footer {
  max-width: var(--layout-max-width);
  margin: 0 auto;
  padding: 0 1rem 2rem;
  text-align: center;
}

.site-footer p {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--ink-muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.site-footer .lucide {
  width: 0.85rem;
  height: 0.85rem;
  color: var(--brand);
}

.sidebar--left {
  position: sticky;
  top: calc(var(--nav-height) + 1rem);
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-height: calc(100vh - var(--nav-height) - 2.5rem);
}

.side-nav {
  display: grid;
  gap: 0.35rem;
}

.side-nav__item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.78rem 1rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--ink-secondary);
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease;
}

.side-nav__item .lucide {
  width: 1.15rem;
  height: 1.15rem;
}

.side-nav__item:hover {
  background: rgba(255, 255, 255, 0.75);
  color: var(--ink);
}

.side-nav__item--active {
  font-weight: 700;
  color: var(--brand-deep);
  background: linear-gradient(90deg, rgba(29, 155, 240, 0.14), rgba(124, 108, 240, 0.08));
  box-shadow: inset 0 0 0 1px rgba(29, 155, 240, 0.12);
}

.side-nav__item--active .lucide {
  color: var(--brand-deep);
}

.sidebar-promo {
  margin-top: auto;
  padding: 1rem 1.05rem;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at top right, rgba(124, 108, 240, 0.18), transparent 55%),
    linear-gradient(160deg, #f3f0ff 0%, #eef6ff 100%);
  border: 1px solid rgba(124, 108, 240, 0.14);
  box-shadow: var(--shadow-soft);
}

.sidebar-promo__icon {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.65rem;
}

.sidebar-promo__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.sidebar-promo__text {
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

.sidebar-promo__sub {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--ink-secondary);
}

.sidebar--right {
  position: sticky;
  top: calc(var(--nav-height) + 1rem);
  align-self: start;
}

.sidebar-stack {
  display: grid;
  gap: 0.85rem;
}

.widget-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.feed-column {
  display: grid;
  gap: 0.75rem;
  min-width: 0;
  width: 100%;
  max-width: var(--layout-browse-width);
}

.app-shell--profile .feed-column {
  max-width: var(--layout-feed-width);
}

.card {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: none;
}

.hero {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius) + 4px);
  background-color: #f8f9ff;
  background-image: var(--hero-bg-image);
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  box-shadow: var(--shadow);
  border: 1px solid rgba(223, 230, 238, 0.9);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(220px, 0.95fr);
  gap: 1.25rem;
  align-items: stretch;
  min-height: 420px;
  padding: 2rem 2rem 2rem 2.25rem;
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  grid-column: 1;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 1rem;
  padding: 0.32rem 0.72rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(29, 155, 240, 0.14);
  color: var(--brand-deep);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero__eyebrow .lucide {
  width: 0.85rem;
  height: 0.85rem;
}

.hero__title {
  margin: 0 0 0.85rem;
  max-width: 15.5em;
  font-size: clamp(1.85rem, 3.2vw, 2.45rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.hero__title-accent {
  display: inline;
  background: linear-gradient(120deg, var(--brand-deep) 0%, var(--accent-purple) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  margin: 0 0 1.15rem;
  max-width: 34rem;
  color: var(--ink-secondary);
  line-height: 1.65;
  font-size: 0.95rem;
}

.hero__features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.35rem;
  padding: 0;
  list-style: none;
}

.hero__features li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.42rem 0.78rem;
  border: 1px solid rgba(223, 230, 238, 0.95);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink-secondary);
  font-size: 0.78rem;
  font-weight: 600;
}

.hero__features .lucide {
  width: 0.9rem;
  height: 0.9rem;
  color: var(--brand);
}

.hero-signup {
  margin: 0;
}

.hero-signup__panel {
  padding: 1rem 1.05rem 0.95rem;
  border-radius: calc(var(--radius) - 2px);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(223, 230, 238, 0.95);
  box-shadow: var(--shadow-soft);
}

.hero-signup__row {
  display: flex;
  gap: 0.65rem;
  align-items: stretch;
}

.hero-signup__field {
  flex: 1;
  min-width: 0;
}

.hero-signup__field input {
  padding-top: 0.72rem;
  padding-bottom: 0.72rem;
  border-radius: var(--radius-sm);
}

.hero-signup__btn {
  flex-shrink: 0;
  padding-inline: 1.15rem;
  background: linear-gradient(135deg, var(--brand-deep) 0%, #3b82f6 100%);
  box-shadow: 0 8px 20px rgba(20, 120, 240, 0.22);
}

.hero-signup__btn:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--brand-hover) 0%, #2563eb 100%);
}

.hero-signup__fine-print {
  margin: 0.65rem 0 0;
  color: var(--ink-muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.hero-success {
  display: grid;
  gap: 0.45rem;
  justify-items: start;
  padding: 1rem 0;
}

.hero-success__icon {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--brand);
}

.hero-success h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-success p {
  margin: 0;
  max-width: 34rem;
  color: var(--ink-secondary);
  line-height: 1.6;
}

.hero-success strong {
  color: var(--ink);
  font-weight: 600;
}

.alert {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  font-size: 0.92rem;
}

.alert--error {
  border: 1px solid #f5c2c7;
  background: var(--negative-soft);
  color: var(--negative);
}

.loading-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.15rem;
}

.loading-card .lucide {
  color: var(--brand);
}

.loading-card p {
  margin: 0;
  color: var(--ink-secondary);
}

.results {
  display: grid;
  gap: 1rem;
}

.home-samples {
  display: grid;
  gap: 1rem;
  padding-top: 0.35rem;
}

.home-samples__title {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand-deep);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-samples__title .lucide {
  width: 0.9rem;
  height: 0.9rem;
}

.featured-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.featured-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: calc(var(--radius) + 2px);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.featured-card:hover {
  transform: translateY(-2px);
  border-color: rgba(29, 155, 240, 0.28);
  box-shadow: var(--shadow);
}

.featured-card__header {
  position: relative;
  height: 78px;
  flex-shrink: 0;
  background: var(--card-accent, var(--brand));
  overflow: hidden;
}

.featured-card__header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.34) 1px, transparent 1px),
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.18), transparent 45%);
  background-size: 14px 14px, auto;
  opacity: 0.55;
}

.featured-card__header::after {
  content: "";
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: -18px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
}

.featured-card__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  padding: 0 1rem 1.1rem;
}

.featured-card__avatar {
  position: relative;
  z-index: 1;
  width: 68px;
  height: 68px;
  margin-top: -34px;
  border: 4px solid var(--surface);
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(15, 20, 25, 0.08);
}

.featured-card__avatar img {
  width: 72%;
  height: 72%;
  object-fit: contain;
  object-position: center;
}

.featured-card__name {
  margin: 0.7rem 0 0;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.featured-card__handle {
  margin: 0.18rem 0 0;
  color: var(--ink-muted);
  font-size: 0.82rem;
}

.featured-card__vibe {
  margin: 0.55rem 0 0;
  padding: 0.24rem 0.65rem;
  border-radius: var(--radius-sm);
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.3;
}

.featured-card__tagline {
  margin: 0.65rem 0 0;
  color: var(--ink-secondary);
  font-size: 0.84rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  width: 100%;
  min-height: 2.45em;
}

.featured-card__domain {
  margin-top: 0.55rem;
  color: var(--card-accent, var(--brand));
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
}

.featured-card__domain:hover {
  text-decoration: underline;
}

.featured-card__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-top: 0.85rem;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink-secondary);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.featured-card__link:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-soft);
}

.featured-card__link .lucide {
  width: 0.95rem;
  height: 0.95rem;
}

.explore-view {
  display: grid;
  gap: 1rem;
  width: 100%;
}

.about-view {
  display: grid;
  gap: 1rem;
  width: 100%;
}

.about-card {
  padding: 1.5rem 1.55rem 1.4rem;
  border-color: #cfe8ff;
  background:
    radial-gradient(circle at top right, rgba(29, 155, 240, 0.1), transparent 42%),
    linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
}

.about-card__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.75rem;
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 600;
}

.about-card__eyebrow .lucide {
  width: 0.95rem;
  height: 0.95rem;
}

.about-card__title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.about-card__lead {
  margin: 0 0 1.25rem;
  max-width: 38rem;
  color: var(--ink-secondary);
  line-height: 1.65;
}

.about-card__sections {
  display: grid;
  gap: 1rem;
}

.about-card__section h2 {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.45rem;
  font-size: 1rem;
  font-weight: 700;
}

.about-card__section h2 .lucide {
  width: 1rem;
  height: 1rem;
  color: var(--brand);
}

.about-card__section p {
  margin: 0;
  color: var(--ink-secondary);
  line-height: 1.6;
}

.explore-loading {
  display: block;
}

.explore-empty {
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  padding: 2rem 1.25rem;
  text-align: center;
  color: var(--ink-secondary);
}

.explore-empty .lucide {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--brand);
}

.explore-empty h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.05rem;
}

.explore-empty p {
  margin: 0;
  max-width: 28rem;
  font-size: 0.92rem;
}

.explore-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.explore-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.25rem 0 0.5rem;
}

.explore-pagination__label {
  color: var(--ink-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  min-width: 7rem;
  text-align: center;
}

.explore-profile {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: none;
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.explore-profile:hover {
  border-color: var(--brand);
  background: var(--surface-hover);
  transform: none;
}

.explore-profile__cover {
  height: 64px;
  flex-shrink: 0;
}

.explore-profile__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  padding: 0 0.85rem 1rem;
}

.explore-profile__avatar {
  width: 64px;
  height: 64px;
  margin-top: -32px;
  border: 3px solid var(--surface);
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.explore-profile__avatar img {
  width: 72%;
  height: 72%;
  object-fit: contain;
  object-position: center;
}

.explore-profile__name {
  margin: 0.65rem 0 0;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.explore-profile__handle {
  margin: 0.15rem 0 0;
  color: var(--ink-secondary);
  font-size: 0.82rem;
}

.explore-profile__vibe {
  margin: 0.45rem 0 0;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.3;
}

.explore-profile__tagline {
  margin: 0.55rem 0 0;
  color: var(--ink);
  font-size: 0.84rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  width: 100%;
}

.explore-profile__footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  margin-top: auto;
  padding-top: 0.75rem;
  width: 100%;
}

.explore-profile__domain {
  color: var(--ink-secondary);
  font-size: 0.76rem;
  font-weight: 500;
}

.explore-profile__time {
  color: var(--ink-muted);
  font-size: 0.72rem;
}

.profile-card {
  overflow: hidden;
}

.profile-cover {
  height: 148px;
  background: #667eea;
}

.profile-card__body {
  padding: 0 1.15rem 1.15rem;
}

.profile-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-top: -42px;
}

.profile-avatar {
  width: 84px;
  height: 84px;
  border: 4px solid var(--surface);
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  display: grid;
  place-items: center;
}

.profile-avatar__img,
.profile-avatar__fallback {
  grid-area: 1 / 1;
}

.profile-avatar__img {
  width: 72%;
  height: 72%;
  object-fit: contain;
  object-position: center;
}

.profile-avatar__img--favicon {
  width: 82%;
  height: 82%;
}

.profile-avatar__fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #89cff0, #1d9bf0);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-bottom: 0.35rem;
  justify-content: flex-end;
}

.profile-explore-status {
  margin: 0 0 0.75rem;
  color: var(--ink-secondary);
  font-size: 0.82rem;
  line-height: 1.45;
}

.explore-profile__share {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 0.35rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--line);
}

.explore-profile__copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink-secondary);
  cursor: pointer;
  text-decoration: none;
}

.explore-profile__copy:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.explore-profile__copy .lucide {
  width: 0.9rem;
  height: 0.9rem;
}

.profile-identity {
  margin-top: 0.75rem;
}

.profile-identity h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
}

.profile-handle {
  margin: 0.15rem 0 0;
  color: var(--ink-secondary);
  font-size: 0.95rem;
}

.profile-meta {
  margin: 0.35rem 0 0;
  color: var(--ink-secondary);
}

.profile-vibe {
  display: inline-block;
  margin: 0.55rem 0 0;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-sm);
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 600;
}

.profile-bio {
  margin: 0.85rem 0 0;
  font-size: 0.98rem;
  line-height: 1.55;
}

.profile-status {
  margin: 0.65rem 0 0;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink-secondary);
  font-size: 0.92rem;
}

.profile-source {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.source-favicon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: contain;
  background: var(--bg);
}

.profile-source__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}

.profile-source__link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--brand);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  word-break: break-all;
}

.profile-source__link:hover {
  text-decoration: underline;
}

.profile-source__link .lucide {
  width: 0.85rem;
  height: 0.85rem;
}

.profile-details {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.profile-details__title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.profile-details__title .lucide {
  width: 1rem;
  height: 1rem;
  color: var(--brand);
}

.profile-fun-bits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.profile-fun-bits__item {
  min-width: 0;
}

.profile-fun-bits__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}

.profile-fun-bits__value {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.86rem;
  line-height: 1.4;
  color: var(--ink);
  white-space: normal;
  overflow-wrap: anywhere;
}

.profile-fun-bits__value--emoji {
  font-size: 1.15rem;
  line-height: 1.2;
}

.phone-battery {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #34c759;
}

.phone-battery__icon {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.phone-battery__shell {
  position: relative;
  width: 28px;
  height: 13px;
  border: 1.5px solid currentColor;
  border-radius: 3.5px;
  padding: 1.5px;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.65);
}

.phone-battery__fill {
  height: 100%;
  max-width: 100%;
  border-radius: 1.5px;
  background: currentColor;
}

.phone-battery__cap {
  width: 2px;
  height: 5px;
  margin-left: 1px;
  border-radius: 0 1px 1px 0;
  background: currentColor;
  opacity: 0.75;
}

.phone-battery__pct {
  font-size: 0.84rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: currentColor;
}

.phone-battery--compact {
  gap: 0.25rem;
}

.phone-battery--compact .phone-battery__shell {
  width: 22px;
  height: 11px;
  padding: 1px;
}

.phone-battery--compact .phone-battery__cap {
  width: 1.5px;
  height: 4px;
}

.phone-battery--compact .phone-battery__pct {
  font-size: 0.72rem;
  font-weight: 600;
}

.phone-battery--high {
  color: #34c759;
}

.phone-battery--mid {
  color: #ff9f0a;
}

.phone-battery--mid .phone-battery__shell {
  background: rgba(255, 159, 10, 0.08);
}

.phone-battery--low {
  color: #ff3b30;
}

.phone-battery--low .phone-battery__shell {
  background: rgba(255, 59, 48, 0.08);
}

.profile-setting {
  margin: 0.65rem 0 0;
  color: var(--ink-muted);
  font-size: 0.85rem;
}

.profile-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--line-strong);
  background: var(--surface);
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
}

.profile-tabs__tab {
  flex: 1;
  padding: 0.95rem 1rem;
  border-bottom: 2px solid transparent;
  color: var(--ink-secondary);
  font-weight: 600;
}

.profile-tabs__tab:hover {
  background: var(--surface-hover);
}

.profile-tabs__tab--active {
  color: var(--ink);
  border-bottom-color: var(--brand);
}

.feed-stream {
  display: grid;
  gap: 1rem;
}

.social-posts-feed {
  display: grid;
  gap: 1rem;
}

.post {
  padding: 0.95rem 1.05rem 0.75rem;
}

.post__header {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.post-avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(145deg, #89cff0, #1d9bf0);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  flex-shrink: 0;
}

.post__header strong {
  display: inline;
  font-size: 0.95rem;
}

.post__author-line {
  flex: 1;
  min-width: 0;
}

.post__names {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem;
}

.post__handle,
.post__time {
  color: var(--ink-muted);
  font-size: 0.88rem;
  font-weight: 400;
}

.post__dot {
  color: var(--ink-muted);
  font-size: 0.88rem;
}

.post__platform {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.15rem;
  color: var(--ink-muted);
  font-size: 0.78rem;
}

.post__platform .lucide {
  width: 0.8rem;
  height: 0.8rem;
}

.post--social .post__content {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

.post-hashtag {
  color: var(--brand);
  font-weight: 500;
}

.post__emoji-reaction {
  margin: 0.65rem 0 0;
  font-size: 1.35rem;
  line-height: 1;
}

.post__engagement {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.75rem;
  padding: 0.55rem 0 0 3.05rem;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 0.82rem;
}

.widget--message {
  padding: 0 1rem 0.95rem;
  background: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
  border-color: #cfe8ff;
  overflow: hidden;
}

.widget--message .widget__title {
  margin-top: 0;
}

.widget--message .widget__title .lucide {
  color: #007aff;
}

.imessage-thread {
  display: grid;
  gap: 0.45rem;
}

.imessage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.imessage-battery {
  flex-shrink: 0;
}

.imessage-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--ink-muted);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.imessage-meta .lucide {
  width: 0.85rem;
  height: 0.85rem;
}

.imessage-bubble {
  position: relative;
  max-width: 92%;
  margin-left: auto;
  padding: 0.7rem 0.85rem;
  border-radius: 18px 18px 4px 18px;
  background: #007aff;
  color: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.imessage-bubble p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
}

.imessage-status {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.3rem;
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.75rem;
}

.imessage-status .lucide {
  width: 0.85rem;
  height: 0.85rem;
  color: #007aff;
}

.post__meta {
  color: var(--ink-muted);
  font-size: 0.82rem;
}

.post__body {
  padding-left: 3.05rem;
}

.post__content {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.6;
  white-space: pre-wrap;
}

.post__actions {
  display: flex;
  gap: 1.25rem;
  margin-top: 0.85rem;
  padding-left: 3.05rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--line);
}

.post-action {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--ink-muted);
  font-size: 0.82rem;
  font-weight: 500;
}

.post-action .lucide {
  width: 1rem;
  height: 1rem;
}

.detail-grid {
  display: grid;
  gap: 0.85rem;
  margin: 0;
}

.detail-grid dt {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}

.detail-grid dd {
  margin: 0.15rem 0 0;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tag {
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--brand);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.35;
  white-space: normal;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.widget {
  padding: 0.95rem 1rem;
}

.widget__title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
  font-weight: 800;
}

.widget__title .lucide {
  width: 0.95rem;
  height: 0.95rem;
  color: var(--brand);
}

.widget__copy {
  margin: 0;
  color: var(--ink-secondary);
  font-size: 0.88rem;
  line-height: 1.5;
}

.widget-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.widget-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--ink);
}

.widget-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.widget-list li:first-child {
  padding-top: 0;
}

.widget-list .lucide {
  width: 0.95rem;
  height: 0.95rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.debug-card {
  padding: 0.85rem 1rem;
}

.debug-card__summary {
  cursor: pointer;
  color: var(--ink-muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.debug-card pre {
  margin: 0.75rem 0 0;
  padding: 0.85rem;
  border-radius: 12px;
  background: var(--bg);
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--ink-secondary);
  font-size: 0.82rem;
}

@media (max-width: 1100px) {
  .app-shell:not(.app-shell--profile) {
    grid-template-columns: minmax(0, 1fr);
    max-width: min(100%, var(--layout-browse-width));
  }

  .app-shell--profile {
    max-width: min(100%, calc(var(--layout-feed-width) + var(--layout-aside-width) + var(--layout-gap)));
    grid-template-columns: minmax(0, var(--layout-feed-width)) minmax(280px, var(--layout-aside-width));
  }

  .sidebar--left {
    display: none;
  }

  .app-shell:not(.app-shell--profile) .sidebar--right {
    display: none;
  }
}

@media (max-width: 960px) {
  .app-shell:not(.app-shell--profile) {
    grid-template-columns: 1fr;
    max-width: min(100%, var(--layout-browse-width));
  }

  .app-shell--profile {
    grid-template-columns: 1fr;
    max-width: min(100%, var(--layout-browse-width));
  }

  .app-shell--profile .feed-column {
    max-width: none;
  }

  .sidebar--left {
    min-height: 0;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
  }

  .side-nav {
    display: flex;
    flex-wrap: wrap;
    flex: 1;
  }

  .sidebar-promo {
    display: none;
  }

  .sidebar--right {
    position: static;
  }

  .app-shell:not(.app-shell--profile) .sidebar--right {
    display: none;
  }

  .widget-row {
    grid-template-columns: 1fr;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 1.5rem;
  }

  .hero__content {
    grid-column: 1;
  }

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

  .topnav__brand-name {
    display: none;
  }

  .topnav__signup-field {
    width: min(220px, 34vw);
  }
}

@media (max-width: 640px) {
  .topnav__signup-field {
    display: none;
  }

  .topnav__signup-btn {
    padding-inline: 0.85rem;
  }

  .hero-signup__row {
    flex-direction: column;
  }

  .hero-signup__btn {
    width: 100%;
    justify-content: center;
  }

  .featured-cards,
  .app-shell--explore .explore-list,
  .app-shell--home .explore-list {
    grid-template-columns: 1fr;
  }

  .profile-card__top {
    flex-direction: column;
    align-items: flex-start;
  }

  .profile-actions {
    width: 100%;
  }

  .profile-actions button {
    flex: 1;
  }

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

  .post__body,
  .post__actions,
  .post__engagement {
    padding-left: 0;
  }
}
