:root {
  --bg: #07111f;
  --bg-deep: #101827;
  --panel: rgba(16, 24, 39, 0.72);
  --panel-strong: #172338;
  --ink: #f8fafc;
  --muted: #a9b7c9;
  --line: rgba(226, 232, 240, 0.13);
  --brand: #ff4f7b;
  --brand-deep: #ffb15c;
  --accent: #39d8c8;
  --accent-soft: rgba(57, 216, 200, 0.14);
  --gold: #ffd166;
  --card: rgba(248, 250, 252, 0.08);
  --card-strong: rgba(248, 250, 252, 0.12);
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

body[data-theme="light"] {
  --bg: #f3f7fb;
  --bg-deep: #dce8f4;
  --panel: rgba(255, 255, 255, 0.78);
  --panel-strong: #ffffff;
  --ink: #111827;
  --muted: #596579;
  --line: rgba(15, 23, 42, 0.12);
  --brand: #e9426f;
  --brand-deep: #b45309;
  --accent: #0f8f85;
  --accent-soft: rgba(15, 143, 133, 0.12);
  --gold: #b7791f;
  --card: rgba(255, 255, 255, 0.72);
  --card-strong: rgba(255, 255, 255, 0.94);
  --shadow: 0 24px 64px rgba(30, 41, 59, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 8% 8%, rgba(255, 79, 123, 0.34), transparent 28%),
    radial-gradient(circle at 85% 12%, rgba(57, 216, 200, 0.24), transparent 24%),
    radial-gradient(circle at 55% 95%, rgba(255, 209, 102, 0.14), transparent 30%),
    linear-gradient(135deg, #050915 0%, var(--bg) 46%, var(--bg-deep) 100%);
}

body[data-theme="light"] {
  background:
    radial-gradient(circle at 8% 8%, rgba(233, 66, 111, 0.18), transparent 28%),
    radial-gradient(circle at 85% 12%, rgba(15, 143, 133, 0.16), transparent 24%),
    radial-gradient(circle at 55% 95%, rgba(183, 121, 31, 0.12), transparent 30%),
    linear-gradient(135deg, #ffffff 0%, var(--bg) 50%, var(--bg-deep) 100%);
}

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

button,
input,
select {
  font: inherit;
}

.page-shell {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.topbar,
.hero-copy,
.hero-panel,
.search-panel,
.category-band,
.story-panel,
.admin-shell,
.featured-panel,
.profile-shell,
.join-shell,
.site-footer {
  background: var(--panel);
  backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  padding: 16px 20px;
  border-radius: 999px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--brand), #7c3aed 54%, var(--accent));
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
}

.topnav,
.topbar-actions,
.top-search,
.hero-actions,
.hero-stats,
.chip-row,
.results-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.topnav a {
  color: var(--muted);
  font-size: 0.95rem;
}

.top-search {
  flex: 1 1 280px;
  max-width: 420px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(7, 17, 31, 0.56);
}

.top-search input {
  min-width: 0;
  flex: 1;
  border: none;
  outline: none;
  color: var(--ink);
  background: transparent;
  padding: 8px 10px 8px 14px;
}

.top-search input::placeholder {
  color: rgba(169, 183, 201, 0.7);
}

.top-search button {
  padding: 9px 14px;
  color: var(--accent);
  background: rgba(57, 216, 200, 0.13);
  border: 1px solid rgba(57, 216, 200, 0.2);
}

.login-icon-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(248, 250, 252, 0.08);
  transition: transform 140ms ease, background 140ms ease;
}

.login-icon-button:hover {
  transform: translateY(-1px);
  background: rgba(57, 216, 200, 0.13);
}

.login-icon-button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.theme-toggle {
  gap: 10px;
  color: var(--muted);
  background: rgba(248, 250, 252, 0.08);
  border: 1px solid var(--line);
}

.theme-toggle-track {
  position: relative;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: rgba(57, 216, 200, 0.18);
  border: 1px solid rgba(57, 216, 200, 0.24);
}

.theme-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(57, 216, 200, 0.45);
  transition: transform 180ms ease, background 180ms ease;
}

body[data-theme="light"] .theme-toggle-thumb {
  transform: translateX(20px);
  background: var(--brand);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.85fr);
  gap: 18px;
  margin-bottom: 18px;
}

