:root {
  --bg: #f5f8ff;
  --surface: #ffffff;
  --surface-2: #eef4ff;
  --surface-dark: #1c1e54;
  --text: #061b31;
  --muted: #64748d;
  --line: #e5edf5;
  --primary: #533afd;
  --primary-dark: #4434d4;
  --ruby: #ea2261;
  --magenta: #f96bee;
  --success: #15be53;
  --shadow-lg: rgba(50, 50, 93, 0.18) 0 30px 60px -28px, rgba(0, 0, 0, 0.08) 0 20px 40px -24px;
  --shadow-md: rgba(50, 50, 93, 0.12) 0 16px 32px -20px, rgba(0, 0, 0, 0.06) 0 10px 18px -16px;
  --shadow-sm: rgba(50, 50, 93, 0.08) 0 10px 18px -12px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
}

html { scroll-behavior: smooth; }
body {
  background:
    radial-gradient(circle at top left, rgba(249, 107, 238, 0.10), transparent 26%),
    radial-gradient(circle at top right, rgba(83, 58, 253, 0.10), transparent 30%),
    var(--bg);
  color: var(--text);
  font-family: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-feature-settings: "ss01";
}

a { color: var(--primary); }
a:hover { color: var(--primary-dark); }

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  background: linear-gradient(90deg, #1c1e54, #362baa 50%, #533afd);
  color: rgba(255,255,255,0.92);
  font-size: .95rem;
}

.topbar .pill-note {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .38rem .75rem;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
}

.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 1030;
  backdrop-filter: blur(18px);
  background: rgba(245, 248, 255, 0.80);
  border-bottom: 1px solid rgba(229, 237, 245, 0.85);
}

.nav-shell {
  margin: .85rem auto;
  padding: .85rem 1rem;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(229, 237, 245, .95);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}

.navbar-brand {
  font-weight: 700;
  letter-spacing: .2px;
  color: var(--text) !important;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), #7e6bff 58%, #c8bdfd);
  color: white;
  box-shadow: rgba(83,58,253,.28) 0 14px 30px -14px;
}

.brand-copy small {
  display: block;
  color: var(--muted);
  font-size: .76rem;
  margin-top: -2px;
}

.nav-link {
  color: var(--text) !important;
  font-weight: 600;
  border-radius: 10px;
  padding: .65rem .95rem !important;
}

.nav-link:hover,
.nav-link:focus {
  background: rgba(83, 58, 253, .06);
  color: var(--primary) !important;
}

.btn {
  border-radius: 10px;
  font-weight: 600;
  padding: .78rem 1.12rem;
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: rgba(83,58,253,.22) 0 16px 30px -18px;
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-outline-primary {
  color: var(--primary);
  border-color: rgba(83,58,253,.24);
  background: rgba(255,255,255,.7);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background: rgba(83,58,253,.06);
  color: var(--primary-dark);
  border-color: rgba(83,58,253,.32);
}

.btn-outline-light:hover { color: var(--text); }

.section-space { padding: 1.5rem 0 0; }
.hero {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background:
    radial-gradient(circle at 10% 10%, rgba(249,107,238,.24), transparent 26%),
    radial-gradient(circle at 84% 18%, rgba(122,106,255,.28), transparent 28%),
    linear-gradient(140deg, #fdfdff 0%, #f6f8ff 34%, #edf2ff 100%);
  border: 1px solid rgba(229,237,245,.98);
  box-shadow: var(--shadow-lg);
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto -4% -18% auto;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(83,58,253,.18), transparent 70%);
}
.hero-label,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .5rem .85rem;
  border-radius: 999px;
  background: rgba(83,58,253,.07);
  border: 1px solid rgba(83,58,253,.12);
  color: var(--primary);
  font-size: .92rem;
  font-weight: 700;
}
.hero-title {
  font-size: clamp(2.3rem, 4vw, 4.15rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 700;
  color: var(--text);
}
.hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 720px;
}
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.metric-card {
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(229,237,245,.95);
  border-radius: 20px;
  padding: 1.15rem;
  box-shadow: var(--shadow-sm);
}
.metric-value {
  font-size: 2rem;
  line-height: 1;
  font-weight: 700;
  color: var(--text);
}
.metric-label { color: var(--muted); font-size: .95rem; margin-top: .45rem; }
.metric-foot { color: var(--primary); font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.trust-item {
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(229,237,245,.95);
  border-radius: 18px;
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow-sm);
}
.trust-item h3 { font-size: 1rem; font-weight: 700; margin-bottom: .35rem; }
.trust-item p { margin: 0; color: var(--muted); }

