:root {
  --bg: #050608;
  --panel: #0d0f12;
  --card: #121519;
  --card-hover: #161a20;
  --text: #f8fafc;
  --text-dim: #94a3b8;
  --muted: #64748b;
  --accent-red: #a30015;
  --accent-red-hover: #d1001c;
  --accent-red-glow: rgba(163, 0, 21, 0.4);
  --border: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.15);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 20px 50px -15px rgba(0, 0, 0, 0.9);
  --container-max: 1400px;
}

/* Base Reset */
* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { 
  min-height: 100%; 
  width: 100%; 
  overflow-x: hidden; 
  background-color: var(--bg);
}

body {
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  background-color: var(--bg);
}

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: -1;
  background-image: 
    radial-gradient(circle at 0% 0%, rgba(225, 29, 72, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(225, 29, 72, 0.02) 0%, transparent 50%);
  pointer-events: none;
  transform: translateZ(0);
  will-change: transform;
}

a { text-decoration: none; color: inherit; transition: all 0.2s ease; }
img { max-width: 100%; height: auto; display: block; }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5 {
  color: #fff;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }

.text-gradient {
  background: linear-gradient(to right, #fff, #94a3b8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { 
  background: var(--border-light); 
  border-radius: 10px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* Buttons */
.btn-action, button:not(.fh-filter-header), input[type="submit"] {
  background: var(--accent-red);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-md);
}

.btn-action:hover, button:not(.fh-filter-header):hover, input[type="submit"]:hover {
  background: var(--accent-red-hover);
  transform: translateY(-1px);
  box-shadow: var(--glow-red), var(--shadow-lg);
}

.btn-action:active { transform: translateY(0); }

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: #fff;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-light);
}

/* Status Badges */
.status-badge.verified {
  color: #57d46b;
  text-shadow: 0 0 12px var(--fh-glow-green), 0 2px 4px rgba(0,0,0,0.8) !important;
  font-weight: 800;
}

/* =========================================================================
   GIRLSHUB MAIN LAYOUT & COMPONENTS
   ========================================================================= */

.fh-main-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  align-items: flex-start;
  margin-top: 30px;
}

/* Filter Sidebar Redesign */
.fh-sidebar {
  width: 100%;
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  background: #000000;
  border-radius: var(--radius-lg);
  border: 1px solid var(--accent-red-glow);
  padding: 24px;
}

.fh-sidebar::-webkit-scrollbar {
  width: 4px;
}
.fh-sidebar::-webkit-scrollbar-track {
  background: transparent;
}
.fh-sidebar::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 10px;
}

/* Horizontal scroll pills for categories */
.fh-filter-pills {
  display: flex;
  overflow-x: auto;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
  scrollbar-width: none;
}
.fh-filter-pills::-webkit-scrollbar {
  display: none;
}
.fh-filter-pill {
  white-space: nowrap;
  padding: 8px 16px;
  border: 1px solid var(--accent-red-glow);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: rgba(225, 29, 72, 0.05);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.fh-filter-pill:hover, .fh-filter-pill.is-active {
  background: var(--accent-red);
  border-color: var(--accent-red);
  box-shadow: 0 0 10px var(--accent-red-glow);
}
.fh-filter-pill i {
  color: var(--accent-red);
}
.fh-filter-pill.is-active i {
  color: #fff;
}

/* Filter Groups */
.fh-filter-group {
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.fh-filter-group:last-child {
  border-bottom: none;
}

.fh-filter-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.fh-filter-header:hover {
  color: var(--accent-red);
}
.fh-filter-header i.fa-chevron-down {
  transition: transform 0.3s;
  color: var(--accent-red);
}
.fh-filter-group.is-open .fh-filter-header i.fa-chevron-down {
  transform: rotate(180deg);
}
.fh-filter-group.is-open .fh-filter-header {
  color: var(--accent-red);
}

.fh-filter-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  padding: 0;
}
.fh-filter-group.is-open .fh-filter-content {
  max-height: 2000px;
  opacity: 1;
  padding: 0 0 20px 0;
}

/* Checkboxes removed here to avoid duplication */

/* Promotion Dashboard (Screenshot 4) */
.promo-overview-card {
  background: var(--card);
  border: 1px solid var(--accent-red-glow);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}
.promo-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(225, 29, 72, 0.1);
  border: 1px solid var(--accent-red);
  padding: 12px 20px;
  border-radius: 12px;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 24px;
}
.promo-status-badge i {
  color: var(--accent-red);
  font-size: 20px;
}
.promo-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.promo-stat-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.promo-stat-item i {
  color: var(--accent-red);
  font-size: 18px;
  margin-top: 4px;
}
.promo-stat-content {
  display: flex;
  flex-direction: column;
}
.promo-stat-label {
  color: var(--text-dim);
  font-size: 13px;
  margin-bottom: 4px;
}
.promo-stat-value {
  color: #fff;
  font-weight: 700;
  font-size: 15px;
}