.hero-copy,
.hero-panel,
.search-panel,
.category-band,
.story-panel,
.admin-shell,
.featured-panel,
.profile-shell,
.join-shell,
.site-footer {
  border-radius: var(--radius-xl);
}

.hero-copy {
  position: relative;
  overflow: hidden;
  padding: 24px 28px;
}

.hero-copy::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(57, 216, 200, 0.32), transparent 68%);
}

.hero-panel {
  padding: 22px;
}

.eyebrow,
.panel-kicker {
  margin: 0 0 12px;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-deep);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Baskerville", "Iowan Old Style", serif;
  line-height: 1.02;
}

h1 {
  max-width: 12ch;
  font-size: clamp(2.05rem, 4.7vw, 3.9rem);
}

h2 {
  font-size: clamp(1.45rem, 2.4vw, 2.05rem);
}

h3 {
  font-size: 1.35rem;
}

.hero-text,
.section-text {
  color: var(--muted);
  line-height: 1.75;
}

.hero-text {
  max-width: 60ch;
  margin: 14px 0 0;
  font-size: 0.98rem;
}

.hero-intro {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  font-weight: 700;
}

.hero-actions,
.hero-stats {
  margin-top: 16px;
}

.stat-chip,
.chip-button,
.trust-badge,
.rating-pill {
  border-radius: 999px;
}

.stat-chip {
  padding: 10px 14px;
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.12), rgba(248, 250, 252, 0.05));
  border: 1px solid var(--line);
}

.stat-chip strong,
.stat-chip span {
  display: block;
}

.stat-chip span {
  margin-top: 4px;
  font-size: 0.8rem;
  color: var(--muted);
}

.hero-panel h2 {
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.panel-heading,
.section-heading,
.listing-card-header,
.listing-card-footer,
.featured-item,
.benefit-item,
.brief-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.section-heading {
  align-items: end;
  margin-bottom: 20px;
}

.section-text {
  max-width: 58ch;
  margin: 0;
}

.discovery-shell {
  margin-bottom: 24px;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(180px, 0.8fr);
  gap: 12px;
  padding: 12px;
}

.search-field {
  display: grid;
  gap: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.search-field input,
.search-field select,
.join-form input,
.join-form select,
.profile-form input,
.profile-form select,
.profile-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  background: rgba(7, 17, 31, 0.62);
}

.search-field input::placeholder,
.join-form input::placeholder {
  color: rgba(169, 183, 201, 0.68);
}

.search-field input:focus,
.search-field select:focus,
.join-form input:focus,
.join-form select:focus,
.profile-form input:focus,
.profile-form select:focus,
.profile-form textarea:focus {
  outline: 2px solid rgba(57, 216, 200, 0.2);
  border-color: rgba(57, 216, 200, 0.56);
}

.chip-row {
  margin-top: 18px;
}

.chip-button {
  padding: 11px 16px;
  border: 1px solid var(--line);
  background: rgba(248, 250, 252, 0.08);
  color: var(--muted);
  cursor: pointer;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}

.chip-button.active,
.chip-button:hover {
  transform: translateY(-1px);
  border-color: rgba(57, 216, 200, 0.4);
  background: rgba(57, 216, 200, 0.13);
  color: var(--accent);
}

.results-meta {
  justify-content: space-between;
  margin: 20px 0 18px;
  color: var(--muted);
}

.listing-grid,
.category-grid,
.product-grid,
.featured-list,
.brief-list,
.benefit-list {
  display: grid;
  gap: 16px;
}

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

.listing-card,
.category-card,
.product-card,
.brief-item,
.featured-item,
.benefit-item,
.profile-card,
.avatar-card,
.confirmation-card {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.listing-card,
.category-card,
.product-card {
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.listing-card:hover,
.category-card:hover,
.product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(57, 216, 200, 0.32);
  background: var(--card-strong);
}

.listing-card,
.category-card,
.product-card {
  border-radius: var(--radius-lg);
}

.listing-card {
  padding: 20px;
}

.listing-card-header {
  align-items: start;
  margin-bottom: 14px;
}

.listing-card-header p,
.listing-card-body p,
.featured-copy p,
.brief-item p,
.benefit-item p,
.confirmation-card,
.category-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.listing-card-body {
  display: grid;
  gap: 12px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(57, 216, 200, 0.12);
  color: var(--accent);
  font-size: 0.8rem;
}

.listing-card-footer {
  align-items: center;
  margin-top: 18px;
}

.price-note {
  font-weight: 700;
  color: var(--ink);
}

.trust-badge,
.rating-pill {
  padding: 8px 12px;
  font-size: 0.85rem;
}

.trust-badge {
  background: rgba(248, 250, 252, 0.1);
  border: 1px solid var(--line);
}

.rating-pill {
  background: rgba(255, 209, 102, 0.16);
  color: var(--gold);
  border: 1px solid rgba(255, 209, 102, 0.18);
}

.category-band {
  margin-bottom: 24px;
  padding: 28px;
}

.product-shell {
  margin-bottom: 24px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.product-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.filter-panel {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(7, 17, 31, 0.54);
}

.filter-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.filter-panel select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: rgba(7, 17, 31, 0.62);
}

.filter-panel select:focus {
  outline: 2px solid rgba(57, 216, 200, 0.2);
  border-color: rgba(57, 216, 200, 0.56);
}

.product-results {
  min-width: 0;
}

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

.product-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.product-card.is-selected {
  border-color: rgba(57, 216, 200, 0.55);
  background:
    linear-gradient(135deg, rgba(57, 216, 200, 0.12), rgba(255, 79, 123, 0.06)),
    var(--card);
}

.product-visual {
  display: grid;
  place-items: center;
  min-height: 150px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 79, 123, 0.28), transparent 34%),
    radial-gradient(circle at 82% 18%, rgba(57, 216, 200, 0.2), transparent 30%),
    linear-gradient(135deg, rgba(248, 250, 252, 0.1), rgba(248, 250, 252, 0.03));
  border: 1px solid var(--line);
}