.surface-card,
.card {
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(229,237,245,.95);
  border-radius: 24px;
  box-shadow: var(--shadow-md);
}
.card { border: 1px solid rgba(229,237,245,.95); }
.section-heading {
  font-size: clamp(1.6rem, 2vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: .6rem;
}
.section-copy { color: var(--muted); max-width: 740px; }

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: .9rem;
}
.category-pill {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .6rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(238,244,255,.95));
  border: 1px solid rgba(229,237,245,.96);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}
.category-pill span:last-child { color: var(--primary); }
.category-pill:hover { transform: translateY(-1px); }

.feature-list {
  display: grid;
  gap: .9rem;
}
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(238,244,255,.8);
  border: 1px solid rgba(229,237,245,.95);
}
.feature-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(83,58,253,.1);
  color: var(--primary);
  font-weight: 700;
}

.split-banner {
  background: linear-gradient(135deg, #1c1e54, #262b6f 60%, #533afd);
  color: white;
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
}
.split-banner p { color: rgba(255,255,255,.78); }

.filter-panel {
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(229,237,245,.95);
  border-radius: 24px;
  box-shadow: var(--shadow-md);
}
.filter-panel .form-control,
.filter-panel .form-select,
.form-control,
.form-select,
textarea,
input[type='file'] {
  min-height: 50px;
  border-radius: 12px;
  border-color: var(--line);
  padding: .8rem .95rem;
  color: var(--text);
  box-shadow: none;
}
textarea.form-control { min-height: 128px; }
.form-control:focus,
.form-select:focus,
textarea:focus {
  border-color: rgba(83,58,253,.42);
  box-shadow: 0 0 0 4px rgba(83,58,253,.08);
}
.form-label { color: var(--text); font-weight: 700; margin-bottom: .55rem; }
.form-text { color: var(--muted); }

.listing-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(229,237,245,.95);
  border-radius: 24px;
  box-shadow: var(--shadow-md);
}
.listing-card:hover { transform: translateY(-2px); }
.listing-meta,
.card-meta { color: var(--muted); font-size: .95rem; }
.badge-soft {
  background: rgba(83,58,253,.08);
  color: var(--primary);
  border: 1px solid rgba(83,58,253,.12);
  border-radius: 999px;
  padding: .38rem .75rem;
  font-weight: 700;
}
.price-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  padding: .9rem 1rem;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(238,244,255,.92), rgba(255,255,255,.98));
  border: 1px solid rgba(229,237,245,.95);
}
.price-chip strong { font-size: 1.15rem; color: var(--text); }
.price-chip span { color: var(--muted); font-size: .9rem; }

.inline-stat {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .38rem .65rem;
  border-radius: 999px;
  background: rgba(21,190,83,.08);
  color: #108c3d;
  font-weight: 700;
  font-size: .84rem;
}

.footer {
  margin-top: auto;
  color: rgba(255,255,255,.75);
  background: linear-gradient(135deg, #10173a, #1c1e54 42%, #22196f);
}
.footer-title { color: white; font-weight: 700; }
.footer-chip {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  padding: .45rem .8rem;
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.88);
  font-size: .92rem;
}

.pagination .page-link {
  border: 1px solid rgba(229,237,245,.95);
  color: var(--text);
  border-radius: 12px !important;
  margin: 0 .25rem;
  min-width: 44px;
  text-align: center;
}
.pagination .active .page-link {
  background: var(--primary);
  border-color: var(--primary);
}

.contact-mask { filter: blur(2px); user-select: none; }
.object-cover { object-fit: cover; }
.empty-state {
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--muted);
  background: rgba(255,255,255,.9);
  border: 1px dashed rgba(83,58,253,.20);
  border-radius: 24px;
}

@media (max-width: 991.98px) {
  .hero,
  .surface-card,
  .card,
  .listing-card,
  .filter-panel,
  .split-banner { border-radius: 20px; }
  .hero-metrics,
  .trust-grid { grid-template-columns: 1fr; }
  .nav-shell { padding: .8rem; }
}

@media (max-width: 767.98px) {
  .hero-title { font-size: 2.3rem; }
  .btn { width: 100%; }
  .price-chip { align-items: flex-start; width: 100%; }
}
