* {
  box-sizing: border-box;
}

:root {
  --purple: #4d21df;
  --purple-2: #6332ef;
  --purple-soft: #f0ecff;
  --text: #11183d;
  --muted: #6f7693;
  --border: #e5e8f1;
  --bg: #f7f8fc;
  --green: #249b68;
  --shadow: 0 4px 18px rgba(31, 39, 79, .05);
}

html, body {
  margin: 0;
  min-height: 100%;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
}

button, input {
  font: inherit;
}

button, a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

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

.topbar {
  height: 64px;
  padding: 0 34px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 32px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
}

.brand-name {
  font-size: 17px;
  font-weight: 800;
  white-space: nowrap;
  letter-spacing: -.3px;
}

.brand-mark {
  width: 30px;
  height: 30px;
  position: relative;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}

.main-nav {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
}

.main-nav a {
  height: 100%;
  display: flex;
  align-items: center;
  font-size: 12px;
  font-weight: 500;
  position: relative;
  white-space: nowrap;
}

.main-nav a.active {
  color: var(--purple);
  font-weight: 700;
}

.main-nav a.active::after {
  content: "";
  position: absolute;
  height: 3px;
  background: var(--purple);
  border-radius: 3px 3px 0 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.global-search {
  height: 38px;
  width: min(340px, 25vw);
  background: #f1f3f8;
  border-radius: 20px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 8px;
}

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

.search-icon {
  color: #8189a5;
  font-size: 22px;
  line-height: 1;
}

.icon-button {
  border: 0;
  background: transparent;
  font-size: 23px;
  color: #293154;
  position: relative;
}

.notification i {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f03f68;
  right: 0;
  top: 0;
}

.profile-menu {
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #d7dce8;
  display: grid;
  place-items: center;
  color: #3c7d61;
  background: #eef7f2;
  font-size: 20px;
}

.chevron {
  font-size: 15px;
  color: #5e6680;
}

.mobile-menu {
  display: none;
  border: 0;
  background: transparent;
  font-size: 23px;
}

.page-shell {
  width: min(1410px, calc(100% - 68px));
  margin: 8px auto 22px;
  display: grid;
  grid-template-columns: 278px minmax(0, 1fr) 304px;
  gap: 22px;
  align-items: start;
}

.sidebar {
  min-width: 0;
}

.business-card,
.assistant-card,
.card-panel,
.quote-card,
.premium-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.business-card {
  overflow: hidden;
}

.cover {
  height: 102px;
  background:
    linear-gradient(135deg, rgba(37, 94, 50, .15), rgba(102, 150, 104, .04)),
    url("https://images.unsplash.com/photo-1497250681960-ef046c08a56e?auto=format&fit=crop&w=900&q=80") center/cover;
}

.business-avatar {
  width: 76px;
  height: 76px;
  margin: -34px 0 0 18px;
  border: 7px solid #fff;
  border-radius: 50%;
  background: #f2f8f4;
  color: #267451;
  display: grid;
  place-items: center;
  font-size: 40px;
  position: relative;
  z-index: 1;
}

.business-content {
  padding: 0 16px 15px;
}

.business-content h2 {
  margin: 10px 0 5px;
  font-size: 14px;
}

.verified {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  color: white;
  background: #6040dc;
  font-size: 10px;
  vertical-align: 1px;
}

.tagline {
  margin: 0 0 14px;
  color: #68708d;
  font-size: 11px;
  line-height: 1.45;
}

.business-meta {
  display: grid;
  gap: 9px;
  color: #66708c;
  font-size: 10px;
}

.business-meta div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stats {
  margin: 17px 0 14px;
  padding: 13px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
}

.stats div + div {
  border-left: 1px solid var(--border);
}

.stats strong,
.stats span {
  display: block;
}

.stats strong {
  font-size: 12px;
}

.stats span {
  color: #757c94;
  font-size: 9px;
  margin-top: 4px;
}

.profile-button,
.premium-card button {
  width: 100%;
  height: 35px;
  border: 1px solid #ded9f9;
  color: var(--purple);
  background: #f6f3ff;
  border-radius: 7px;
  font-weight: 700;
  font-size: 11px;
}

.side-nav {
  margin-top: 12px;
  padding: 0 10px;
}

.side-nav a {
  min-height: 36px;
  border-radius: 8px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 12px;
  color: #252c4e;
}

.side-nav a:hover {
  background: #f6f4ff;
}

.side-nav a.selected {
  color: var(--purple);
  background: var(--purple-soft);
  font-weight: 700;
}

.side-nav .messages {
  position: relative;
}

.side-nav b {
  margin-left: auto;
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  color: white;
  background: #ec3b68;
  border-radius: 50%;
  font-size: 9px;
}

.side-divider {
  height: 1px;
  background: var(--border);
  margin: 11px 7px;
}

.premium-card {
  margin: 19px 10px 0;
  padding: 16px 13px 14px;
  background: #faf8ff;
}

.sparkle {
  color: var(--purple);
}

.premium-card .sparkle {
  font-size: 23px;
}

.premium-card h3 {
  font-size: 11px;
  margin: 4px 0;
}

.premium-card p {
  margin: 0 0 12px;
  color: #7a8099;
  font-size: 9px;
  line-height: 1.45;
}

.premium-card button {
  background: #fff;
}

.content {
  min-width: 0;
}

.page-heading {
  padding: 5px 0 16px;
}

.page-heading h1 {
  margin: 0;
  font-size: 23px;
  letter-spacing: -.7px;
}

.page-heading p {
  margin: 4px 0 0;
  color: #6d7591;
  font-size: 12px;
}

.supplier-search {
  height: 51px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  padding: 0 7px 0 16px;
  box-shadow: var(--shadow);
}

.supplier-search .sparkle {
  width: 33px;
  height: 33px;
  border-radius: 50%;
  background: #f4f0ff;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  font-size: 17px;
}

.supplier-search input {
  border: 0;
  outline: 0;
  min-width: 0;
  flex: 1;
  padding: 0 12px;
  font-size: 12px;
  color: var(--text);
}

.supplier-search button {
  width: 45px;
  height: 43px;
  border: 0;
  border-radius: 10px;
  background: var(--purple);
  color: white;
  font-size: 25px;
  line-height: 1;
}

.filters {
  display: flex;
  gap: 10px;
  padding: 12px 0 16px;
  overflow-x: auto;
  scrollbar-width: none;
}

.filters::-webkit-scrollbar {
  display: none;
}

.filter {
  flex: 0 0 auto;
  height: 37px;
  padding: 0 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: #27304e;
  font-size: 10px;
  font-weight: 600;
}

.filter span {
  margin-left: 9px;
  color: #707791;
}

.verified-filter {
  color: #2a805c;
}

.verified-filter.active {
  background: #eafaf3;
  border-color: #2a805c;
  font-weight: 700;
}

.tabs-row {
  min-height: 47px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tabs {
  height: 47px;
  display: flex;
  gap: 25px;
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  border: 0;
  background: transparent;
  padding: 0;
  color: #6c738c;
  font-size: 10px;
  white-space: nowrap;
  position: relative;
}

.tab.active {
  color: var(--purple);
  font-weight: 700;
}

.tab.active::after {
  content: "";
  position: absolute;
  height: 2px;
  background: var(--purple);
  border-radius: 2px;
  left: 0;
  right: 0;
  bottom: 0;
}

.sort {
  border: 0;
  background: transparent;
  white-space: nowrap;
  color: #717993;
  font-size: 10px;
}

.sort strong {
  color: #343b58;
}

.supplier-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding-top: 14px;
}

.supplier-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  min-width: 0;
  box-shadow: 0 3px 13px rgba(31, 39, 79, .035);
}

