/* ===== FanExplorer Premium Redesign ===== */

:root {
  color-scheme: light;
  --accent:        #0099b8;
  --accent-hover:  #007a94;
  --accent-light:  #e0f6fb;
  --accent-glow:   rgba(0,153,184,.15);
  --navy:          #0f2540;
  --bg:            #f8fafc;
  --surface:       #ffffff;
  --surface2:      #f1f5f9;
  --border:        #e2e8f0;
  --text:          #0f2540;
  --text2:         #475569;
  --muted:         #94a3b8;
  --green:         #16a34a;
  --radius-sm:     .5rem;
  --radius:        .875rem;
  --radius-lg:     1.25rem;
  --shadow-sm:     0 1px 3px rgba(15,37,64,.07);
  --shadow:        0 4px 16px rgba(15,37,64,.09);
  --shadow-lg:     0 12px 40px rgba(15,37,64,.14);

  /* Legacy compat aliases */
  --app-bg:   var(--surface);
  --app-text: var(--text);
  --card-bg:  var(--surface);
  --tag-bg:   #0099b8;
  --tag-text: #fff;
}

[data-bs-theme='dark'],
html.dark-mode {
  color-scheme: dark;
  --bg:          #070d1a;
  --surface:     #0f1e35;
  --surface2:    #162033;
  --border:      #1e3352;
  --text:        #e8f0fe;
  --text2:       #94a3b8;
  --muted:       #64748b;
  --accent-light:#0a2d40;

  /* Legacy compat aliases */
  --app-bg:   var(--surface);
  --app-text: var(--text);
  --card-bg:  var(--surface);
}

html, body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background-color: var(--bg);
  color: var(--text);
}

html.dark-mode,
html.dark-mode body {
  background-color: var(--bg);
  color: var(--text);
}

/* ===== Navbar ===== */
.site-navbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border);
  padding: .6rem 0;
}

html.dark-mode .site-navbar,
[data-bs-theme='dark'] .site-navbar {
  background: rgba(7,13,26,.85);
}

.site-navbar .navbar-brand {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: .55rem;
}

.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: .5rem;
  background: linear-gradient(135deg, #0099b8 0%, #0066aa 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-fan {
  color: var(--text);
  font-weight: 300;
  font-size: 1.4rem;
}

.brand-explorer {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.4rem;
}

.site-navbar .nav-link {
  color: var(--text2);
  font-size: .875rem;
  font-weight: 500;
  padding: .4rem .75rem;
  border-radius: .5rem;
  transition: color .15s, background .15s;
}

.site-navbar .nav-link:hover {
  color: var(--accent);
  background: var(--accent-light);
}

.btn-accent {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: .45rem 1.1rem;
  font-weight: 600;
  font-size: .875rem;
  transition: background .15s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.btn-accent:hover {
  background: var(--accent-hover);
  color: #fff;
}

#darkToggle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border) !important;
  background: var(--surface) !important;
  color: var(--text2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  font-size: .9rem;
}

#darkToggle .theme-icon {
  font-size: .9rem;
  line-height: 1;
}
.top-banner-ad {
  text-align: center;
  padding: .75rem 1rem;
  background: var(--surface2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.top-banner-ad,
.top-banner-ad--footer {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.top-banner-ad ins {
  display: block;
  margin: 0 auto;
  min-height: 90px;
  max-width: 100%;
}

/* ===== Hero / Landing ===== */
.hero-section {
  background: var(--surface);
  color: var(--text);
  padding: 4rem 1.5rem 0;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 999px;
  padding: .3rem .85rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero-section h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 300;
  line-height: 1.2;
  color: var(--text);
  text-wrap: pretty;
  margin-bottom: .75rem;
}

.hero-section h1 strong {
  font-weight: 700;
  color: var(--accent);
  font-style: italic;
}

.hero-section .lead {
  font-size: 1.05rem;
  color: var(--text2);
  max-width: 520px;
  margin: 0 auto 2rem;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  padding: 1.25rem 1.5rem;
  margin-top: .5rem;
  border-top: 1px solid var(--border);
  background: var(--surface2);
}

.hero-stat-number {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  display: block;
}

.hero-stat-label {
  font-size: .75rem;
  color: var(--muted);
  display: block;
  margin-top: .1rem;
}

/* ===== Search bar ===== */
.search-bar-wrapper {
  max-width: 660px;
  margin: 0 auto 1.5rem;
}

.search-bar {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: .35rem .35rem .35rem 1.35rem;
  box-shadow: var(--shadow);
  transition: border-color .2s, box-shadow .2s;
}

.search-bar:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow), var(--shadow);
  will-change: transform;
}

.search-bar input {
  border: none;
  outline: none;
  background: transparent;
  flex: 1;
  font-size: 1rem;
  color: var(--text);
  padding: .5rem 0;
  font-family: inherit;
}

.search-bar input::placeholder {
  color: var(--muted);
}

.search-bar .search-icon {
  color: var(--muted);
  margin-right: .6rem;
  font-size: 1.1rem;
}

.search-bar .btn-search {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: .6rem 1.6rem;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: background .15s ease;
  font-family: inherit;
}

.search-bar .btn-search:hover {
  background: var(--accent-hover);
}

/* ===== Quick search pills ===== */
.quick-search {
  max-width: 700px;
  margin: 0 auto 0;
  text-align: center;
  padding-bottom: 1.5rem;
}

.quick-search-label {
  font-size: .8rem;
  color: var(--muted);
  margin-bottom: .6rem;
  display: block;
}

.quick-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
  max-width: 660px;
  margin: 0 auto;
}

