:root {
  --accent: #2563eb;
  --accent2: #7c3aed;
  --accent-glow: rgba(37,99,235,.12);
  --bg: #f1f5f9;
  --bg2: #ffffff;
  --bg3: #e2e8f0;
  --border: #e2e8f0;
  --text: #0f172a;
  --text2: #475569;
  --text3: #94a3b8;
  --danger: #ef4444;
  --success: #22c55e;
  --warning: #f59e0b;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,.06);
  --shadow-hover: 0 4px 12px rgba(0,0,0,.08);
}

[data-theme="dark"] {
  --accent: #38bdf8;
  --accent2: #818cf8;
  --accent-glow: rgba(56,189,248,.12);
  --bg: #0f172a;
  --bg2: #1e293b;
  --bg3: #0f172a;
  --border: #334155;
  --text: #f1f5f9;
  --text2: #94a3b8;
  --text3: #64748b;
  --shadow: 0 1px 3px rgba(0,0,0,.2);
  --shadow-hover: 0 4px 12px rgba(0,0,0,.3);
}

* { margin:0; padding:0; box-sizing:border-box; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* Navbar */
.navbar {
  position: sticky; top:0; z-index:100;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 0 1.25rem;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.navbar .brand {
  font-weight: 800; font-size: 1.2rem; text-decoration: none;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}
.navbar .nav-search {
  display: flex; align-items: center;
  background: transparent; border: none; border-radius: 8px;
}
.navbar .nav-search .search-input {
  width: 0; padding: 0; border: none; background: transparent;
  font-size: .85rem; color: var(--text); outline: none; font-family: inherit;
  transition: all .25s;
}
.navbar .nav-search.open .search-input {
  width: 220px; padding: .55rem .7rem;
  background: var(--bg3); border-radius: 8px;
}
.navbar .nav-search .search-input::placeholder { color: var(--text3); }
.navbar .nav-search button {
  border: none; background: transparent; color: var(--text3); cursor: pointer;
  padding: 4px; display: flex; align-items: center;
}
.navbar .nav-search button:hover { color: var(--text); }
.navbar .nav-links {
  display:flex; align-items:center; gap: .25rem; margin-left: auto;
}
.navbar .nav-links a {
  color: var(--text2); text-decoration: none; font-size: .82rem; font-weight: 500;
  padding: .4rem .55rem; border-radius: 8px; transition: all .15s;
  display: flex; align-items: center; gap: .35rem;
  white-space: nowrap;
}
.navbar .nav-links a svg { flex-shrink: 0; }
.navbar .nav-links a span { display: inline; }
.navbar .nav-links a:hover { background: var(--bg3); color: var(--text); }
.navbar .nav-links a.active { background: var(--accent-glow); color: var(--accent); }

/* Theme toggle */
.theme-toggle {
  background: none; border: none; cursor: pointer;
  padding: .35rem; border-radius: 8px;
  color: var(--text2); display: flex; align-items: center;
  transition: all .15s;
}
.theme-toggle:hover { background: var(--bg3); color: var(--text); }

/* Logout button in sidebar */
.side-nav-logout {
  margin-top: .5rem; padding-top: .65rem;
  border-top: 1px solid var(--border);
  color: var(--text3) !important; font-weight: 500 !important;
}
.side-nav-logout:hover {
  background: rgba(239,68,68,.1) !important;
  color: var(--danger) !important;
}

/* Profile dropdown */
.profile-wrap { position: relative; }
.profile-btn { cursor: pointer; display: flex; }
.profile-dropdown {
  display: none !important; position: absolute; top: 44px; right: 0;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 10px; min-width: 170px; box-shadow: 0 8px 30px rgba(0,0,0,.25);
  z-index: 200; overflow: hidden;
}
.profile-dropdown.show { display: block !important; }
.profile-dropdown a {
  display: flex; align-items: center; gap: .6rem;
  padding: .7rem 1rem; font-size: .82rem; font-weight: 500;
  color: var(--text2); text-decoration: none;
}
.profile-dropdown a:hover { background: var(--bg3); color: var(--text); }
.profile-dropdown a:last-child { color: var(--danger); }
.navbar .avatar {
  width: 34px; height: 34px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--border);
}

/* Footer */
.site-footer {
  width: 100%;
  border-top: 1px solid var(--border);
  margin-top: 3rem;
  background: var(--bg);
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 1.25rem; text-align: center;
  font-size: .78rem; color: var(--text3);
}

/* Main content area */
.layout { display: flex; max-width: 1200px; margin: 0 auto; padding: 1.25rem; gap: 1.5rem; }
.layout .sidebar { width: 280px; flex-shrink: 0; }
.layout .main { flex:1; min-width:0; }
.layout .rightbar { width: 320px; flex-shrink: 0; }

/* Card */
.card {
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.25rem; margin-bottom: 1rem;
  transition: box-shadow .2s;
}
.card:hover { box-shadow: var(--shadow-hover); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: inherit; font-weight: 600; font-size: .85rem;
  padding: .55rem 1.1rem; border: none; border-radius: 8px;
  cursor: pointer; transition: all .15s; text-decoration: none;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { filter: brightness(1.1); }
.btn-secondary { background: var(--bg3); color: var(--text); }
.btn-secondary:hover { filter: brightness(.95); }
.btn-outline {
  background: transparent; border: 1px solid var(--border); color: var(--text2);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: .35rem .75rem; font-size: .78rem; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-block { width: 100%; justify-content: center; }

/* Forms */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: .82rem; font-weight: 500; color: var(--text2); margin-bottom: .35rem; }
.form-input {
  width: 100%; font-family: inherit; font-size: .9rem;
  background: var(--bg3); border: 1px solid var(--border); border-radius: 8px;
  padding: .65rem .8rem; color: var(--text); transition: border .2s;
}
.form-input:focus { outline:none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
textarea.form-input { resize: vertical; min-height: 80px; }
select.form-input { appearance: auto; }

/* Post */
/* Posts — minimalist compact design */
.post { margin-bottom: .85rem; padding: .85rem 1rem; }
.post-header {
  display: flex; align-items: center; gap: .5rem; margin-bottom: .5rem;
}
.post-header .avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.post-id { flex: 1; min-width: 0; line-height: 1.15; }
.post-name {
  font-weight: 600; font-size: .72rem; color: var(--text);
  text-decoration: none; display: inline-flex; align-items: center; gap: .2rem;
}
.post-name:hover { color: var(--accent); }
.post-meta {
  display: flex; align-items: center; gap: .3rem;
  font-size: .62rem; color: var(--text3);
  margin-top: 0;
}
.post-dot { color: var(--text3); opacity: .5; }
.post-type {
  display: inline-block; font-size: .56rem; font-weight: 600;
  padding: 1px .32rem; border-radius: 3px; letter-spacing: .02em;
}
.post-type.type-promo { background: var(--accent-glow); color: var(--accent); }
.post-type.type-offer { background: rgba(245,158,11,.15); color: #f59e0b; }
.post-verified {
  display: inline-flex; align-items: center; justify-content: center;
  width: 12px; height: 12px; border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #059669); color: #fff;
  flex-shrink: 0;
}
.post-content {
  font-size: .88rem; line-height: 1.5; margin-bottom: .65rem;
  white-space: pre-wrap; color: var(--text);
}
.post-media { display: grid; gap: 4px; border-radius: 10px; overflow: hidden; margin-bottom: .65rem; }
.post-media img { width: 100%; max-height: 450px; object-fit: cover; }
.post-actions {
  display: flex; gap: .15rem; align-items: center;
  padding-top: .55rem; border-top: 1px solid var(--border);
  margin: 0 -.25rem;
}
.post-actions button, .post-actions a {
  display: inline-flex; align-items: center; gap: .3rem;
  font-family: inherit; font-size: .78rem; font-weight: 500;
  padding: .35rem .6rem; border: none; border-radius: 6px;
  background: transparent; color: var(--text3); cursor: pointer; transition: all .15s;
  text-decoration: none;
}
.post-actions button:hover, .post-actions a:hover {
  background: var(--bg3); color: var(--text);
}
.post-actions .liked { color: var(--danger); }
.post-action-static { display: inline-flex; align-items: center; gap: .3rem; font-size: .78rem; color: var(--text3); padding: .35rem .6rem; }
.post-actions-right { margin-left: auto; display: flex; gap: .15rem; }
.post-action-danger:hover { color: var(--danger) !important; background: rgba(239,68,68,.1) !important; }

/* Post create box — ultra compact minimalist */
.post-create { padding: .6rem .75rem; margin-bottom: .85rem; }
.post-create-top { display: flex; gap: .55rem; align-items: center; }
.post-create-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.post-create-input {
  border: 1px solid transparent !important; border-radius: 8px !important;
  padding: .45rem .65rem !important; font-size: .82rem !important;
  min-height: 36px; resize: none; line-height: 1.4;
  background: var(--bg) !important;
  transition: all .15s;
  flex: 1; min-width: 0;
}
.post-create-input:hover { background: var(--bg3) !important; }
.post-create-input:focus {
  border-color: var(--accent) !important;
  background: var(--bg2) !important;
  resize: vertical;
  min-height: 70px;
}
.post-create-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: .4rem;
  padding-left: calc(32px + .55rem); /* align with textarea after avatar */
  margin-top: .5rem;
}
.post-create-tools { display: flex; align-items: center; gap: .25rem; }
.post-type-select {
  font-size: .7rem; font-weight: 500;
  padding: .25rem .5rem; border-radius: 5px;
  border: 1px solid var(--border); background: transparent;
  color: var(--text2); cursor: pointer; outline: 0;
  transition: all .15s;
}
.post-type-select:hover { background: var(--bg3); }
.post-type-select:focus { border-color: var(--accent); }
.post-tool-btn {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .7rem; font-weight: 500;
  padding: .25rem .55rem; border-radius: 5px;
  background: transparent; border: 1px solid var(--border);
  color: var(--text2); cursor: pointer; transition: all .15s;
}
.post-tool-btn:hover { background: var(--bg3); color: var(--text); border-color: var(--accent); }
.post-create .btn-sm { padding: .3rem .8rem; font-size: .75rem; }

/* Vendor promo card (compact inline version) */
.vendor-promo-card {
  display: flex; align-items: center; gap: .85rem;
  background: var(--bg2); border: 1px dashed var(--accent);
  border-radius: 10px; padding: .75rem 1rem;
  margin-bottom: 1rem;
}
.vendor-promo-icon {
  width: 36px; height: 36px; border-radius: 9px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; display: flex; align-items: center; justify-content: center;
}
.vendor-promo-text { flex: 1; min-width: 0; line-height: 1.3; }
.vendor-promo-text strong { display: block; font-size: .85rem; font-weight: 600; color: var(--text1); }
.vendor-promo-text span { display: block; font-size: .72rem; color: var(--text3); margin-top: 1px; }
.vendor-promo-btn {
  flex-shrink: 0; padding: .4rem .85rem; border-radius: 50px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; font-size: .78rem; font-weight: 600;
  text-decoration: none; transition: transform .15s, box-shadow .15s;
}
.vendor-promo-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px var(--accent-glow); }

/* Profile */
.profile-cover {
  height: 240px; border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  position: relative; overflow: hidden;
}
.profile-cover img { width: 100%; height: 100%; object-fit: cover; }
.profile-info {
  padding: 1.25rem; display: flex; gap: 1.25rem; align-items: flex-end;
  margin-top: -50px;
}
.profile-info .avatar {
  width: 100px; height: 100px; border-radius: 50%; object-fit: cover;
  border: 4px solid var(--bg2); box-shadow: var(--shadow);
}
.profile-info .name { font-size: 1.4rem; font-weight: 700; }
.profile-info .meta { color: var(--text2); font-size: .85rem; }

/* Sidebar — enhanced with user customization */
.sidebar { display: flex; flex-direction: column; gap: .75rem; }
.side-profile { text-align: center; padding: 1.25rem 1rem 1rem; }
.side-avatar-link { display: inline-block; }
.side-avatar {
  width: 64px; height: 64px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--bg2);
  box-shadow: 0 0 0 2px var(--accent);
  transition: transform .2s;
}
.side-avatar-link:hover .side-avatar { transform: scale(1.05); }
.side-name {
  font-weight: 700; font-size: .95rem; margin-top: .65rem;
  color: var(--text1); line-height: 1.25;
}
.side-role { margin-top: .25rem; display: flex; align-items: center; justify-content: center; gap: .35rem; flex-wrap: wrap; }
.side-role-tag {
  display: inline-block; font-size: .6rem; font-weight: 700;
  letter-spacing: .06em; padding: 2px 7px; border-radius: 50px;
  background: var(--bg3); color: var(--text2);
}
.side-role-vendor {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
}
.side-biz-name { font-size: .72rem; color: var(--text3); }
.side-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: 1rem; border-top: 1px solid var(--border);
  padding-top: .85rem;
}
.side-stats a { text-decoration: none; color: inherit; transition: color .15s; }
.side-stats a:hover { color: var(--accent); }
.side-stats > a { text-align: center; display: block; }
.side-stats .num { font-weight: 700; font-size: .92rem; color: var(--text1); }
.side-stats .label { font-size: .65rem; color: var(--text3); margin-top: 2px; }