.card-image {
  height: 151px;
  position: relative;
  background: #e8e8e8 center/cover no-repeat;
}

.card-badge {
  position: absolute;
  top: 9px;
  left: 9px;
  background: #e9fbf2;
  border: 1px solid #bcebd1;
  color: #25825b;
  border-radius: 7px;
  padding: 5px 8px;
  font-size: 9px;
  font-weight: 700;
}

.match-badge {
  background: #f1edff;
  border-color: #d9d0ff;
  color: #5b35d5;
}

.favorite {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 25px;
  height: 25px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.94);
  color: #4b5474;
  font-size: 17px;
  display: grid;
  place-items: center;
}

.favorite.active {
  color: #e33f71;
}

.card-body {
  padding: 10px 10px 9px;
}

.card-company {
  display: flex;
  align-items: center;
  gap: 8px;
}

.company-logo {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: white;
  background: #26895f;
  font-size: 14px;
}

.company-logo.orange { background: #b87528; }
.company-logo.blue { background: #2169ac; }
.company-logo.purple { background: #6951c6; }
.company-logo.red { background: #bc4c49; }
.company-logo.green { background: #258b61; }

.card-company h3 {
  margin: 0;
  font-size: 11px;
}

.card-company p {
  margin: 3px 0 0;
  color: #747b94;
  font-size: 9px;
}

.tags {
  display: flex;
  gap: 5px;
  margin: 10px 0 9px;
}

.tags span {
  background: #f0f2f7;
  color: #717890;
  padding: 4px 7px;
  border-radius: 6px;
  font-size: 8px;
}

.card-details {
  display: flex;
  justify-content: space-between;
  gap: 5px;
  color: #727a93;
  font-size: 8px;
  margin-bottom: 9px;
}

.card-details strong {
  color: #3b435f;
  font-size: 9px;
}

.card-details .rating {
  color: #e6bd2e;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.card-actions button {
  height: 32px;
  border-radius: 7px;
  font-size: 9px;
  font-weight: 700;
}

.view-btn {
  color: var(--purple);
  background: #fff;
  border: 1px solid #bcaef5;
}

.quote-btn {
  color: white;
  background: var(--purple);
  border: 1px solid var(--purple);
}

.rightbar {
  display: grid;
  gap: 13px;
  min-width: 0;
}

.assistant-card {
  padding: 15px;
}

.assistant-heading {
  display: flex;
  gap: 10px;
}

.assistant-icon {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--purple);
  background: #f0ebff;
  font-size: 19px;
}

.assistant-heading h3 {
  margin: 0;
  font-size: 13px;
}

.assistant-heading small {
  color: #6842db;
  background: #f1edff;
  padding: 3px 5px;
  border-radius: 6px;
  font-size: 8px;
  margin-left: 4px;
}

.assistant-heading p {
  margin: 5px 0 13px;
  color: #747b94;
  font-size: 9px;
  line-height: 1.45;
}

.assistant-input {
  min-height: 75px;
  border: 1px solid #dadde8;
  border-radius: 9px;
  padding: 10px 39px 10px 12px;
  position: relative;
  color: #555e7a;
  font-size: 9px;
  line-height: 1.45;
}

.assistant-input button {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 31px;
  height: 31px;
  border: 0;
  border-radius: 8px;
  background: var(--purple);
  color: white;
}

.card-panel {
  overflow: hidden;
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 15px 9px;
}

.panel-title h3 {
  margin: 0;
  font-size: 12px;
}

.panel-title a {
  color: var(--purple);
  font-size: 9px;
  font-weight: 700;
}

.recommendation,
.category-row {
  min-height: 55px;
  padding: 8px 15px;
  display: grid;
  grid-template-columns: 31px 1fr 10px;
  gap: 10px;
  align-items: center;
  border-top: 1px solid #eff0f5;
}

.recommendation > span:nth-child(2),
.category-row > span:nth-child(2) {
  min-width: 0;
}

.rec-icon,
.category-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 14px;
}

.green { background: #e8f8ef; color: #2b9a67; }
.orange { background: #fff1df; color: #df8b29; }
.purple { background: #eee9ff; color: #5d35d8; }
.mint { background: #e9f8f0; color: #2e9c68; }
.pink { background: #fff0f5; color: #dd527e; }
.blue { background: #eaf2ff; color: #3978bd; }
.red { background: #ffebeb; color: #db4d4d; }

.recommendation strong,
.category-row strong {
  display: block;
  font-size: 9px;
  color: #2b3150;
}

.recommendation small,
.category-row small {
  display: block;
  margin-top: 4px;
  color: #7a8199;
  font-size: 8px;
}

.recommendation > b,
.category-row > b {
  color: #65708c;
  font-size: 18px;
  font-weight: 400;
}

.quote-card {
  padding: 18px 16px;
  background: #fff;
}

.quote-mark {
  color: var(--purple);
  font-size: 36px;
  height: 23px;
  line-height: 30px;
  font-weight: 700;
}

.quote-card p {
  color: #69718d;
  font-size: 10px;
  line-height: 1.55;
  font-style: italic;
  margin: 4px 0 10px;
}

.quote-card strong {
  font-size: 9px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 20px);
  padding: 11px 16px;
  background: #151a38;
  color: white;
  border-radius: 9px;
  font-size: 11px;
  opacity: 0;
  pointer-events: none;
  transition: .25s ease;
  z-index: 100;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.hidden {
  display: none !important;
}

/* TABLET */
@media (max-width: 1200px) {
  .topbar {
    padding: 0 20px;
    gap: 20px;
  }

  .main-nav {
    gap: 17px;
  }

  .page-shell {
    width: min(1100px, calc(100% - 32px));
    grid-template-columns: 235px minmax(0, 1fr);
  }

  .rightbar {
    grid-column: 2;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .assistant-card {
    grid-column: 1 / -1;
  }

  .quote-card {
    grid-column: 1 / -1;
  }

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

  .global-search {
    width: 190px;
  }
}

/* MOBILE */
@media (max-width: 800px) {
  .topbar {
    height: 60px;
    padding: 0 14px;
  }

  .brand-name {
    font-size: 14px;
  }

  .main-nav,
  .global-search,
  .profile-menu {
    display: none;
  }

  .top-actions {
    margin-left: auto;
  }

  .mobile-menu {
    display: block;
  }

  .page-shell {
    width: 100%;
    margin: 0;
    display: block;
  }

  .sidebar {
    display: none;
  }

  .content {
    padding: 14px;
  }

  .page-heading h1 {
    font-size: 20px;
  }

  .page-heading p {
    line-height: 1.45;
  }

  .tabs-row {
    overflow: hidden;
  }

  .sort {
    display: none;
  }

  .tabs {
    width: 100%;
    gap: 21px;
  }

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

  .card-image {
    height: 190px;
  }

  .rightbar {
    display: grid;
    grid-template-columns: 1fr;
    padding: 0 14px 18px;
  }

  .assistant-card,
  .quote-card {
    grid-column: auto;
  }

  .categories,
  .recommendations {
    width: 100%;
  }

  .filters {
    padding-bottom: 12px;
  }
}

/* SMALL MOBILE */
@media (max-width: 420px) {
  .brand-name {
    font-size: 13px;
  }

  .supplier-search {
    height: 48px;
  }

  .supplier-search button {
    width: 40px;
    height: 40px;
  }

  .card-image {
    height: 170px;
  }
}