.product-visual span {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border-radius: 22px;
  color: var(--ink);
  background: linear-gradient(135deg, var(--brand), #7c3aed);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.product-card-body {
  display: grid;
  gap: 10px;
}

.product-card-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.rate-line strong {
  color: var(--gold);
}

.compare-mini-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(57, 216, 200, 0.24);
  border-radius: 18px;
  color: var(--muted);
  background: rgba(57, 216, 200, 0.08);
  line-height: 1.5;
}

.compare-mini-panel strong {
  color: var(--ink);
}

.compare-mini-panel span {
  color: var(--accent);
}

.compare-panel {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(7, 17, 31, 0.48);
}

.compare-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.compare-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.compare-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.compare-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.compare-table th,
.compare-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.compare-table th {
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(57, 216, 200, 0.08);
}

.compare-table td {
  color: var(--muted);
}

.compare-table tr:last-child td {
  border-bottom: none;
}

.compare-table tr.is-l1 td {
  color: var(--ink);
  background: rgba(255, 209, 102, 0.1);
}

.compare-table tr.is-chosen td {
  border-bottom-color: rgba(57, 216, 200, 0.28);
  background: rgba(57, 216, 200, 0.1);
}

.compare-table tr.is-l1 td:nth-child(2),
.compare-table tr.is-l1 td:last-child {
  color: var(--gold);
  font-weight: 800;
}

.compare-radio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  white-space: nowrap;
}

.compare-radio input {
  accent-color: var(--accent);
}

.addon-panel {
  margin-top: 20px;
}

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

.addon-card,
.cart-panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.07);
}

