/* ============================================
   NudeStuds.com - Premium Dark Theme
   ============================================ */

/* --- CSS Variables --- */
:root {
  --bg-primary: #0b0b12;
  --bg-secondary: #13131d;
  --bg-card: #1a1a28;
  --bg-card-hover: #222236;
  --bg-surface: #16162299;
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --text-primary: #f0f0f5;
  --text-secondary: #9d9db5;
  --text-muted: #6b6b82;
  --accent: #7c5cfc;
  --accent-light: #9b7fff;
  --accent-glow: rgba(124, 92, 252, 0.25);
  --live-red: #ff3b5c;
  --live-glow: rgba(255, 59, 92, 0.4);
  --gradient-accent: linear-gradient(135deg, #7c5cfc, #e040fb);
  --gradient-card: linear-gradient(145deg, #1a1a28 0%, #1e1e32 100%);
  --gradient-hero: linear-gradient(180deg, #13131d 0%, #0b0b12 100%);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-card-hover: 0 8px 40px rgba(0, 0, 0, 0.6), 0 0 20px var(--accent-glow);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Global Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  background: var(--bg-primary);
  scroll-behavior: smooth;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

a {
  color: var(--accent-light);
  transition: color var(--transition);
}

a:hover {
  color: #c9a6ff;
}

::selection {
  background: var(--accent);
  color: white;
}

/* --- Navbar --- */
.navbar {
  background: rgba(11, 11, 18, 0.85) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.35rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-brand .navbar-item {
  padding: 0.4rem 0.75rem;
}

.navbar-brand img {
  max-height: 2rem;
}

.navbar-item, .navbar-link {
  color: var(--text-secondary) !important;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color var(--transition);
}

.navbar-item:hover, .navbar-link:hover,
.navbar-item.is-active {
  color: var(--text-primary) !important;
  background: transparent !important;
}

.navbar-dropdown {
  background: var(--bg-secondary) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: var(--radius-md) !important;
  border-top: 2px solid var(--accent) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5) !important;
  padding: 0.5rem 0 !important;
}

.navbar-dropdown .navbar-item {
  font-size: 0.85rem;
  padding: 0.5rem 1.25rem;
  border-radius: 0;
}

.navbar-dropdown .navbar-item:hover {
  background: rgba(124, 92, 252, 0.1) !important;
  color: var(--accent-light) !important;
}

.navbar-divider {
  background: var(--border-subtle);
}

.navbar-burger span {
  color: var(--text-secondary);
  background-color: var(--text-secondary) !important;
  height: 2px !important;
}

.navbar-menu.is-active {
  background: var(--bg-secondary) !important;
  border-top: 1px solid var(--border-subtle);
  padding: 1rem;
}

/* --- Search Bar --- */
.navbar .input {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  font-size: 0.85rem;
  padding: 0.5rem 0.85rem;
  transition: all var(--transition);
}

.navbar .input::placeholder {
  color: var(--text-muted);
}

.navbar .input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
  outline: none;
  background: rgba(255, 255, 255, 0.08);
}

.navbar .button.is-danger {
  background: var(--gradient-accent) !important;
  border: none;
  color: white !important;
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 0.5rem 1rem;
}

.navbar .button.is-danger:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* --- Breadcrumbs --- */
.breadcrumb {
  background: transparent;
  padding: 0.5rem 0;
}

.breadcrumb ul {
  list-style: none;
}

.breadcrumb a {
  color: var(--text-muted) !important;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

.breadcrumb .is-active a {
  color: var(--accent-light) !important;
}

.breadcrumb li + li::before {
  color: var(--text-muted);
}

/* --- Container --- */
.container {
  max-width: 1280px;
}

/* --- Hero / Page Headers --- */
.title, h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary) !important;
}

h1.title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.subtitle {
  color: var(--text-secondary) !important;
}

/* --- Hero Section --- */
.hero-section {
  text-align: center;
  padding: 2.5rem 1rem 1.5rem;
}

.hero-section h1 {
  font-size: 2.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fff 30%, var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.hero-section .online-count {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 59, 92, 0.12);
  border: 1px solid rgba(255, 59, 92, 0.2);
  border-radius: 50px;
  padding: 0.4rem 1rem;
  font-size: 0.9rem;
  color: var(--live-red);
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero-section .online-count .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--live-red);
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--live-glow); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px transparent; }
}