/* Side navigation */
.side-nav { padding: .35rem; }
.side-nav a {
  display: flex; align-items: center; gap: .6rem;
  padding: .55rem .75rem; border-radius: 8px;
  font-size: .85rem; font-weight: 500; color: var(--text2);
  text-decoration: none; transition: all .15s;
}
.side-nav a:hover { background: var(--bg3); color: var(--text1); }
.side-nav a.active { background: var(--accent-glow); color: var(--accent); font-weight: 600; }
.side-nav a svg { flex-shrink: 0; }
.side-nav-badge {
  margin-left: auto; background: var(--bg3); color: var(--text2);
  font-size: .68rem; font-weight: 600; padding: 1px 7px; border-radius: 50px;
}
.side-nav a.active .side-nav-badge { background: var(--accent); color: #fff; }
.side-nav-badge-alert { background: var(--danger) !important; color: #fff !important; }

/* Trending categories sidebar */
.side-trending { padding: .85rem 1rem 1rem; }
.side-trending-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: .65rem;
}
.side-trending-head > span {
  font-size: .7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; color: var(--text3);
}
.side-trending-more {
  font-size: .68rem; color: var(--accent);
  text-decoration: none; font-weight: 500;
  text-transform: none; letter-spacing: 0;
  transition: opacity .15s;
}
.side-trending-more:hover { opacity: .75; }
.side-trending-list { display: flex; flex-direction: column; gap: .15rem; }
.side-trending-list a {
  display: flex; align-items: center; justify-content: space-between;
  padding: .4rem .5rem; border-radius: 6px;
  font-size: .82rem; color: var(--text1); text-decoration: none;
  transition: background .15s;
}
.side-trending-list a:hover { background: var(--bg3); }
.trending-name { font-weight: 500; }
.trending-count {
  font-size: .7rem; color: var(--text3);
  background: var(--bg3); padding: 1px 7px; border-radius: 50px;
}

/* Pautan (links) items on profile page */
.pautan-item {
  display: flex; align-items: center; gap: .75rem;
  padding: .65rem .85rem; text-decoration: none; color: var(--text1);
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 10px; transition: all .15s;
}
.pautan-item:hover {
  border-color: var(--accent); transform: translateX(2px);
  background: var(--bg2);
}
.pautan-icon {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.pautan-info { flex: 1; min-width: 0; line-height: 1.3; }
.pautan-label {
  display: block; font-size: .82rem; font-weight: 600; color: var(--text1);
}
.pautan-url {
  display: block; font-size: .72rem; color: var(--text3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pautan-arrow { color: var(--text3); flex-shrink: 0; transition: color .15s, transform .15s; }
.pautan-item:hover .pautan-arrow { color: var(--accent); transform: translateX(2px); }

/* Message bubbles */
.msg-bubble {
  max-width: 75%; padding: .65rem .9rem; border-radius: 14px;
  font-size: .88rem; line-height: 1.45;
}
.msg-bubble.sent {
  background: var(--accent); color: #fff;
  border-bottom-right-radius: 4px; align-self: flex-end;
}
.msg-bubble.received {
  background: var(--bg3); color: var(--text);
  border-bottom-left-radius: 4px; align-self: flex-start;
}

/* Marketplace */
.listing-card {
  display: flex; gap: 1rem; padding: 1rem;
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius);
  transition: all .2s;
}
.listing-card:hover { border-color: var(--accent); box-shadow: var(--shadow-hover); }
.listing-card img {
  width: 120px; height: 120px; object-fit: cover; border-radius: 8px; flex-shrink: 0;
}
.listing-card .info { flex: 1; }
.listing-card .title { font-weight: 600; font-size: .95rem; }
.listing-card .title a { color: var(--text); text-decoration: none; }
.listing-card .title a:hover { color: var(--accent); }
.listing-card .price { font-size: 1.1rem; font-weight: 700; color: var(--accent); margin-top: 2px; }
.listing-card .meta { font-size: .78rem; color: var(--text3); margin-top: .25rem; }
.listing-card .badge {
  display: inline-block; font-size: .7rem; font-weight: 600; text-transform: uppercase;
  padding: 2px 8px; border-radius: 4px;
}

/* Directory grid */
.dir-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem;
}
.dir-card {
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.25rem; text-align: center; transition: all .2s;
  text-decoration: none; color: var(--text);
}
.dir-card:hover { border-color: var(--accent); box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.dir-card .icon { font-size: 2rem; margin-bottom: .5rem; }
.dir-card .name { font-weight: 600; font-size: .9rem; }
.dir-card .count { font-size: .78rem; color: var(--text3); margin-top: 2px; }

/* Responsive */
@media (max-width: 900px) {
  .layout { flex-direction: column; }
  .layout .sidebar, .layout .rightbar { width: 100%; }
  .navbar .nav-links a span { display: none; }
}

/* Utility */
.text-center { text-align: center; }
.text-muted { color: var(--text3); }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.gap-1 { gap: .5rem; }
.flex { display: flex; }
.flex-1 { flex: 1; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.empty { text-align: center; padding: 3rem 1rem; color: var(--text3); }

/* Vendor CTA Hero (index.php) */
.vendor-cta-hero {
  position: relative; overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; text-align: center; padding: 2rem 1.5rem 1.75rem;
  box-shadow: 0 10px 40px rgba(0,0,0,.2);
}
.vendor-cta-bg {
  position: absolute; inset: 0; pointer-events: none; opacity: .25;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.4) 0, transparent 25%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,.3) 0, transparent 25%);
}
.vendor-cta-content { position: relative; z-index: 1; }
.vendor-cta-icon-wrap { display: inline-block; margin-bottom: .5rem; }
.vendor-cta-rocket {
  font-size: 2.2rem; display: inline-block;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.3));
  animation: rocketFloat 2.5s ease-in-out infinite;
}
@keyframes rocketFloat {
  0%, 100% { transform: translateY(0) rotate(-8deg); }
  50% { transform: translateY(-6px) rotate(8deg); }
}
.vendor-cta-title {
  font-size: 1.4rem; font-weight: 800; margin: 0 0 .35rem;
  text-shadow: 0 2px 8px rgba(0,0,0,.2); letter-spacing: -.01em;
}
.vendor-cta-sub { font-size: .88rem; opacity: .95; margin: 0 0 1rem; }
.vendor-cta-pills {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem;
  margin-bottom: 1.2rem;
}
.vendor-cta-pills span {
  background: rgba(255,255,255,.2); backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,.25);
  font-size: .72rem; padding: .3rem .75rem; border-radius: 50px;
  font-weight: 500;
}
.vendor-cta-hero-btn {
  display: inline-block; background: #fff; color: var(--accent);
  font-size: .92rem; font-weight: 700; padding: .7rem 1.6rem;
  border-radius: 50px; text-decoration: none;
  box-shadow: 0 4px 15px rgba(0,0,0,.2);
  transition: transform .2s, box-shadow .2s;
  animation: pulse 2s ease-in-out infinite;
}
.vendor-cta-hero-btn:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 6px 20px rgba(0,0,0,.25); }
@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 15px rgba(0,0,0,.2); }
  50% { box-shadow: 0 4px 25px rgba(255,255,255,.4); }
}