.addon-card {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.addon-card h4,
.addon-card p {
  margin: 0;
}

.addon-card p {
  color: var(--muted);
  line-height: 1.55;
}

.cart-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.cart-head,
.cart-total,
.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cart-head strong,
.cart-total strong,
.cart-item strong {
  color: var(--ink);
}

.cart-head span,
.cart-item span,
.cart-item small {
  color: var(--muted);
}

.cart-list {
  display: grid;
  gap: 10px;
}

.cart-item {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(7, 17, 31, 0.36);
}

.cart-item div {
  display: grid;
  gap: 3px;
}

.cart-item button {
  padding: 8px 10px;
  color: var(--gold);
  background: rgba(255, 209, 102, 0.12);
  border: 1px solid rgba(255, 209, 102, 0.2);
}

.cart-total {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

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

.category-card {
  display: block;
  padding: 20px;
  width: 100%;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.category-card strong,
.featured-copy strong {
  display: block;
  margin-bottom: 8px;
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.story-panel,
.featured-panel {
  padding: 28px;
}

.admin-shell {
  margin-bottom: 24px;
  padding: 28px;
}

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

.admin-card {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.admin-card label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.admin-card input,
.admin-card select,
.admin-card textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  background: rgba(7, 17, 31, 0.62);
  font: inherit;
}

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

.admin-check-field {
  min-height: 48px;
  align-items: center;
  align-self: end;
  display: flex !important;
  flex-direction: row !important;
  gap: 10px !important;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  background: rgba(7, 17, 31, 0.46);
}

.admin-check-field input {
  width: auto;
  accent-color: var(--accent);
}

.admin-list {
  display: grid;
  gap: 10px;
  max-height: 260px;
  overflow: auto;
}

.admin-list-row {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.06);
}

.admin-list-row div {
  display: grid;
  gap: 4px;
}

.admin-list-row strong {
  color: var(--ink);
}

.admin-list-row span {
  color: var(--muted);
  line-height: 1.5;
}

.vendor-shell {
  margin-bottom: 24px;
  padding: 28px;
}

.vendor-login-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.6fr);
  gap: 18px;
}

.vendor-login-card,
.vendor-dashboard-card,
.vendor-enquiry-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.16);
}

.vendor-login-card {
  display: grid;
  gap: 14px;
  align-self: start;
}

.vendor-login-card label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.vendor-login-card input,
.vendor-login-card select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  background: rgba(7, 17, 31, 0.62);
  font: inherit;
}

.vendor-login-note {
  color: var(--muted);
  line-height: 1.6;
}

.vendor-dashboard-card,
.vendor-enquiry-list {
  display: grid;
  gap: 14px;
}

.vendor-dashboard-head,
.vendor-enquiry-top,
.vendor-enquiry-meta,
.vendor-enquiry-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.vendor-dashboard-head p,
.vendor-enquiry-card p {
  color: var(--muted);
}

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

.vendor-metrics article,
.vendor-product-strip {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.06);
}

.vendor-metrics strong {
  display: block;
  color: var(--ink);
  font-size: 1.35rem;
}

.vendor-metrics span,
.vendor-enquiry-meta span {
  color: var(--muted);
  font-size: 0.9rem;
}

.vendor-enquiry-card {
  display: grid;
  gap: 12px;
}

.vendor-enquiry-top h4 {
  margin-top: 8px;
  color: var(--ink);
}

.benefit-item,
.brief-item,
.featured-item,
.confirmation-card {
  border-radius: 20px;
  padding: 14px;
}

.benefit-item,
.brief-item,
.featured-item {
  align-items: start;
}

.benefit-item strong,
.brief-item strong {
  display: block;
  margin-bottom: 4px;
}

.metric {
  min-width: 90px;
  text-align: right;
  font-weight: 700;
  color: var(--brand-deep);
}

.join-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  padding: 30px;
}

.profile-shell {
  margin-bottom: 24px;
  padding: 30px;
}

.profile-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.75fr);
  gap: 18px;
}

.profile-hero-card,
.profile-score-card,
.profile-mini-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(248, 250, 252, 0.12), rgba(248, 250, 252, 0.04)),
    rgba(7, 17, 31, 0.45);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.profile-hero-card {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 240px;
  padding: 26px;
  grid-row: span 2;
}

.profile-avatar-large {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 128px;
  height: 128px;
  border-radius: 36px;
  background:
    linear-gradient(135deg, rgba(255, 79, 123, 0.42), rgba(124, 58, 237, 0.28), rgba(57, 216, 200, 0.22)),
    rgba(248, 250, 252, 0.08);
  background-position: center;
  background-size: cover;
  color: var(--ink);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  border: 1px solid rgba(57, 216, 200, 0.28);
}

.profile-hero-card h3 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.profile-hero-card p,
.profile-score-card p,
.profile-mini-card p {
  color: var(--muted);
  line-height: 1.65;
}

.profile-score-card,
.profile-mini-card {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 22px;
}

.profile-score-card .primary-button {
  justify-self: start;
}

.profile-form {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}

.avatar-card,
.profile-card {
  border-radius: var(--radius-lg);
  padding: 20px;
}

.avatar-card {
  display: grid;
  align-content: start;
  gap: 18px;
}