/* --- Intro Box --- */
.intro-box {
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.intro-box p {
  margin-bottom: 0.75rem;
}

.intro-box p:last-child {
  margin-bottom: 0;
}

.intro-box a {
  color: var(--accent-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --- Tags Section --- */
.tags-section {
  margin-bottom: 2rem;
}

.tags-section h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-secondary) !important;
}

.tag-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(124, 92, 252, 0.1);
  border: 1px solid rgba(124, 92, 252, 0.2);
  border-radius: 50px;
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-light);
  transition: all var(--transition);
  text-decoration: none;
}

.tag-pill:hover {
  background: rgba(124, 92, 252, 0.2);
  border-color: rgba(124, 92, 252, 0.4);
  color: #c9a6ff;
  transform: translateY(-1px);
}

.tag-pill .tag-count {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* --- Model Cards Grid --- */
.models-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

@media screen and (max-width: 1023px) {
  .models-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (max-width: 768px) {
  .models-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }
}

@media screen and (max-width: 480px) {
  .models-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
}

/* --- Model Card --- */
.model-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition);
  cursor: pointer;
}

.model-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.model-card a {
  text-decoration: none;
  color: inherit;
}

.model-card .card-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-secondary);
}

.model-card .card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.model-card:hover .card-thumb img {
  transform: scale(1.05);
}

.model-card .card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2.5rem 0.65rem 0.5rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  pointer-events: none;
}

.model-card .live-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--live-red);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.model-card .live-badge .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: white;
  animation: pulse 1.5s ease-in-out infinite;
}

.model-card .viewers-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  color: white;
  font-size: 0.65rem;
  font-weight: 500;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
}

.model-card .viewers-badge svg {
  width: 10px;
  height: 10px;
  opacity: 0.8;
}

.model-card .site-badge {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  font-size: 0.55rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(0, 0, 0, 0.5);
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
}

.model-card .card-info {
  padding: 0.6rem 0.65rem 0.5rem;
}

.model-card .model-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.15rem;
}

.model-card .model-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- SEO Content Sections --- */
.seo-content {
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-top: 2.5rem;
}

.seo-content h2, .seo-content h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  margin-top: 1.5rem;
}

.seo-content h2:first-child, .seo-content h3:first-child {
  margin-top: 0;
}

.seo-content p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.seo-content p:last-child {
  margin-bottom: 0;
}

/* --- Filter Form --- */
.filter-form {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}

.filter-form .columns {
  align-items: flex-end;
}

.filter-form label.label {
  color: var(--text-muted) !important;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.filter-form .select select,
.filter-form select {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  transition: all var(--transition);
}

.filter-form .select select:hover,
.filter-form select:hover {
  border-color: var(--border-hover);
}

.filter-form .select select:focus,
.filter-form select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.filter-form .select::after {
  border-color: var(--text-muted) !important;
}

.filter-form .button,
.btn-filter {
  background: var(--gradient-accent) !important;
  border: none !important;
  color: white !important;
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 0.5rem 1.5rem;
  cursor: pointer;
  transition: all var(--transition);
}

.filter-form .button:hover,
.btn-filter:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* --- Buttons --- */
.button.is-danger,
.btn-cta {
  background: var(--gradient-accent) !important;
  border: none !important;
  color: white !important;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  box-shadow: 0 4px 15px var(--accent-glow);
}

.button.is-danger:hover,
.btn-cta:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 25px var(--accent-glow);
}

.button.is-danger.is-light {
  background: rgba(124, 92, 252, 0.15) !important;
  color: var(--accent-light) !important;
  border: 1px solid rgba(124, 92, 252, 0.3) !important;
  box-shadow: none;
}

.button.is-danger.is-light:hover {
  background: rgba(124, 92, 252, 0.25) !important;
}

/* W100 CTA button */
.btn-iframe,
.button.btn-iframe {
  width: 100%;
  padding: 0.85rem 1.5rem;
  font-size: 0.95rem;
  border-radius: var(--radius-md) !important;
}

/* --- Model Detail Page --- */
.model-detail-header {
  margin-bottom: 1rem;
}

.model-detail-header h1 {
  font-size: 1.8rem;
  font-weight: 700;
}

.model-detail-header .subtitle {
  font-size: 0.95rem;
}

.model-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  margin-bottom: 1rem;
}

.model-embed iframe,
.model-embed video,
.model-embed .image {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.model-embed figure.image {
  margin: 0;
}

/* About Box */
.about-box {
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.about-box h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.about-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.about-box li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.about-box li:last-child {
  border-bottom: none;
}

.about-box .has-text-weight-bold {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  min-width: 80px;
}

.about-box .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.25rem;
}

.about-box .tag {
  background: rgba(124, 92, 252, 0.12) !important;
  border: 1px solid rgba(124, 92, 252, 0.2);
  color: var(--accent-light) !important;
  border-radius: 50px;
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  transition: all var(--transition);
}

.about-box .tag:hover {
  background: rgba(124, 92, 252, 0.25) !important;
  transform: translateY(-1px);
}

/* Ad sidebar */
.ad-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1rem;
  text-align: center;
}