/* Vendor upgrade (profile.php) */
.vendor-upgrade {
  position: relative; overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  padding: 2rem 1.5rem 1.75rem;
  margin-bottom: 1.5rem; text-align: center; color: #fff;
  box-shadow: 0 10px 40px rgba(0,0,0,.2);
}
.vendor-upgrade-bg {
  position: absolute; inset: 0; pointer-events: none; opacity: .2;
  background-image:
    radial-gradient(circle at 85% 15%, rgba(255,255,255,.5) 0, transparent 30%),
    radial-gradient(circle at 15% 85%, rgba(255,255,255,.4) 0, transparent 30%);
}
.vendor-upgrade-inner { position: relative; z-index: 1; }
.vendor-upgrade-ribbon {
  display: inline-block; background: rgba(255,255,255,.95); color: var(--accent);
  font-size: .72rem; font-weight: 800; letter-spacing: .08em;
  padding: .3rem 1rem; border-radius: 50px; margin-bottom: .75rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.vendor-upgrade-icon {
  font-size: 2.5rem; line-height: 1; margin-bottom: .5rem;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.25));
  animation: rocketFloat 2.5s ease-in-out infinite;
  display: inline-block;
}
.vendor-upgrade-title {
  font-size: 1.5rem; font-weight: 800; margin: 0 0 .35rem;
  text-shadow: 0 2px 8px rgba(0,0,0,.2); letter-spacing: -.01em;
}
.vendor-upgrade-sub { font-size: .88rem; opacity: .95; margin: 0 0 1.2rem; }
.vendor-upgrade-list {
  list-style: none; padding: 0; margin: 0 0 1.2rem;
  display: inline-block; text-align: left;
}
.vendor-upgrade-list li {
  font-size: .85rem; padding: .3rem 0; display: flex; align-items: center; gap: .5rem;
}
.vendor-upgrade-list .check {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.25rem; height: 1.25rem;
  background: rgba(255,255,255,.25); border-radius: 50%;
  font-size: .7rem; flex-shrink: 0; font-weight: 700;
}
.vendor-upgrade-price {
  background: rgba(0,0,0,.18); border-radius: var(--radius);
  padding: .7rem 1rem; margin: 0 auto 1.2rem; max-width: 280px;
  display: flex; flex-direction: column; align-items: center; gap: .15rem;
}
.vendor-upgrade-price-label {
  font-size: 1.2rem; font-weight: 800; letter-spacing: .02em;
}
.vendor-upgrade-price-sub { font-size: .72rem; opacity: .85; }
.vendor-upgrade-form { max-width: 320px; margin: 0 auto; }
.vendor-upgrade-form .form-input {
  text-align: center; margin-bottom: .6rem;
  border: 2px solid rgba(255,255,255,.4); border-radius: 50px;
  padding: .6rem 1rem; font-size: .85rem;
  background: rgba(255,255,255,.95); color: var(--text1);
}
.vendor-upgrade-form .form-input::placeholder { color: var(--text3); }
.vendor-upgrade-submit {
  display: block; width: 100%;
  background: #fff; color: var(--accent); border: none;
  border-radius: 50px; padding: .75rem 1rem;
  font-size: .9rem; font-weight: 700; cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,.2);
  transition: transform .15s, box-shadow .15s;
}
.vendor-upgrade-submit:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,0,0,.3); }

