:root {
  color-scheme: light;
  --bg: #edf3f8;
  --surface: #ffffff;
  --surface-soft: #f5f9ff;
  --text: #07182d;
  --muted: #5b6f88;
  --line: #dce6f0;
  --brand: #0b5fe8;
  --brand-2: #16b6f5;
  --brand-dark: #052b6f;
  --shadow: 0 18px 42px rgba(5, 43, 111, 0.13);
  --card-shadow: 0 10px 24px rgba(5, 43, 111, 0.08);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #07111f;
  --surface: #101c2d;
  --surface-soft: #0b1727;
  --text: #eef6ff;
  --muted: #a6b6c8;
  --line: #24344a;
  --brand: #4e94ff;
  --brand-2: #28c4ff;
  --brand-dark: #d8e8ff;
  --shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
  --card-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
}

* {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  transition: background-color 180ms ease, color 180ms ease;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 50% -18%, rgba(11, 95, 232, 0.23), transparent 34%),
    radial-gradient(circle at 92% 10%, rgba(22, 182, 245, 0.16), transparent 22%),
    var(--bg);
}

.top-actions {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 20;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  color: var(--text);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--card-shadow);
  cursor: pointer;
  backdrop-filter: blur(16px);
  transition: transform 180ms ease, background-color 180ms ease;
}

:root[data-theme="dark"] .icon-button {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(16, 28, 45, 0.82);
}

.icon-button:hover,
.social-button:hover,
.filter-chip:hover,
.link-card:hover {
  transform: translateY(-2px);
}

.icon-button svg {
  width: 20px;
  height: 20px;
}

.hub-shell {
  width: min(calc(100% - 32px), 1120px);
  margin: 0 auto;
  padding: 72px 0 36px;
}

.profile-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.profile-avatar {
  width: 116px;
  height: 116px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: var(--shadow);
}

.profile-eyebrow {
  margin: 22px 0 8px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.profile-section h1 {
  max-width: 100%;
  margin: 0;
  color: var(--text);
  font-size: 34px;
  font-weight: 900;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.profile-bio {
  margin: 10px 0 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 800;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.social-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--brand-dark);
  background: var(--surface);
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(5, 43, 111, 0.06);
  transition: transform 180ms ease, border-color 180ms ease;
}

.social-button svg {
  width: 18px;
  height: 18px;
  color: var(--brand);
}

.search-section {
  max-width: 820px;
  margin: 32px auto 34px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--card-shadow);
}

.search-box svg {
  width: 22px;
  height: 22px;
  color: var(--brand);
  flex: 0 0 auto;
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-size: 16px;
}

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

.filter-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

.filter-chip {
  min-height: 38px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--brand-dark);
  background: var(--surface);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.filter-chip[aria-pressed="true"] {
  border-color: transparent;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 12px 24px rgba(11, 95, 232, 0.2);
}

.catalog-section {
  padding-bottom: 24px;
}

.state-group + .state-group {
  margin-top: 38px;
}

.state-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.state-heading h2 {
  margin: 0;
  color: var(--text);
  font-size: 22px;
  font-weight: 900;
}

.state-heading span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.link-card {
  position: relative;
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) 42px;
  gap: 16px;
  align-items: center;
  min-height: 118px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--card-shadow);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.link-card:hover {
  border-color: rgba(11, 95, 232, 0.38);
  box-shadow: var(--shadow);
}

.link-card.is-disabled {
  cursor: default;
}

.link-card.is-disabled .card-action {
  color: var(--muted);
  background: var(--surface-soft);
}

.link-card.is-featured::before {
  content: "Destaque";
  position: absolute;
  top: -10px;
  left: 20px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  font-size: 11px;
  font-weight: 900;
}

.card-image-wrap {
  overflow: hidden;
  width: 86px;
  height: 86px;
  border-radius: 16px;
  background: var(--surface-soft);
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-content {
  min-width: 0;
}

.card-eyebrow,
.card-subtitle,
.card-price {
  margin: 0;
}

.card-eyebrow {
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-content h3 {
  margin: 4px 0 2px;
  color: var(--text);
  font-size: 19px;
  font-weight: 900;
  line-height: 1.15;
}

.card-subtitle {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.card-price {
  margin-top: 7px;
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}

.item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.item-tags span {
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--brand-dark);
  background: var(--surface-soft);
  font-size: 11px;
  font-weight: 800;
}

.card-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #ffffff;
  background: var(--brand);
}

.card-action svg {
  width: 19px;
  height: 19px;
}

.empty-state {
  max-width: 520px;
  margin: 54px auto 0;
  text-align: center;
}

.empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin-bottom: 16px;
  border-radius: 50%;
  color: var(--brand);
  background: var(--surface);
  box-shadow: var(--card-shadow);
}

.empty-state h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 900;
}

.empty-state p {
  margin: 8px 0 18px;
  color: var(--muted);
}

.clear-button {
  min-height: 42px;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: var(--brand);
  font-weight: 900;
  cursor: pointer;
}

.hub-footer {
  width: min(calc(100% - 32px), 1120px);
  margin: 0 auto;
  padding: 12px 0 34px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

@media (max-width: 760px) {
  .hub-shell {
    width: min(calc(100% - 20px), 480px);
    padding-top: 74px;
  }

  .top-actions {
    top: 16px;
    right: auto;
    left: 16px;
  }

  .profile-avatar {
    width: 86px;
    height: 86px;
  }

  .profile-section h1 {
    font-size: 22px;
    max-width: 350px;
  }

  .profile-eyebrow {
    margin-top: 18px;
    font-size: 12px;
  }

  .profile-bio {
    font-size: 14px;
  }

  .social-row {
    margin-top: 16px;
  }

  .search-section {
    margin: 26px auto 28px;
  }

  .search-box {
    min-height: 52px;
    border-radius: 18px;
  }

  .filter-row {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
  }

  .filter-chip {
    flex: 0 0 auto;
  }

  .state-heading {
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .state-heading span {
    display: none;
  }

  .cards-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .link-card {
    grid-template-columns: 68px minmax(0, 1fr) 34px;
    min-height: 86px;
    gap: 12px;
    padding: 10px;
    border-radius: 12px;
  }

  .link-card.is-featured::before {
    display: none;
  }

  .card-image-wrap {
    width: 58px;
    height: 58px;
    border-radius: 8px;
  }

  .card-eyebrow,
  .card-subtitle,
  .card-price,
  .item-tags {
    display: none;
  }

  .card-content h3 {
    margin: 0;
    font-size: 16px;
    text-align: center;
  }

  .card-action {
    width: 34px;
    height: 34px;
    color: var(--muted);
    background: transparent;
  }

  .card-action svg {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 390px) {
  .profile-section h1 {
    font-size: 20px;
  }

  .social-button {
    padding-inline: 12px;
  }
}