.ad-sidebar img {
  border-radius: var(--radius-sm);
}

/* --- Sign-up CTA Panel --- */
.signup-panel {
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  text-align: center;
  margin-top: 1rem;
}

.signup-panel p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.signup-panel .button {
  padding: 0.65rem 2rem;
  font-size: 0.95rem;
}

/* --- Pagination --- */
.pagination .pagination-link,
.pagination .pagination-previous,
.pagination .pagination-next {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.pagination .pagination-link:hover,
.pagination .pagination-previous:hover,
.pagination .pagination-next:hover {
  border-color: var(--accent);
  color: var(--accent-light);
  background: rgba(124, 92, 252, 0.1);
}

.pagination .pagination-link.is-current {
  background: var(--gradient-accent);
  border-color: transparent;
  color: white;
}

.navigation {
  display: flex;
  justify-content: center;
}

.navigation ul {
  display: flex;
  gap: 0.35rem;
  list-style: none;
  padding: 0;
}

.navigation li a,
.navigation li span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--transition);
  text-decoration: none;
}

.navigation li a:hover {
  border-color: var(--accent);
  color: var(--accent-light);
  background: rgba(124, 92, 252, 0.1);
}

.navigation li.active span,
.navigation li.current span {
  background: var(--gradient-accent);
  border-color: transparent;
  color: white;
}

/* --- Footer --- */
.footer {
  background: var(--bg-secondary) !important;
  border-top: 1px solid var(--border-subtle);
  padding: 2rem 1.5rem !important;
  margin-top: 3rem;
}

.footer p {
  color: var(--text-muted) !important;
  font-size: 0.78rem;
  line-height: 1.6;
}

.footer .footer-text {
  font-size: 0.72rem;
}

/* --- Bulma Overrides --- */
.card {
  background: transparent;
  box-shadow: none;
}

.card-content {
  padding: 0;
}

.card-image {
  overflow: hidden;
}

.tag.is-primary.is-light {
  background: rgba(124, 92, 252, 0.12) !important;
  color: var(--accent-light) !important;
}

.tag.is-danger {
  background: var(--gradient-accent) !important;
  color: white !important;
  border-radius: 50px;
}

/* --- Multicam Page --- */
.mosaic-layout-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.mosaic-layout-1x4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.mosaic-layout-4x1 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.mosaic-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
}

.mosaic-item iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
}

.mosaic-selector .button {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-subtle) !important;
  color: var(--text-secondary) !important;
  margin: 0 0.25rem;
  border-radius: var(--radius-sm) !important;
  font-size: 0.8rem;
  transition: all var(--transition);
}

.mosaic-selector .button:hover {
  border-color: var(--accent) !important;
  color: var(--accent-light) !important;
}

/* --- Site Page --- */
.site-logo {
  border-radius: var(--radius-md);
  overflow: hidden;
  display: inline-block;
}

.site-logo img {
  border-radius: var(--radius-md);
}

/* --- Search page tags --- */
.search-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

/* --- Misc helpers --- */
.w100 {
  width: 100%;
}

.glass-panel {
  background: var(--bg-surface);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

/* --- Video Player --- */
.video-player {
  width: 100%;
  max-height: 70vh;
  background: #000;
  border-radius: var(--radius-lg);
}

/* --- Inline tags in model page --- */
.inline-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.35rem;
}

.inline-tags .has-text-weight-bold {
  margin-right: 0.25rem;
}

/* --- Form overrides --- */
.select, .input, .textarea {
  font-family: inherit;
}

/* --- Responsive fine-tuning --- */
@media screen and (max-width: 768px) {
  h1.title {
    font-size: 1.5rem;
  }

  .hero-section h1 {
    font-size: 1.6rem;
  }

  .hero-section {
    padding: 1.5rem 0.75rem 1rem;
  }

  .intro-box {
    padding: 1rem 1.25rem;
    font-size: 0.85rem;
  }

  .about-box {
    padding: 1rem;
  }

  .filter-form {
    padding: 1rem;
  }

  .seo-content {
    padding: 1.25rem;
  }

  .signup-panel {
    padding: 1.25rem;
  }

  .model-card .card-info {
    padding: 0.4rem 0.5rem;
  }

  .model-card .model-name {
    font-size: 0.78rem;
  }

  .model-card .model-meta {
    font-size: 0.65rem;
  }
}