/* Toast notification */
.toast {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: .85rem 1.25rem; font-size: .85rem;
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
  display: none; z-index: 999;
  animation: slideUp .3s ease-out;
}
@keyframes slideUp { from { opacity:0; transform: translateY(10px); } to { opacity:1; transform: translateY(0); } }

/* Badge pills */
.badge-pill {
  display: inline-flex; align-items: center; gap: .2rem;
  padding: .15rem .55rem; border-radius: 20px; font-size: .72rem; font-weight: 600;
}

/* Star rating interactive */
.star-rating { display: flex; gap: .15rem; }
.star-rating span {
  font-size: 1.4rem; cursor: pointer; transition: color .1s;
  user-select: none;
}
.star-rating span.active { color: var(--accent); }

/* Review card */
.review-item {
  display: flex; gap: .6rem; padding: .65rem 0;
  border-bottom: 1px solid var(--border);
}
.review-item:last-child { border-bottom: none; }
.review-item .avatar {
  width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
}

/* Forum */
.forum-cat-card {
  display: flex; align-items: center; gap: 1rem; padding: 1rem;
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius);
  text-decoration: none; color: var(--text); transition: all .2s;
}
.forum-cat-card:hover { border-color: var(--accent); box-shadow: var(--shadow-hover); }
.forum-thread-row {
  display: flex; align-items: center; gap: .75rem;
  padding: .75rem 1rem;
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius);
  text-decoration: none; color: var(--text); transition: all .2s;
}
.forum-thread-row:hover { border-color: var(--accent); }