.avatar-preview {
  display: grid;
  place-items: center;
  width: 160px;
  height: 160px;
  margin: 0 auto;
  border: 1px solid rgba(57, 216, 200, 0.28);
  border-radius: 44px;
  background:
    linear-gradient(135deg, rgba(255, 79, 123, 0.28), rgba(57, 216, 200, 0.18)),
    rgba(248, 250, 252, 0.08);
  background-position: center;
  background-size: cover;
  color: var(--ink);
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.avatar-upload {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px dashed rgba(57, 216, 200, 0.34);
  border-radius: 18px;
  color: var(--muted);
  cursor: pointer;
}

.avatar-upload strong {
  color: var(--accent);
}

.avatar-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  text-align: center;
}

.form-section-title {
  margin-bottom: 18px;
}

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

.profile-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.span-2,
.span-full {
  grid-column: 1 / -1;
}

.service-builder {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 16px;
  align-items: end;
}

.service-table-wrap {
  margin-top: 18px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.service-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

.service-table th,
.service-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.service-table th {
  color: var(--accent);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(57, 216, 200, 0.08);
}

.service-table td {
  color: var(--muted);
}

.service-table tr:last-child td {
  border-bottom: none;
}

.table-action {
  padding: 8px 12px;
  color: var(--brand-deep);
  background: rgba(255, 209, 102, 0.12);
  border: 1px solid rgba(255, 209, 102, 0.2);
}

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

.profile-actions span {
  color: var(--muted);
}

.modal-open {
  overflow: hidden;
}

.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  padding: 24px;
}

.modal-shell.is-open {
  display: grid;
  place-items: center;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 15%, rgba(255, 79, 123, 0.22), transparent 28%),
    rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(12px);
}

.profile-modal {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  max-height: min(88vh, 980px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(23, 35, 56, 0.96), rgba(7, 17, 31, 0.96)),
    var(--bg);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.5);
}

.modal-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 26px;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 17, 31, 0.86);
  backdrop-filter: blur(16px);
}

.profile-modal .profile-form {
  padding: 24px;
}

.icon-button {
  color: var(--ink);
  background: rgba(248, 250, 252, 0.08);
  border: 1px solid var(--line);
}

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

.join-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.category-selector {
  display: grid;
  gap: 12px;
  grid-column: 1 / -1;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(7, 17, 31, 0.42);
}

.category-selector-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.category-selector-head small {
  color: var(--accent);
}

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

.category-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.08);
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.category-option:hover {
  transform: translateY(-1px);
  border-color: rgba(57, 216, 200, 0.34);
}

.category-option input {
  width: auto;
  margin: 0;
}

.category-option.active {
  background: rgba(57, 216, 200, 0.13);
  border-color: rgba(57, 216, 200, 0.4);
}

.join-form button {
  align-self: end;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto minmax(220px, 0.5fr);
  gap: 24px;
  align-items: center;
  margin-top: 24px;
  padding: 24px;
}

.footer-brand {
  margin-bottom: 12px;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-links a {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(248, 250, 252, 0.08);
}

.footer-links a:hover {
  color: var(--accent);
  background: rgba(57, 216, 200, 0.13);
}

.copyright {
  text-align: right;
}

button,
.primary-button,
.secondary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  padding: 13px 18px;
  cursor: pointer;
  transition: transform 140ms ease, opacity 140ms ease, background 140ms ease;
}

button:hover,
.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover {
  transform: translateY(-1px);
}