.quick-pill {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .3rem .85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text2);
  font-size: .82rem;
  font-weight: 500;
  text-decoration: none;
  transition: all .15s;
}

.quick-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

.quick-pill-link {
  color: var(--accent);
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
  margin-left: .25rem;
}

.quick-pill-link:hover {
  text-decoration: underline;
}

/* Legacy location search form */
.location-search-form {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: .35rem .35rem .35rem 1.35rem;
  box-shadow: var(--shadow-sm);
  transition: border-color .2s, box-shadow .2s;
  max-width: 100%;
  width: 420px;
}

.location-search-form:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

.location-search-input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: .95rem;
  padding: .5rem 0;
  font-family: inherit;
}

.location-search-input::placeholder {
  color: var(--muted);
}

.location-search-form .btn-search {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: .55rem 1.5rem;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: background .15s ease;
  flex-shrink: 0;
  font-family: inherit;
}

.location-search-form .btn-search:hover {
  background: var(--accent-hover);
}

/* ===== Top filter bar ===== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  padding: .75rem 0 1rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.25rem;
}

.filter-btn,
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .4rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text2);
  font-size: .84rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
  text-decoration: none;
  white-space: nowrap;
  font-family: inherit;
}

.filter-btn:hover,
.filter-chip:hover,
.filter-btn.active,
.filter-chip.active {
  border-color: var(--accent);
  color: var(--accent);
}

.filter-btn.active,
.filter-chip.active {
  background: var(--accent-light);
}

.filter-btn .arrow {
  font-size: .65rem;
  margin-left: .15rem;
}

/* ===== Results header ===== */
.results-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: .5rem 0;
  margin-bottom: .5rem;
}

.results-count {
  font-size: .9rem;
  color: var(--muted);
}

/* ===== Creator cards ===== */
.creator-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border) !important;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  contain: layout style paint;
}

.creator-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent) !important;
}

.card-img-top {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  width: 100%;
  transition: transform .35s ease;
}

.creator-card:hover .card-img-top {
  transform: scale(1.04);
}

.img-spacer {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, var(--surface2) 0%, var(--border) 100%);
}

/* Tag overlays on card image */
.card-tags {
  position: absolute;
  top: .5rem;
  left: .5rem;
  right: 3.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  z-index: 2;
}