/* --- Loading skeleton animation --- */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* --- FAQ Section --- */
.faq-section {
  margin-top: 2.5rem;
}

.faq-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #fff 30%, var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.faq-item {
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item:hover {
  border-color: var(--border-hover);
}

.faq-item summary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  list-style: none;
  user-select: none;
  transition: background var(--transition);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  margin-left: auto;
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--text-muted);
  transition: transform var(--transition), color var(--transition);
  flex-shrink: 0;
  width: 1.5rem;
  text-align: center;
}

.faq-item[open] summary::after {
  content: '\2212';
  color: var(--accent-light);
}

.faq-item summary:hover {
  background: rgba(255, 255, 255, 0.02);
}

.faq-item summary .faq-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.faq-item .faq-answer {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.75;
}

.faq-item .faq-answer p {
  margin: 0;
}

@media screen and (max-width: 768px) {
  .faq-item summary {
    padding: 0.85rem 1rem;
    font-size: 0.9rem;
    gap: 0.5rem;
  }

  .faq-item .faq-answer {
    padding: 0 1rem 1rem;
    font-size: 0.84rem;
  }

  .faq-section h2 {
    font-size: 1.25rem;
  }
}

/* ============================================
   Mobile Bottom Navigation Bar
   ============================================ */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(11, 11, 18, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid var(--border-subtle);
  padding: 0.35rem 0;
  padding-bottom: max(0.35rem, env(safe-area-inset-bottom));
}

.bottom-nav-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 480px;
  margin: 0 auto;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.3rem 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color var(--transition);
  -webkit-tap-highlight-color: transparent;
  min-width: 56px;
}

.bottom-nav-item svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.8;
}

.bottom-nav-item.is-active,
.bottom-nav-item:active {
  color: var(--accent-light);
}

.bottom-nav-item:hover {
  color: var(--text-primary);
}

/* Search overlay from bottom nav */
.search-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 300;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
}

.search-overlay.is-open {
  display: flex;
}

.search-overlay-inner {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  width: 90%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.search-overlay-inner form {
  display: flex;
  gap: 0.5rem;
}

.search-overlay-inner .input {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  padding: 0.75rem 1rem;
}

.search-overlay-inner .input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
  outline: none;
}

.search-overlay-inner .button {
  border-radius: var(--radius-sm);
  padding: 0.75rem 1.25rem;
  font-size: 0.9rem;
}

.search-overlay-close {
  display: block;
  text-align: center;
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0.5rem;
}

@media screen and (max-width: 768px) {
  .bottom-nav {
    display: block;
  }

  /* Hide burger menu on mobile since we have bottom nav */
  .navbar-burger {
    display: none !important;
  }

  /* Hide desktop navbar links on mobile */
  .navbar-menu {
    display: none !important;
  }

  /* Add bottom padding to body so content isn't hidden behind bottom nav */
  body {
    padding-bottom: 70px;
  }

  /* Footer needs extra bottom margin */
  .footer {
    margin-bottom: 0;
    padding-bottom: calc(1.5rem + 70px) !important;
  }
}

/* ============================================
   Quick Filter Chips (horizontal scroll)
   ============================================ */
.quick-filters {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 0.25rem 0.75rem;
  margin-bottom: 1rem;
}

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

.quick-filter-chip {
  scroll-snap-align: start;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 50px;
  padding: 0.45rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.quick-filter-chip:hover,
.quick-filter-chip:active {
  background: rgba(124, 92, 252, 0.15);
  border-color: rgba(124, 92, 252, 0.3);
  color: var(--accent-light);
}

.quick-filter-chip.is-active {
  background: var(--gradient-accent);
  border-color: transparent;
  color: white;
}

.quick-filter-chip svg {
  width: 14px;
  height: 14px;
  opacity: 0.7;
}

/* ============================================
   Loading Spinner (infinite scroll)
   ============================================ */
.load-spinner {
  display: none;
  justify-content: center;
  align-items: center;
  padding: 2rem 0;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.load-spinner.is-visible {
  display: flex;
}

.load-spinner .spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-subtle);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================
   Back to Top Button
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.25rem;
  z-index: 150;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  color: var(--text-secondary);
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--transition);
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  -webkit-tap-highlight-color: transparent;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: rgba(124, 92, 252, 0.2);
  border-color: var(--accent);
  color: var(--accent-light);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

@media screen and (max-width: 768px) {
  .back-to-top {
    bottom: 80px;
    right: 1rem;
    width: 40px;
    height: 40px;
  }
}

/* --- Hide default Bulma cards styling conflicts --- */
.columns.is-multiline .column .card {
  box-shadow: none;
  background: transparent;
}