/* Role selector in register */
.register-wrap { max-width: 520px; margin: 1.5rem auto; padding: 0 1rem; }
.register-card { padding: 1.75rem 1.5rem 1.5rem; }
.register-title {
  font-size: 1.4rem; font-weight: 800; margin: 0 0 .25rem; text-align: center;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  letter-spacing: -.01em;
}
.register-sub { text-align: center; color: var(--text3); font-size: .85rem; margin: 0 0 1.25rem; }
.register-error {
  background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.3);
  color: var(--danger); font-size: .82rem; padding: .5rem .75rem;
  border-radius: 8px; margin-bottom: 1rem; text-align: center;
}
.register-section { margin-bottom: 1.25rem; }
.register-section-label {
  display: block; font-size: .75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .04em; color: var(--text3); margin-bottom: .5rem;
}
.role-select { display: flex; flex-direction: column; gap: .6rem; }
.role-option {
  position: relative; display: flex; align-items: center; gap: .85rem;
  padding: .85rem 1rem; background: var(--bg2);
  border: 2px solid var(--border); border-radius: 12px;
  cursor: pointer; transition: all .2s;
}
.role-option:hover { border-color: var(--accent); transform: translateY(-1px); }
.role-option:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-glow);
}
.role-option input[type="radio"] {
  position: absolute; opacity: 0; pointer-events: none;
}
.role-option-icon {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  background: var(--accent-glow); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.role-option-icon-vendor {
  background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff;
}
.role-option-body { flex: 1; min-width: 0; line-height: 1.3; }
.role-option-body strong {
  display: block; font-size: .9rem; font-weight: 700; color: var(--text1);
}
.role-option-body span { display: block; font-size: .72rem; color: var(--text3); margin-top: 1px; }
.role-option-check {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid var(--border); background: transparent;
  display: flex; align-items: center; justify-content: center;
  color: transparent; transition: all .2s;
}
.role-option:has(input:checked) .role-option-check {
  background: var(--accent); border-color: var(--accent); color: #fff;
}
.role-option-badge {
  position: absolute; top: -8px; right: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; font-size: .6rem; font-weight: 700; letter-spacing: .06em;
  padding: 2px 8px; border-radius: 50px;
}
.register-fields { display: flex; flex-direction: column; gap: 0; }
.register-submit {
  width: 100%; padding: .75rem 1rem; font-size: .92rem; font-weight: 600;
  border-radius: 10px; margin-top: 1rem;
}
.register-foot { text-align: center; font-size: .85rem; color: var(--text3); margin-top: 1rem; }
.register-foot a { color: var(--accent); text-decoration: none; font-weight: 600; }
.register-foot a:hover { text-decoration: underline; }
@media (max-width: 480px) {
  .role-option { padding: .75rem .85rem; gap: .65rem; }
  .role-option-icon { width: 36px; height: 36px; }
}

/* Notification badge */
.notif-badge {
  position: absolute; top: -6px; right: -6px;
  background: var(--danger); color: #fff;
  font-size: .6rem; min-width: 16px; height: 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; padding: 0 3px;
}

/* Upgrade CTA */
.upgrade-card {
  background: linear-gradient(135deg, var(--bg2), var(--bg3));
  padding: 1rem; border-radius: var(--radius);
  border: 1px solid var(--border); margin-bottom: 1rem;
  text-align: center;
}

/* Online dot */
.online-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--success); vertical-align: middle; margin: 0 2px;
}

/* Thread badge */
.thread-badge {
  display: inline-block; font-size: .7rem; font-weight: 600;
  padding: .1rem .45rem; border-radius: 10px;
}

/* Solve button */
.btn-solve {
  color: var(--success); border-color: var(--success);
  background: transparent; border: 1px solid var(--success);
  padding: .2rem .5rem; border-radius: 4px; font-size: .72rem;
  cursor: pointer; font-family: inherit;
}
.btn-solve:hover { background: var(--success); color: #fff; }

/* Notification item */
.notif-item {
  display: flex; align-items: center; gap: .75rem;
  padding: .65rem 1rem;
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius);
  transition: all .15s;
}
.notif-item.unread { border-left: 3px solid var(--accent); }
.notif-item.read { opacity: .7; }

/* Directory category grid */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.cat-card {
  display: flex; flex-direction: column; align-items: center;
  gap: .5rem; padding: 1.5rem 1rem;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none; color: var(--text2);
  transition: all .2s;
}
.cat-card:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.cat-card.active { border-color: var(--accent); background: var(--accent-glow); color: var(--accent); }
.cat-icon svg { display: block; width: 40px; height: 40px; }
.cat-name { font-size: .82rem; font-weight: 600; text-align: center; line-height: 1.3; }
.cat-count { font-size: .72rem; color: var(--text3); }