.card-tag {
  display: inline-block;
  padding: .18rem .55rem;
  border-radius: 999px;
  background: rgba(7,13,26,.55);
  color: #fff;
  font-size: .68rem;
  font-weight: 600;
  text-transform: capitalize;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.card-tag-accent {
  background: rgba(0,153,184,.75);
}

.card-tag-more {
  background: rgba(0,0,0,.5);
}

/* Price badge overlay (top-right) */
.card-price-badge {
  position: absolute;
  top: .5rem;
  right: .5rem;
  z-index: 3;
  padding: .22rem .65rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 6px rgba(0,0,0,.15);
  white-space: nowrap;
}

.card-price-badge.free {
  background: #16a34a;
  color: #fff;
}

/* Card body */
.creator-card .card-body {
  padding: .7rem .85rem .75rem;
}

.creator-card .card-footer {
  padding: .25rem .85rem .75rem;
  background: transparent;
  border: none;
}

.creator-name {
  font-size: .9rem;
  font-weight: 600;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
}

.creator-username {
  font-size: .76rem;
  color: var(--muted);
  margin: .1rem 0 0;
}

/* Legacy price in card body */
.creator-name .price {
  font-weight: 700;
  color: var(--text);
  font-size: .9rem;
  white-space: nowrap;
}

.creator-name .price.free {
  color: #16a34a;
}

/* ===== Badge price (legacy) ===== */
.badge-price {
  position: absolute;
  top: .5rem;
  right: .5rem;
  z-index: 3;
  font-size: .75rem;
  padding: .35rem .65rem;
  border-radius: 999px;
  font-weight: 700;
}

.badge-free {
  background-color: #16a34a;
  color: #fff;
}

.badge-paid {
  background-color: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 6px rgba(0,0,0,.15);
}

/* ===== Chips ===== */
.chip {
  display: inline-block;
  padding: .15rem .55rem;
  background: var(--surface2);
  color: var(--text2);
  border-radius: 999px;
  margin: 0 .25rem .25rem 0;
  font-size: .75rem;
}

/* ===== Filter pills (active filters) ===== */
.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .3rem .75rem;
  border-radius: 999px;
  background: var(--accent-light);
  color: var(--accent);
  border: 1px solid var(--accent);
  font-weight: 600;
  font-size: .82rem;
  text-decoration: none;
  transition: all .15s;
}

.filter-pill:hover,
.filter-pill:focus {
  text-decoration: none;
  background: var(--accent);
  color: #fff;
}

.filter-reset {
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  font-size: .85rem;
}

.filter-reset:hover,
.filter-reset:focus {
  text-decoration: underline;
}

/* ===== More filters panel ===== */
.more-filters-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}

/* ===== Promo / ad cards ===== */
.promo-card {
  aspect-ratio: 3 / 5;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
}

.promo-card .card-body {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.promo-card ins {
  margin: 0 auto;
  display: block;
  min-height: 250px;
  width: 100%;
}

.featured-widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  text-align: center;
  overflow: hidden;
  min-height: 120px;
  contain: none;
}

.featured-widget ins {
  display: block;
  width: 100%;
  min-height: 90px;
}

.featured-label {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  margin-bottom: .5rem;
}

.featured-widget,
.featured-widget * {
  color: var(--text) !important;
}

.featured-widget a {
  color: var(--text) !important;
}

/* ===== Ad blocker notice ===== */
.ab-notice {
  display: none;
  background: linear-gradient(90deg, #fef3c7 0%, #fde68a 100%);
  border-bottom: 1px solid #f59e0b;
  padding: .75rem 1rem;
  text-align: center;
  font-size: .875rem;
  color: #92400e;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1050;
}

.ab-notice.visible { display: block; }

.ab-notice-close {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 1.25rem;
  color: #92400e;
  cursor: pointer;
  line-height: 1;
}

/* ===== Focus visible ===== */
.btn:focus-visible,
.nav-link:focus-visible,
.page-link:focus-visible,
.dropdown-item:focus-visible,
.filter-pill:focus-visible,
.filter-reset:focus-visible,
.external-link:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* ===== Profile page ===== */
.profile-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 2.25rem;
  align-items: start;
}

@media (max-width: 780px) {
  .profile-layout {
    grid-template-columns: 1fr;
  }
}

/* Left column: sticky image card */
.profile-image-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: sticky;
  top: calc(70px + 1rem);
  z-index: 2;
}

.profile-image-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}

.profile-image-card .img-spacer {
  aspect-ratio: 3 / 4;
}

.profile-image-meta {
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.profile-price-label {
  font-size: .78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.profile-price-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
}

.profile-price-value.free {
  color: var(--green);
}

.profile-cta-btn {
  display: block;
  width: 100%;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: .75rem 1.5rem;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
  transition: background .15s;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.profile-cta-btn:hover {
  background: var(--accent-hover);
  color: #fff;
}

.profile-cta-btn.free {
  background: var(--green);
}

.profile-cta-btn.free:hover {
  background: #15803d;
}

/* Right column */
.profile-details h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .15rem;
}

.profile-handle {
  font-size: .95rem;
  color: var(--muted);
  margin-bottom: .75rem;
}

/* Profile badges row */
.profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.5rem;
}