.primary-button {
  background: linear-gradient(135deg, var(--brand), #7c3aed);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(255, 79, 123, 0.24);
}

.secondary-button {
  background: rgba(57, 216, 200, 0.13);
  color: var(--accent);
  border: 1px solid rgba(57, 216, 200, 0.2);
}

.ghost-button {
  background: rgba(248, 250, 252, 0.08);
  color: var(--ink);
  border: 1px solid var(--line);
}

body[data-theme="light"] .top-search,
body[data-theme="light"] .filter-panel,
body[data-theme="light"] .compare-panel,
body[data-theme="light"] .category-selector,
body[data-theme="light"] .cart-item {
  background: rgba(255, 255, 255, 0.68);
}

body[data-theme="light"] .search-field input,
body[data-theme="light"] .search-field select,
body[data-theme="light"] .join-form input,
body[data-theme="light"] .join-form select,
body[data-theme="light"] .vendor-login-card input,
body[data-theme="light"] .vendor-login-card select,
body[data-theme="light"] .admin-card input,
body[data-theme="light"] .admin-card select,
body[data-theme="light"] .admin-card textarea,
body[data-theme="light"] .profile-form input,
body[data-theme="light"] .profile-form select,
body[data-theme="light"] .profile-form textarea,
body[data-theme="light"] .filter-panel select {
  background: rgba(255, 255, 255, 0.86);
}

body[data-theme="light"] .stat-chip,
body[data-theme="light"] .chip-button,
body[data-theme="light"] .ghost-button,
body[data-theme="light"] .theme-toggle,
body[data-theme="light"] .footer-links a,
body[data-theme="light"] .login-icon-button,
body[data-theme="light"] .category-option,
body[data-theme="light"] .admin-check-field,
body[data-theme="light"] .trust-badge,
body[data-theme="light"] .icon-button {
  background: rgba(255, 255, 255, 0.72);
}

body[data-theme="light"] .profile-hero-card,
body[data-theme="light"] .profile-score-card,
body[data-theme="light"] .profile-mini-card,
body[data-theme="light"] .product-visual,
body[data-theme="light"] .addon-card,
body[data-theme="light"] .vendor-login-card,
body[data-theme="light"] .vendor-dashboard-card,
body[data-theme="light"] .vendor-enquiry-card,
body[data-theme="light"] .vendor-metrics article,
body[data-theme="light"] .vendor-product-strip,
body[data-theme="light"] .admin-card,
body[data-theme="light"] .admin-list-row,
body[data-theme="light"] .cart-panel {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.54)),
    rgba(255, 255, 255, 0.72);
}

body[data-theme="light"] .profile-modal {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(236, 244, 252, 0.98)),
    var(--bg);
}

body[data-theme="light"] .modal-header {
  background: rgba(255, 255, 255, 0.86);
}

body[data-theme="light"] .modal-backdrop {
  background:
    radial-gradient(circle at 20% 15%, rgba(233, 66, 111, 0.18), transparent 28%),
    rgba(226, 232, 240, 0.7);
}

.confirmation-card {
  color: var(--muted);
}

.empty-state {
  padding: 28px;
  text-align: center;
}

@media (max-width: 1100px) {
  .listing-grid,
  .category-grid,
  .product-grid,
  .addon-grid,
  .admin-grid,
  .vendor-login-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-form {
    grid-template-columns: 1fr 1fr;
  }

  .profile-overview {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 900px) {
  .topbar,
  .hero,
  .showcase-grid,
  .join-shell,
  .site-footer,
  .search-panel {
    grid-template-columns: 1fr;
  }

  .topbar {
    position: static;
    border-radius: 28px;
    flex-direction: column;
    align-items: stretch;
  }

  .topnav,
  .topbar-actions,
  .top-search,
  .footer-links {
    justify-content: center;
  }

  .site-footer,
  .copyright {
    text-align: center;
  }

  .top-search {
    max-width: none;
    width: 100%;
  }

  .join-form {
    grid-template-columns: 1fr;
  }

  .profile-form,
  .form-grid,
  .profile-extra-grid,
  .admin-grid,
  .admin-form-grid,
  .vendor-login-grid,
  .vendor-metrics,
  .service-builder,
  .product-layout {
    grid-template-columns: 1fr;
  }

  .filter-panel {
    position: static;
  }

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

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

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 20px, 1280px);
  }

  .hero-copy,
  .hero-panel,
  .category-band,
  .story-panel,
  .admin-shell,
  .featured-panel,
  .profile-shell,
  .join-shell,
  .site-footer {
    padding: 22px;
  }

  .listing-grid,
  .category-grid,
  .product-grid,
  .addon-grid {
    grid-template-columns: 1fr;
  }

  .category-option-grid {
    grid-template-columns: 1fr;
  }

  .modal-shell {
    padding: 10px;
  }

  .profile-modal {
    max-height: 94vh;
    border-radius: 24px;
  }

  .modal-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-modal .profile-form {
    padding: 16px;
  }

  .profile-avatar-large {
    width: 104px;
    height: 104px;
    border-radius: 30px;
  }

  h1 {
    max-width: none;
  }
}