@media (max-width: 768px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }

/* New Directory page design */
.dir-search-section {
  display: flex; align-items: center; gap: 1.25rem;
  margin-bottom: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, var(--accent-glow), transparent 60%), var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  position: relative; overflow: hidden;
}
.dir-search-section::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 0% 50%, var(--accent-glow), transparent 50%),
    radial-gradient(circle at 100% 50%, rgba(124,58,237,.08), transparent 50%);
  opacity: .6;
}
[data-theme="dark"] .dir-search-section::before {
  background:
    radial-gradient(circle at 0% 50%, rgba(56,189,248,.15), transparent 50%),
    radial-gradient(circle at 100% 50%, rgba(129,140,248,.12), transparent 50%);
}
.dir-title {
  position: relative; font-size: 1.35rem; font-weight: 800; margin: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap; letter-spacing: -.01em;
}
.dir-search {
  position: relative; flex: 1; max-width: 520px;
  display: flex; align-items: center; gap: 0;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px; padding: 0 .65rem;
  transition: all .2s;
  z-index: 1;
}
.dir-search:hover { border-color: var(--accent); }
.dir-search:focus-within {
  border-color: transparent;
  box-shadow: 0 0 0 2px var(--accent), 0 4px 20px var(--accent-glow);
  transform: translateY(-1px);
}
.dir-search > svg { width: 15px; height: 15px; color: var(--text3); flex-shrink: 0; }
.dir-search input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  padding: .6rem .6rem; font-size: .88rem; color: var(--text1);
}
.dir-search input::placeholder { color: var(--text3); }
.dir-search-btn {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; flex-shrink: 0;
  border: 0; cursor: pointer;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; border-radius: 8px;
  transition: transform .15s, box-shadow .15s;
}
.dir-search-btn:hover { transform: scale(1.05); box-shadow: 0 4px 12px var(--accent-glow); }
.dir-search-btn:active { transform: scale(.95); }
.dir-search-btn svg { width: 14px; height: 14px; }
@media (max-width: 600px) {
  .dir-search-section { flex-direction: column; align-items: stretch; gap: .85rem; padding: 1rem; }
  .dir-title { font-size: 1.15rem; }
  .dir-search { max-width: 100%; }
}

.dir-chips-wrap {
  overflow-x: auto; margin: 0 0 1.25rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.dir-chips-wrap::-webkit-scrollbar { height: 4px; }
.dir-chips-wrap::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.dir-chips { display: flex; gap: .5rem; padding-bottom: .25rem; min-width: min-content; }
.dir-chip {
  display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 50px; padding: .4rem .9rem;
  font-size: .8rem; font-weight: 500; color: var(--text2);
  text-decoration: none; transition: all .15s;
}
.dir-chip:hover { border-color: var(--accent); color: var(--accent); }
.dir-chip.active {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-color: transparent; color: #fff; font-weight: 600;
}
.dir-chip span {
  background: rgba(255,255,255,.25); padding: 0 .4rem; border-radius: 50px;
  font-size: .7rem;
}
.dir-chip.active span { background: rgba(255,255,255,.3); }
.dir-chip:not(.active) span { background: var(--bg3); color: var(--text3); }

.dir-cat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: .85rem;
  margin-bottom: 1.5rem;
}
.dir-cat-card {
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  padding: 1.25rem .75rem; background: var(--bg2);
  border: 1px solid var(--border); border-radius: var(--radius);
  text-decoration: none; color: var(--text1);
  transition: all .2s;
}
.dir-cat-card:hover {
  border-color: var(--accent); transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
}
.dir-cat-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent-glow), transparent);
  color: var(--accent);
}
.dir-cat-icon svg { width: 26px; height: 26px; }
.dir-cat-name { font-size: .82rem; font-weight: 600; text-align: center; line-height: 1.3; }
.dir-cat-count { font-size: .7rem; color: var(--text3); }

@media (max-width: 900px) { .dir-cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .dir-cat-grid { grid-template-columns: repeat(2, 1fr); } }

.dir-results-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0 1rem;
  padding-bottom: .75rem; border-bottom: 1px solid var(--border);
}
.dir-results-head h2 { font-size: 1.1rem; font-weight: 700; margin: 0; }
.dir-results-sub { font-size: .78rem; color: var(--text3); }
.dir-sort { display: flex; align-items: center; gap: .15rem; font-size: .78rem; color: var(--text3); }
.dir-sort > span { margin-right: .4rem; }
.dir-sort a {
  padding: .3rem .7rem; border-radius: 50px; text-decoration: none;
  color: var(--text2); transition: all .15s;
}
.dir-sort a:hover { background: var(--bg2); }
.dir-sort a.active {
  background: var(--accent-glow); color: var(--accent); font-weight: 600;
}