.profile-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .3rem .8rem;
  border-radius: 999px;
  background: var(--surface2);
  border: 1px solid var(--border);
  font-size: .82rem;
  font-weight: 500;
  color: var(--text2);
  text-decoration: none;
  transition: all .15s;
}

.profile-badge:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

.profile-badge-accent {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent);
}

/* Section cards */
.profile-section-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  margin-bottom: 1rem;
}

.profile-section-title {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

/* Stats grid in profile */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
}

@media (max-width: 540px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat-tile {
  background: var(--surface2);
  border-radius: var(--radius-sm);
  padding: .85rem 1rem;
}

.stat-label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  margin-bottom: .3rem;
  display: block;
}

.stat-value {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  display: block;
}

.stat-value.free { color: var(--green); }

/* External links */
.ext-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface2);
  text-decoration: none;
  color: var(--text);
  transition: border-color .15s;
  margin-bottom: .5rem;
}

.ext-link:last-child { margin-bottom: 0; }

.ext-link:hover { border-color: var(--accent); }

.ext-link-label {
  font-weight: 600;
  font-size: .9rem;
  color: var(--text);
}

.ext-link-url {
  color: var(--muted);
  font-size: .8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 45%;
}

/* Legacy profile styles kept for fallback */
.profile-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.profile-card-img {
  overflow: hidden;
}

.profile-card-img img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  display: block;
}

.profile-card-body {
  padding: 1.5rem;
}

.profile-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: .25rem;
  color: var(--text);
}

.profile-card-subtitle {
  font-size: .9rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.profile-meta-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.profile-meta-link:hover {
  text-decoration: underline;
}

.profile-meta-sep {
  margin: 0 .25rem;
  color: var(--muted);
}

.profile-section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* ===== Profile page stats (legacy) ===== */
.profile-stats {
  --profile-stat-bg: var(--surface2);
}

.profile-stat-card {
  background: var(--profile-stat-bg);
  border-radius: var(--radius-sm);
  padding: .85rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: .35rem;
  text-align: left;
}

.profile-stat-card .profile-stat-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

.profile-stat-card .profile-stat-label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
}

@media (max-width: 575.98px) {
  .profile-stat-card {
    align-items: center;
    text-align: center;
  }
}

/* ===== Account stats ===== */
.account-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .35rem;
  padding-left: 0;
}

.account-stats .list-inline-item {
  background: var(--surface2);
  border-radius: 999px;
  padding: .2rem .6rem;
  margin: 0;
  color: var(--text2);
}

.account-stats .list-inline-item strong {
  margin-left: .25rem;
  color: var(--text);
}

/* ===== External links (legacy) ===== */
.profile-links .external-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  background: var(--surface2);
  border-radius: var(--radius-sm);
  padding: .75rem 1rem;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--border);
  transition: border-color .15s;
}

.profile-links .external-link:hover,
.profile-links .external-link:focus {
  text-decoration: none;
  border-color: var(--accent);
}

.profile-links .external-link span {
  font-weight: 600;
}

.profile-links .external-link small {
  color: var(--muted);
  font-size: .8rem;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 45%;
}

@media (max-width: 575.98px) {
  .profile-links .external-link {
    flex-direction: column;
    align-items: flex-start;
  }
  .profile-links .external-link small {
    max-width: 100%;
  }
}

/* ===== Empty state ===== */
.empty-state {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border);
}

.empty-state-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

/* ===== City link pills ===== */
.city-link-pill {
  background-color: var(--surface);
  color: var(--text2);
  border: 1px solid var(--border);
  font-weight: 500;
  line-height: 1.2;
  transition: all .15s ease;
  text-decoration: none;
  display: inline-block;
  padding: .3rem .8rem;
  border-radius: 999px;
  font-size: .84rem;
}

.city-link-pill:hover,
.city-link-pill:focus-visible {
  background-color: var(--accent-light);
  color: var(--accent);
  border-color: var(--accent);
}