.promo-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.promo-tab {
  flex: 1;
  text-align: center;
  padding: 16px;
  color: var(--text-dim);
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.promo-tab.is-active {
  color: #fff;
  border-bottom-color: var(--accent-red);
}
.promo-tab i {
  color: var(--accent-red);
}

.promo-calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.promo-calendar-nav {
  background: rgba(255,255,255,0.05);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.promo-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  text-align: center;
}
.promo-calendar-day-header {
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
}
.promo-calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s;
}
.promo-calendar-day:hover {
  background: rgba(255,255,255,0.1);
}
.promo-calendar-day.is-active {
  background: var(--accent-red);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 0 10px var(--accent-red-glow);
}
.promo-calendar-day.is-muted {
  color: var(--muted);
}
.fh-content {
  flex: 1;
  min-width: 0;
}

/* Search Container */
.fh-top-search-container {
  background: rgba(13, 15, 18, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
  position: sticky;
  top: 0;
  z-index: 900;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.fh-top-search {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.fh-top-search-input-wrap {
  flex: 1;
  position: relative;
}

.fh-top-search-select-wrap {
  position: relative;
}

.fh-top-search-input-wrap i {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 16px;
  pointer-events: none;
  z-index: 2;
}

.fh-top-search-input {
  width: 100%;
  height: 52px;
  padding: 0 20px 0 52px !important;
  text-align: left;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.fh-top-search-input:focus {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent-red);
  box-shadow: 0 0 0 4px var(--accent-red-glow);
  outline: none;
}

.fh-top-search-select {
  width: 200px;
  height: 52px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: #fff;
  padding: 0 40px 0 20px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 14px;
  transition: all 0.3s;
}

.fh-top-search-select:focus {
  border-color: var(--accent-red);
  outline: none;
}

.fh-top-search-submit {
  padding: 0 32px;
  height: 52px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Old Sidebar Filters removed */

.fh-filter-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 4px;
  cursor: pointer;
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  user-select: none;
  border-radius: 6px;
}

.fh-filter-option:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
}

.fh-filter-option input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--accent-red);
  border-radius: 4px;
  background: transparent;
  position: relative;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.fh-filter-option input[type="checkbox"]:checked {
  background: var(--accent-red);
  border-color: var(--accent-red);
  box-shadow: 0 0 10px var(--accent-red-glow);
}

.fh-filter-option input[type="checkbox"]:checked::after {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 11px;
  color: #fff;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.fh-filter-reset {
  display: inline-block;
  color: var(--accent-red);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
}

.fh-filter-reset:hover {
  color: #fff;
  text-shadow: 0 0 8px var(--accent-red-glow);
}

.fh-filter-search-row {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  align-items: stretch;
}

.fh-filter-search-btn {
  height: 44px;
  padding: 0 16px;
  font-size: 13px;
  border-radius: 8px;
  white-space: nowrap;
  margin: 0;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile Adjustments */
@media (max-width: 992px) {
  .fh-main-layout {
    flex-direction: column;
  }
  .fh-sidebar {
    width: 100%;
    position: static;
    max-height: none;
    display: block;
    margin-bottom: 24px;
  }
  .fh-filter-group {
    width: 100%;
    margin-bottom: 4px;
  }
  .fh-filter-content {
    position: static;
    width: 100%;
    box-shadow: none;
    border: none;
  }
}

@media (max-width: 480px) {
  .fh-filter-search-row {
    flex-direction: column;
  }
  .fh-filter-search-btn {
    width: 100%;
    white-space: normal;
  }
}

@media (max-width: 768px) {
  .fh-top-search {
    flex-direction: column;
    width: 100%;
  }
  .fh-top-search-select,
  .fh-top-search-submit,
  .fh-top-search-input-wrap,
  .fh-top-search-select-wrap {
    width: 100% !important;
  }
}

/* Ad Card Polish */
.ad-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-md);
}