.dir-biz-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1rem;
}
.dir-biz-card {
  position: relative; display: flex; flex-direction: column;
  text-decoration: none; color: var(--text);
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden;
  transition: all .25s cubic-bezier(.4, 0, .2, 1);
}
.dir-biz-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,.12), 0 0 0 1px var(--accent-glow);
}
.dir-biz-cover {
  position: relative; height: 88px;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(255,255,255,.4), transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(255,255,255,.25), transparent 50%),
    linear-gradient(135deg, var(--accent), var(--accent2));
  background-size: cover; background-position: center;
}
.dir-biz-cover-pattern {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 25% 30%, rgba(255,255,255,.35) 0, transparent 25%),
    radial-gradient(circle at 75% 70%, rgba(255,255,255,.25) 0, transparent 25%);
  opacity: .5;
}
.dir-biz-cover-fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 30px;
  background: linear-gradient(to top, var(--bg2), transparent);
  pointer-events: none;
}
.dir-biz-logo {
  position: absolute; left: 1rem; bottom: -22px;
  width: 52px; height: 52px; border-radius: 12px;
  object-fit: cover; border: 3px solid var(--bg2);
  background: var(--bg1); flex-shrink: 0;
  transition: transform .25s cubic-bezier(.4, 0, .2, 1);
  z-index: 2;
}
.dir-biz-card:hover .dir-biz-logo { transform: scale(1.05); }
.dir-biz-verified {
  position: absolute; top: 8px; right: 8px;
  width: 20px; height: 20px; border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(16,185,129,.4);
  z-index: 2;
}
.dir-biz-verified svg { width: 11px; height: 11px; }
.dir-biz-online {
  position: absolute; top: 10px; left: 10px;
  width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 2px var(--bg2), 0 0 8px rgba(34,197,94,.6);
  z-index: 2;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 2px var(--bg2), 0 0 4px rgba(34,197,94,.4); }
  50% { box-shadow: 0 0 0 2px var(--bg2), 0 0 10px rgba(34,197,94,.7); }
}
.dir-biz-body { padding: 1.5rem 1rem 1rem; flex: 1; display: flex; flex-direction: column; gap: .3rem; min-height: 90px; }
.dir-biz-name {
  font-size: .92rem; font-weight: 700; color: var(--text1);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  line-height: 1.3;
}
.dir-biz-cat {
  font-size: .73rem; color: var(--text3); font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dir-biz-rating-row {
  display: flex; align-items: center; gap: .5rem;
  margin-top: auto; padding-top: .5rem;
  font-size: .72rem;
}
.dir-biz-rating {
  display: inline-flex; align-items: center; gap: .25rem;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #fff; font-weight: 700;
  padding: .2rem .55rem; border-radius: 50px;
  font-size: .7rem;
}
.dir-biz-rating .rating-count {
  font-weight: 500; opacity: .85;
}
.dir-biz-rating-empty {
  background: var(--bg3); color: var(--text3);
  padding: .2rem .55rem; border-radius: 50px;
  font-size: .7rem; font-weight: 500;
}
.dir-biz-followers {
  display: inline-flex; align-items: center; gap: .3rem;
  color: var(--text3); font-size: .72rem; font-weight: 500;
}

/* Button large */
.btn-lg { padding: .7rem 2rem; font-size: .95rem; border-radius: 10px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border); margin-top: 3rem;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 1.25rem; text-align: center;
  font-size: .78rem; color: var(--text3);
}

/* New Homepage (guest landing) */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 16px;
  padding: 3.5rem 1.5rem 2.5rem;
  text-align: center; color: #fff;
  margin: 1.5rem 0 2.5rem;
  box-shadow: 0 10px 40px rgba(0,0,0,.15);
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 15% 20%, rgba(255,255,255,.3), transparent 40%),
    radial-gradient(ellipse at 85% 80%, rgba(255,255,255,.2), transparent 40%);
  opacity: .6;
}
.hero-content { position: relative; max-width: 720px; margin: 0 auto; }
.hero-badge {
  display: inline-block; background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.3); backdrop-filter: blur(8px);
  font-size: .75rem; font-weight: 600; padding: .35rem 1rem;
  border-radius: 50px; margin-bottom: 1.25rem;
  letter-spacing: .02em;
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; line-height: 1.1;
  margin: 0 0 1rem; text-shadow: 0 2px 12px rgba(0,0,0,.15);
  letter-spacing: -.02em;
}
.hero-sub {
  font-size: 1rem; opacity: .95; max-width: 540px; margin: 0 auto 1.75rem;
  line-height: 1.5;
}
.hero-cta { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }
.hero-btn-primary {
  background: #fff !important; color: var(--accent) !important;
  font-size: .95rem; font-weight: 700; padding: .75rem 1.75rem !important;
  border-radius: 50px; box-shadow: 0 4px 14px rgba(0,0,0,.15);
  transition: transform .2s, box-shadow .2s;
}
.hero-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
.hero-btn-secondary {
  background: rgba(255,255,255,.15); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.35);
  color: #fff; font-size: .95rem; font-weight: 600;
  padding: .75rem 1.75rem; border-radius: 50px;
  text-decoration: none; transition: background .2s;
}
.hero-btn-secondary:hover { background: rgba(255,255,255,.25); }
.hero-stats {
  display: flex; align-items: center; justify-content: center;
  gap: 1.5rem; flex-wrap: wrap; margin-top: 2rem; font-size: .85rem;
}
.hero-stats > div:not(.sep) { display: flex; flex-direction: column; align-items: center; gap: .1rem; }
.hero-stats strong { font-size: 1.3rem; font-weight: 800; }
.hero-stats span { opacity: .85; font-size: .75rem; }
.hero-stats .sep { width: 1px; height: 28px; background: rgba(255,255,255,.3); }
@media (max-width: 600px) {
  .hero { padding: 2.5rem 1.25rem 2rem; }
  .hero-stats .sep { display: none; }
  .hero-stats { gap: 1.25rem; }
}

.section-head { text-align: center; margin-bottom: 2rem; }
.section-eyebrow {
  display: inline-block; font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--accent); margin-bottom: .5rem;
}
.section-head h2 {
  font-size: 1.6rem; font-weight: 800; margin: 0 0 .5rem;
  letter-spacing: -.01em; color: var(--text1);
}
.section-head p { color: var(--text2); font-size: .9rem; margin: 0; }