.city-link-pill-active {
  background-color: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.city-link-pill-active:hover,
.city-link-pill-active:focus-visible {
  background-color: var(--accent-hover);
  color: #fff;
}

/* ===== Results meta ===== */
.results-meta .stat-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .45rem .75rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: .9rem;
}

/* ===== Skeleton loaders ===== */
.skeleton-card {
  min-height: 320px;
  border-radius: var(--radius);
  background: linear-gradient(90deg, var(--surface2) 25%, var(--border) 37%, var(--surface2) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.2s ease-in-out infinite;
}

@keyframes shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* ===== Hover lift (shared) ===== */
.hover-lift {
  transition: transform .2s ease, box-shadow .2s ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* ===== Pagination ===== */
.pagination {
  display: flex;
  gap: .4rem;
  justify-content: center;
  flex-wrap: wrap;
}

.pagination .page-link {
  color: var(--text2);
  border-color: var(--border);
  border-radius: .5rem !important;
  min-width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .875rem;
  font-weight: 500;
  background: var(--surface);
  transition: all .15s;
  padding: 0 .6rem;
}

.pagination .page-item.active .page-link {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.pagination .page-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--surface);
}

.pagination .page-item.disabled .page-link {
  opacity: .35;
}

/* Custom page-btn (used in redesigned pagination) */
.page-btn {
  min-width: 38px;
  height: 38px;
  border-radius: .5rem;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text2);
  font-size: .875rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all .15s;
  padding: 0 .6rem;
}

.page-btn:hover { border-color: var(--accent); color: var(--accent); }
.page-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.page-btn.disabled { opacity: .35; pointer-events: none; }

/* ===== Section headings ===== */
.section-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: .75rem;
  color: var(--text);
}

/* ===== Breadcrumb ===== */
.breadcrumb-nav {
  display: flex;
  gap: .5rem;
  align-items: center;
  font-size: .84rem;
  color: var(--muted);
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.breadcrumb-nav a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb-nav a:hover {
  color: var(--accent);
}

/* ===== Footer ===== */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.7);
  padding: 3rem 1.5rem 2rem;
}

.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem;
  max-width: 1280px;
  margin: 0 auto;
}

@media (max-width: 700px) {
  .site-footer .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.site-footer .footer-brand {
  font-size: 1.2rem;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .75rem;
}

.site-footer .footer-desc {
  color: rgba(255,255,255,.55);
  font-size: .83rem;
  line-height: 1.6;
  margin-bottom: 0;
}

.site-footer .footer-col-title {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: .85rem;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer ul li {
  margin-bottom: .45rem;
}

.site-footer ul a {
  color: rgba(255,255,255,.65);
  font-size: .84rem;
  text-decoration: none;
  transition: color .15s;
}

.site-footer ul a:hover {
  color: #fff;
}

.site-footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
  margin-top: 2rem;
  font-size: .78rem;
  color: rgba(255,255,255,.4);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.site-footer .footer-bottom a {
  color: rgba(255,255,255,.4);
  text-decoration: none;
  transition: color .15s;
}

.site-footer .footer-bottom a:hover {
  color: rgba(255,255,255,.8);
}

/* Legacy footer fallback */
footer:not(.site-footer) {
  background: var(--surface);
  border-top: 1px solid var(--border);
}

/* ===== Offcanvas filter tweaks ===== */
.offcanvas .form-select,
.offcanvas .form-control {
  border-radius: .5rem;
}

/* ===== Dark mode overrides ===== */
[data-bs-theme='dark'] .chip,
html.dark-mode .chip {
  background: var(--surface2);
  color: var(--text);
}

[data-bs-theme='dark'] .account-stats .list-inline-item,
html.dark-mode .account-stats .list-inline-item {
  background: var(--surface2);
  color: var(--text);
}

html.dark-mode .card,
html.dark-mode .list-group-item,
html.dark-mode .dropdown-menu {
  background: var(--surface) !important;
  color: var(--text);
  border-color: var(--border) !important;
}

html.dark-mode .navbar {
  background: rgba(7,13,26,.85) !important;
  border-color: var(--border) !important;
}

html.dark-mode .navbar .nav-link,
html.dark-mode .navbar-brand,
html.dark-mode .navbar-text {
  color: var(--text2) !important;
}

html.dark-mode .navbar .nav-link:hover,
html.dark-mode .navbar .nav-link:focus {
  color: var(--accent) !important;
}

html.dark-mode .navbar .navbar-toggler-icon {
  filter: invert(1) brightness(2);
}

html.dark-mode .text-muted { color: var(--text2) !important; }

html.dark-mode .bg-light { background: var(--bg) !important; }

html.dark-mode .search-bar,
html.dark-mode .location-search-form {
  background: var(--surface);
  border-color: var(--border);
}

html.dark-mode .search-bar input,
html.dark-mode .location-search-input {
  color: var(--text);
}

html.dark-mode .quick-pill {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text2);
}

html.dark-mode .quick-pill:hover {
  background: var(--accent-light);
  color: var(--accent);
  border-color: var(--accent);
}

html.dark-mode .creator-card {
  background: var(--surface);
}

html.dark-mode .profile-links .external-link,
[data-bs-theme='dark'] .profile-links .external-link {
  background: var(--surface2);
  border-color: var(--border);
  color: var(--text);
}

html.dark-mode .profile-links .external-link:hover,
[data-bs-theme='dark'] .profile-links .external-link:hover {
  border-color: var(--accent);
}

html.dark-mode .results-meta .stat-chip,
[data-bs-theme='dark'] .results-meta .stat-chip {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

html.dark-mode .more-filters-panel .card,
[data-bs-theme='dark'] .more-filters-panel .card {
  background: var(--surface);
  border-color: var(--border);
}

html.dark-mode .form-select,
html.dark-mode .form-control {
  background-color: var(--surface2);
  border-color: var(--border);
  color: var(--text);
}

/* ===== Creator Landing Pages ===== */
.creator-hero {
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--bg) 60%);
  padding: 3.5rem 1.5rem 3rem;
  text-align: center;
}