.ad-card:hover {
  transform: translateY(-8px);
  background: var(--card-hover);
  border-color: var(--accent-red);
  box-shadow: 0 20px 40px -20px rgba(225, 29, 72, 0.3), var(--shadow-lg);
}

.ad-card-gold {
  border-color: #fbbf24 !important;
  box-shadow: 0 0 25px rgba(251, 191, 36, 0.1), var(--shadow-md) !important;
}

.ad-card-gold:hover {
  box-shadow: 0 0 35px rgba(251, 191, 36, 0.15), var(--shadow-lg) !important;
}

.ad-image-container {
  width: 100%;
  aspect-ratio: 3/4;
  height: auto;
  background: #0f1115;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-card-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
  opacity: 0.5;
}

.ad-card-placeholder i {
  font-size: 48px;
}

.ad-card-placeholder span {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ad-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.2, 0, 0.2, 1);
}

.ad-card:hover .ad-card-img {
  transform: scale(1.08);
}

.ad-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 40%);
  pointer-events: none;
}

.ad-card-badges {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 10;
}

.badge-gold {
  background: linear-gradient(135deg, #fbbf24, #d97706);
  color: #000;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
}

.badge-silver {
  background: linear-gradient(135deg, #e2e8f0, #94a3b8);
  color: #000;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-video {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.ad-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ad-card-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #fff;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ad-card-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 13px;
  margin-bottom: 14px;
  font-weight: 500;
}

.ad-card-meta-row i {
  color: var(--accent-red);
  font-size: 12px;
}

.ad-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.ad-card-tags span {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-dim);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}

.ad-card-footer {
  padding: 0 20px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.ad-card-btn {
  height: 40px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}

.ad-card-btn.primary {
  background: var(--accent-red);
  color: #fff;
}

.ad-card-btn.secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: #fff;
}

.ad-card-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

.ad-card-btn.whatsapp {
  background: #25d366;
  color: #fff;
}

.wa-float-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
  background: #25d366;
  color: #fff;
  padding: 5px 12px;
  border-radius: 30px;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

/* Pagination Refinement */
.results-page-link {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: var(--radius-md);
  font-weight: 700;
  transition: all 0.2s;
}

.results-page-link:hover {
  border-color: var(--border-light);
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.results-page-link.is-active {
  background: var(--accent-red);
  color: #fff;
  border-color: var(--accent-red);
  box-shadow: var(--glow-red);
}

/* Mobile Responsive Overhaul */
@media (max-width: 1024px) {
  .fh-main-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .fh-sidebar {
    position: static;
    max-height: none;
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
  
  .fh-top-search {
    flex-direction: column;
    width: 100%;
  }
  
  .fh-top-search-select,
  .fh-top-search-submit,
  .fh-top-search-input-wrap,
  .fh-top-search-select-wrap {
    width: 100% !important;
  }
  
  .ads-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
    gap: 16px !important;
  }
  
  .ad-image-container {
    height: 240px;
  }
  
  .ad-card-body {
    padding: 12px;
  }
  
  .ad-card-title {
    font-size: 14px;
    margin-bottom: 4px;
  }
  
  .ad-card-meta-row {
    font-size: 12px;
    margin-bottom: 8px;
  }
  
  .ad-card-tags {
    display: none;
  }
  
  .ad-card-footer {
    padding: 0 12px 12px;
    gap: 8px;
  }
  
  .ad-card-btn {
    height: 36px;
    font-size: 12px;
  }
}

/* Helper Utilities */
.muted { color: var(--muted); }
.small { font-size: 13px; }
.visually-hidden { position: absolute !important; height: 1px; width: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; border: 0; padding: 0; margin: -1px; }