.features-section { margin: 3rem 0; }
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.feature-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 14px; padding: 1.5rem;
  transition: all .25s;
}
.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,.08);
}
.feature-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-icon.ic-1 { background: rgba(59,130,246,.12); color: #3b82f6; }
.feature-icon.ic-2 { background: rgba(168,85,247,.12); color: #a855f7; }
.feature-icon.ic-3 { background: rgba(34,197,94,.12); color: #22c55e; }
.feature-icon.ic-4 { background: rgba(245,158,11,.12); color: #f59e0b; }
.feature-icon.ic-5 { background: rgba(236,72,153,.12); color: #ec4899; }
.feature-icon.ic-6 { background: rgba(20,184,166,.12); color: #14b8a6; }
.feature-card h3 { font-size: 1rem; font-weight: 700; margin: 0 0 .35rem; color: var(--text1); }
.feature-card p { font-size: .82rem; color: var(--text2); margin: 0; line-height: 1.5; }
@media (max-width: 800px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .features-grid { grid-template-columns: 1fr; } }

.featured-section { margin: 3rem 0; }
.featured-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.featured-card {
  display: block; text-decoration: none; color: var(--text);
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden;
  transition: all .25s;
}
.featured-card:hover {
  border-color: var(--accent); transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,.08);
}
.featured-cover {
  position: relative; height: 70px;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(255,255,255,.3), transparent 50%),
    linear-gradient(135deg, var(--accent), var(--accent2));
  background-size: cover; background-position: center;
}
.featured-check {
  position: absolute; top: 8px; right: 8px;
  width: 20px; height: 20px; border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 700;
  box-shadow: 0 2px 6px rgba(16,185,129,.4);
}
.featured-body { padding: 1.5rem 1rem 1rem; position: relative; }
.featured-logo {
  position: absolute; left: 1rem; top: -28px;
  width: 48px; height: 48px; border-radius: 12px;
  object-fit: cover; border: 3px solid var(--bg2);
  background: var(--bg1);
}
.featured-name {
  font-size: .9rem; font-weight: 700; color: var(--text1);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.featured-cat { font-size: .72rem; color: var(--text3); margin-top: .15rem; }
.featured-more { text-align: center; margin-top: 1.5rem; }
@media (max-width: 800px) { .featured-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .featured-grid { grid-template-columns: 1fr; } }

.cta-section { margin: 3rem 0 2rem; }
.cta-card {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 16px; padding: 2.5rem 1.5rem;
  text-align: center; color: #fff; position: relative; overflow: hidden;
}
.cta-card::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,.2), transparent 40%),
    radial-gradient(circle at 80% 50%, rgba(255,255,255,.15), transparent 40%);
}
.cta-card h2 { position: relative; font-size: 1.5rem; font-weight: 800; margin: 0 0 .5rem; }
.cta-card p { position: relative; font-size: .92rem; opacity: .95; margin: 0 0 1.25rem; max-width: 480px; margin-left: auto; margin-right: auto; }
.cta-buttons { position: relative; display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }
.btn-outline-light {
  background: transparent; border: 1.5px solid rgba(255,255,255,.5);
  color: #fff; font-size: .9rem; font-weight: 600;
  padding: .6rem 1.5rem; border-radius: 50px;
  text-decoration: none; transition: all .2s;
}
.btn-outline-light:hover { background: rgba(255,255,255,.15); border-color: #fff; }

/* Collection page */
.collection-header { margin-bottom: 1.25rem; }
.collection-header h1 {
  font-size: 1.35rem; font-weight: 800; margin: 0 0 .25rem;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -.01em;
}
.collection-header p { color: var(--text2); font-size: .85rem; margin: 0; }

.collection-tabs {
  display: flex; gap: .5rem; margin-bottom: 1rem;
  border-bottom: 1px solid var(--border); padding-bottom: 0;
}
.collection-tab {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .55rem 1rem; color: var(--text2);
  font-size: .85rem; font-weight: 500;
  text-decoration: none; border-bottom: 2px solid transparent;
  margin-bottom: -1px; transition: all .15s;
}
.collection-tab:hover { color: var(--text); }
.collection-tab.active {
  color: var(--accent); border-bottom-color: var(--accent); font-weight: 600;
}

.collection-summary {
  display: flex; align-items: center; gap: .65rem;
  font-size: .78rem; color: var(--text3);
  margin-bottom: 1rem; padding: .5rem .75rem;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 8px; width: fit-content;
}
.collection-summary strong { color: var(--text1); font-weight: 700; }
.collection-summary .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text3); }

.collection-cat-section { margin-bottom: 1.5rem; }
.collection-cat-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: .6rem; padding-bottom: .35rem;
  border-bottom: 1px solid var(--border);
}
.collection-cat-head h2 {
  font-size: .85rem; font-weight: 700; margin: 0;
  color: var(--text1); text-transform: uppercase; letter-spacing: .04em;
}
.collection-cat-count { font-size: .72rem; color: var(--text3); font-weight: 500; }

.collection-list { display: flex; flex-direction: column; gap: .35rem; }
.collection-item {
  display: flex; align-items: center; gap: .85rem;
  padding: .65rem .85rem; text-decoration: none; color: var(--text);
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 10px; transition: all .15s;
}
.collection-item:hover {
  border-color: var(--accent);
  background: var(--bg);
  transform: translateX(2px);
}
.collection-item-logo {
  position: relative; width: 38px; height: 38px; flex-shrink: 0;
}
.collection-item-logo img {
  width: 100%; height: 100%; border-radius: 10px; object-fit: cover;
  background: var(--bg1);
}
.collection-online {
  position: absolute; bottom: -2px; right: -2px;
  width: 10px; height: 10px; border-radius: 50%;
  background: #22c55e; border: 2px solid var(--bg2);
  box-shadow: 0 0 6px rgba(34,197,94,.5);
}
.collection-item-body { flex: 1; min-width: 0; }
.collection-item-name {
  font-size: .85rem; font-weight: 600; color: var(--text1);
  display: flex; align-items: center; gap: .3rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.collection-verified {
  display: inline-flex; align-items: center; justify-content: center;
  width: 13px; height: 13px; border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #059669); color: #fff;
  flex-shrink: 0;
}
.collection-item-loc { font-size: .72rem; color: var(--text3); margin-top: 1px; }
.collection-item-arrow { color: var(--text3); flex-shrink: 0; transition: color .15s, transform .15s; }
.collection-item:hover .collection-item-arrow { color: var(--accent); transform: translateX(2px); }

@media (max-width: 500px) {
  .collection-tabs { overflow-x: auto; }
  .collection-summary { font-size: .75rem; }
}