.creator-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 300;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: .75rem;
}

.creator-hero h1 strong {
  font-weight: 700;
  color: var(--accent);
}

.creator-hero-sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 1.5rem;
}

.creator-hero-cta .btn {
  padding: .7rem 2rem;
  font-size: 1.05rem;
}

.creator-stats-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}

.creator-stat-number {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
}

.creator-stat-label {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  margin-top: .15rem;
}

.creator-benefits {
  background: var(--bg);
  padding: 3rem 0;
}

.creator-benefit-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  height: 100%;
  transition: border-color .2s ease;
}

.creator-benefit-card:hover {
  border-color: var(--accent);
}

.creator-benefit-icon {
  font-size: 1.75rem;
  line-height: 1;
  flex-shrink: 0;
}

.creator-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
}

.creator-faq {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 3rem 0;
}

.creator-faq .accordion-item {
  border-color: var(--border);
  background: var(--bg);
}

.creator-faq .accordion-button {
  background: var(--bg);
  color: var(--text);
  font-weight: 600;
}

.creator-faq .accordion-button:not(.collapsed) {
  background: var(--accent-light);
  color: var(--accent);
  box-shadow: none;
}

.creator-faq .accordion-body {
  color: var(--muted);
}

.creator-final-cta {
  padding: 3.5rem 1.5rem;
  background: linear-gradient(135deg, var(--bg) 40%, var(--accent-light) 100%);
}

[data-bs-theme='dark'] .creator-hero,
html.dark-mode .creator-hero {
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--bg) 60%);
}

[data-bs-theme='dark'] .creator-final-cta,
html.dark-mode .creator-final-cta {
  background: linear-gradient(135deg, var(--bg) 40%, var(--accent-light) 100%);
}

[data-bs-theme='dark'] .creator-faq .accordion-button::after,
html.dark-mode .creator-faq .accordion-button::after {
  filter: invert(1);
}

/* ===== Responsive ===== */
@media (max-width: 767.98px) {
  .hero-section {
    padding: 2.5rem 1rem 0;
  }

  .hero-section h1 {
    font-size: clamp(1.6rem, 5vw, 2rem);
  }

  .hero-stats {
    gap: 1.5rem;
  }

  .filter-bar {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: .75rem;
  }

  .filter-btn,
  .filter-chip {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .creator-hero {
    padding: 2.5rem 1rem 2rem;
  }

  .creator-hero h1 {
    font-size: 1.5rem;
  }

  .creator-stat-number {
    font-size: 1.3rem;
  }
}

@media (max-width: 700px) {
  .site-footer .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
