/* ==========================================================================
   GLOBAL ESCORT NETWORK — RED & WHITE PREMIUM DESIGN SYSTEM (LIGHT / RED-WHITE)
   ========================================================================== */

:root {
  --primary: #DC2626;
  --primary-hover: #B91C1C;
  --primary-light: #FEE2E2;
  --primary-dark: #991B1B;
  --secondary: #1F2937;
  --bg-main: #FAFAFA;
  --bg-card: #FFFFFF;
  --bg-subtle: #F3F4F6;
  --text-main: #111827;
  --text-muted: #6B7280;
  --text-light: #9CA3AF;
  --border-color: #E5E7EB;
  --border-dark: #D1D5DB;
  --whatsapp-color: #25D366;
  --telegram-color: #0088cc;
  --onlyfans-color: #00A2D6;
  --fansly-color: #1DA1F2;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
  --shadow-red: 0 6px 20px rgba(220, 38, 38, 0.25);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.main-content {
  flex: 1;
}

/* Alerts */
.alert {
  padding: 14px 20px;
  border-radius: var(--radius-md);
  margin: 20px auto;
  max-width: 1240px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 500;
  animation: slideDown 0.3s ease-out;
}
.alert-success { background: #D1FAE5; color: #065F46; border: 1px solid #A7F3D0; }
.alert-error { background: #FEE2E2; color: #991B1B; border: 1px solid #FECACA; }
.alert-close { background: none; border: none; color: inherit; font-size: 20px; cursor: pointer; }

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Navbar */
.navbar {
  background: linear-gradient(135deg, #DC2626 0%, #991B1B 100%);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(220, 38, 38, 0.25);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 900;
  color: #FFFFFF;
  letter-spacing: -0.5px;
}

.brand-logo-img {
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  color: rgba(255,255,255,0.92);
  font-weight: 600;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-link:hover, .nav-link.active {
  color: #FFFFFF;
  background: rgba(255,255,255,0.18);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  min-width: 170px;
  max-height: 320px;
  overflow-y: auto;
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 1500;
}

.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
  background: transparent;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.open .dropdown-menu {
  display: flex;
}

.dropdown-item {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 14px;
  font-weight: 500;
}

.dropdown-item:hover, .dropdown-item.active {
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 700;
}

.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary { background: var(--primary); color: #FFFFFF; box-shadow: var(--shadow-red); }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); }
.btn-white { background: #FFFFFF; color: var(--primary); font-weight: 800; box-shadow: var(--shadow-sm); }
.btn-white:hover { background: #F9FAFB; transform: translateY(-1px); }
.btn-outline-light { background: transparent; border: 1.5px solid rgba(255,255,255,0.4); color: #FFFFFF; }
.btn-outline-light:hover { background: rgba(255,255,255,0.18); border-color: #FFFFFF; }
.btn-outline-white { background: transparent; border: 2px solid #FFFFFF; color: #FFFFFF; }
.btn-outline-white:hover { background: #FFFFFF; color: var(--primary); }
.btn-accent { background: #111827; color: #FFFFFF; }
.btn-accent:hover { background: #1F2937; }
.btn-outline { background: transparent; border: 1px solid var(--border-dark); color: var(--text-main); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.btn-danger { background: #EF4444; color: #FFFFFF; }
.btn-danger:hover { background: #DC2626; }
.btn-success { background: #10B981; color: #FFFFFF; }
.btn-success:hover { background: #059669; }
.btn-whatsapp { background: var(--whatsapp-color); color: #FFFFFF; }
.btn-whatsapp:hover { background: #1EBE5D; }
.btn-block { width: 100%; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-xs { padding: 4px 10px; font-size: 12px; }
.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: var(--radius-lg); }

/* Hero Section */
.hero {
  position: relative;
  background: linear-gradient(135deg, #FFFFFF 0%, #FEE2E2 100%);
  padding: 90px 20px 120px;
  text-align: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 50% 20%, rgba(220, 38, 38, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
}

.hero-title {
  font-size: 48px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #991B1B 0%, #DC2626 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 19px;
  color: var(--text-muted);
  margin-bottom: 36px;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0; right: 0;
  line-height: 0;
}

.hero-wave svg path {
  fill: var(--bg-main);
}

/* Sections */
.section {
  padding: 60px 0;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.section-header h2 {
  font-size: 28px;
  font-weight: 900;
  color: var(--text-main);
}

/* Model Cards & Grid */
.models-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.model-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.model-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: 0 12px 30px rgba(220, 38, 38, 0.15);
}

.card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--bg-subtle);
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.model-card:hover .card-image img {
  transform: scale(1.04);
}

.card-avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F3F4F6;
}

.card-badge {
  position: absolute;
  top: 12px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-badge.verified { left: 12px; background: #10B981; color: #FFFFFF; box-shadow: var(--shadow-sm); }
.card-badge.featured { right: 12px; background: #DC2626; color: #FFFFFF; box-shadow: var(--shadow-sm); }

.card-body {
  padding: 20px;
}

.card-image-link {
  display: block;
  text-decoration: none;
  cursor: pointer;
}

.card-name {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--text-main);
}

.card-name a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

.card-name a:hover {
  color: var(--primary);
}

.card-meta {
  display: flex;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.tag {
  background: var(--bg-subtle);
  color: var(--text-main);
  font-size: 11px;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  border: 1px solid var(--border-color);
}

.card-price {
  font-size: 22px;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 16px;
}

.card-price small {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

.card-actions {
  display: flex;
  gap: 10px;
}

.card-actions .btn-primary { flex: 1; }

/* Models Page & Filter Layout */
.models-page {
  padding: 40px 0;
}

.models-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 20px;
}

.models-header h1 {
  font-size: 32px;
  font-weight: 900;
  color: var(--text-main);
}

.search-form {
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 400px;
}

.search-input {
  flex: 1;
  background: #FFFFFF;
  border: 1.5px solid var(--border-dark);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  color: var(--text-main);
  font-size: 14px;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
}

.models-layout {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 30px;
}

/* Filter Sidebar */
.filter-sidebar {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  height: fit-content;
  position: sticky;
  top: 96px;
  box-shadow: var(--shadow-sm);
}

.filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.filter-header h3 { font-size: 18px; font-weight: 800; color: var(--text-main); }
.filter-clear { font-size: 13px; color: var(--primary); font-weight: 700; }

.filter-group {
  margin-bottom: 18px;
}

.filter-group label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-select, .form-input, .form-textarea {
  width: 100%;
  background: #FFFFFF;
  border: 1.5px solid var(--border-dark);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text-main);
  font-size: 14px;
  font-family: inherit;
}

.form-select:focus, .form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.filter-range {
  display: flex;
  align-items: center;
  gap: 8px;
}

.models-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.results-count {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 600;
}

.filter-toggle-btn { display: none; }

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}

.pagination-info { font-size: 14px; color: var(--text-muted); font-weight: 600; }

/* Model Detail Page */
.model-detail-page {
  padding: 40px 0 80px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
}

.back-link:hover { color: var(--primary); }

.detail-layout {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 40px;
}

.detail-gallery {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail-avatar {
  width: 100%;
  aspect-ratio: 3/4;
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
}

.detail-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-subtle);
}

.detail-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.thumb-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.thumb-img:hover {
  border-color: var(--primary);
  transform: scale(1.05);
}

.detail-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
}

.detail-header h1 {
  font-size: 36px;
  font-weight: 900;
  color: var(--text-main);
}

.badge-verified {
  background: #D1FAE5;
  color: #065F46;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.detail-location {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 24px;
}

.detail-section {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.detail-section h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--primary);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

.detail-bio p {
  color: var(--text-main);
  white-space: pre-line;
}

.attributes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

.attr {
  display: flex;
  flex-direction: column;
}

.attr-label {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
}

.attr-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

.rates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

.rate-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
}

.rate-label { font-size: 12px; color: var(--text-muted); font-weight: 600; }
.rate-value { font-size: 20px; font-weight: 900; color: var(--primary); }

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 14px;
  color: #FFFFFF !important;
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.social-btn span {
  color: #FFFFFF !important;
  background: transparent !important;
}

.social-btn:hover {
  transform: translateY(-2px);
  color: #FFFFFF !important;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.social-btn.whatsapp { background: #25D366 !important; }
.social-btn.telegram { background: #0088cc !important; }
.social-btn.onlyfans { background: #00A2D6 !important; }
.social-btn.fansly { background: #1DA1F2 !important; }
.social-btn.phone-link { background: #1F2937 !important; color: #FFFFFF !important; }

/* Auth Pages */
.auth-page {
  padding: 60px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 200px);
}

.auth-container {
  width: 100%;
  max-width: 460px;
}

.auth-container-wide {
  max-width: 740px;
}

.auth-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.auth-header {
  text-align: center;
  margin-bottom: 30px;
}

.auth-header h1 {
  font-size: 26px;
  font-weight: 900;
  margin-top: 10px;
  color: var(--text-main);
}

.auth-header p {
  color: var(--text-muted);
  font-size: 14px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.checkbox-group {
  flex-direction: row;
  align-items: center;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  font-weight: 500;
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

.auth-footer {
  margin-top: 24px;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}

.auth-footer a {
  color: var(--primary);
  font-weight: 700;
}

/* Legal Pages */
.legal-page {
  padding: 60px 0;
}

.legal-page h1 {
  font-size: 36px;
  font-weight: 900;
  margin-bottom: 30px;
  color: var(--text-main);
}

.legal-content {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  line-height: 1.8;
  box-shadow: var(--shadow-sm);
}

.legal-content h2 {
  font-size: 20px;
  font-weight: 800;
  margin: 24px 0 12px;
  color: var(--primary);
}

.legal-content p {
  color: var(--text-main);
  margin-bottom: 16px;
}

.legal-date {
  margin-top: 30px;
  color: var(--text-muted);
  font-size: 13px;
}

/* WhatsApp FAB */
.whatsapp-fab {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: var(--whatsapp-color);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: var(--transition);
}

.whatsapp-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

.fab-pulse {
  position: absolute;
  top: -4px; left: -4px; right: -4px; bottom: -4px;
  border-radius: var(--radius-full);
  border: 2px solid var(--whatsapp-color);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.3); opacity: 0; }
}

/* Footer */
.footer {
  background: linear-gradient(135deg, #DC2626 0%, #991B1B 100%);
  color: #FFFFFF;
  padding: 60px 0 30px;
  margin-top: auto;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 16px;
  color: #FFFFFF;
}

.footer-about {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  color: #FFFFFF;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  font-weight: 500;
}

.footer-col a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 24px;
  text-align: center;
  color: rgba(255,255,255,0.8);
  font-size: 13px;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state p { margin-top: 12px; }

/* Error Page */
.error-page {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  text-align: center;
  background: var(--bg-main);
}

.error-container h1 { font-size: 96px; font-weight: 900; color: var(--primary); }
.error-container p { font-size: 20px; color: var(--text-muted); margin-bottom: 24px; }

/* Mobile Bottom Navigation Dock (Fixed Footer Bar) */
.mobile-bottom-nav {
  display: none;
}

.mobile-filter-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1900;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-filter-overlay.open {
  display: block;
  opacity: 1;
}

.filter-close-btn {
  display: none;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 20px;
  line-height: 1;
  color: var(--text-main);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.filter-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

@media (max-width: 992px) {
  .models-layout { grid-template-columns: 1fr; }
  .detail-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  /* Mobile Slide-up Filter Drawer */
  .filter-sidebar {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    width: 100% !important;
    height: 88vh !important;
    max-height: 88vh !important;
    background: #FFFFFF !important;
    z-index: 2000 !important;
    border-radius: 24px 24px 0 0 !important;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.4) !important;
    transform: translateY(110%) !important;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s !important;
    overflow-y: auto !important;
    padding: 20px 20px 90px 20px !important;
    box-sizing: border-box !important;
    visibility: hidden;
    display: block !important;
  }

  .filter-sidebar.open {
    transform: translateY(0) !important;
    visibility: visible !important;
  }

  .filter-header {
    position: sticky;
    top: -20px;
    background: #FFFFFF;
    z-index: 10;
    padding: 16px 0;
    margin: -20px -20px 16px -20px;
    padding-left: 20px;
    padding-right: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .filter-close-btn {
    display: inline-flex;
  }
}

@media (max-width: 768px) {
  /* Main Container Bottom Padding for Mobile Nav Dock */
  .public-body {
    padding-bottom: 75px !important;
  }

  /* Fixed Mobile Bottom Nav Dock - High Contrast Red Theme */
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 65px;
    background: linear-gradient(180deg, #991B1B 0%, #7F1D1D 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 2px solid var(--secondary);
    z-index: 1100;
    align-items: center;
    justify-content: space-around;
    padding: 6px 12px;
    box-shadow: 0 -4px 25px rgba(127, 29, 29, 0.4);
  }

  .mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: rgba(255, 255, 255, 0.85) !important;
    text-decoration: none !important;
    font-size: 11px;
    font-weight: 700;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: color 0.2s ease, transform 0.2s ease;
    flex: 1;
  }

  .mobile-nav-item svg {
    stroke-width: 2.2px;
    stroke: rgba(255, 255, 255, 0.85);
    transition: transform 0.2s ease, stroke 0.2s ease;
  }

  .mobile-nav-item:hover, .mobile-nav-item.active {
    color: #FFFFFF !important;
  }

  .mobile-nav-item.active svg {
    stroke: var(--secondary) !important;
    transform: scale(1.15);
  }

  .mobile-nav-item.whatsapp-item {
    color: #25D366 !important;
  }

  .mobile-nav-item.whatsapp-item svg {
    fill: #25D366;
  }

  /* Top Header Hamburger Button on Top Right */
  .nav-container {
    position: relative;
  }

  .nav-links, .nav-actions { display: none; }
  .nav-mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #FFFFFF;
    cursor: pointer;
    padding: 6px;
  }

  .nav-container.open .nav-links {
    display: flex;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #7F1D1D;
    flex-direction: column;
    padding: 20px;
    border-bottom: 2px solid var(--secondary);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    z-index: 1050;
  }

  /* Mobile Grid & Layout Adaptations */
  .models-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  .hero-title { font-size: 28px; }
  .hero-subtitle { font-size: 15px; }
  .hero-actions { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .whatsapp-fab { bottom: 80px; }
}

@media (max-width: 480px) {
  .models-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Sponsored Banner */
.site-banner-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 15px;
  margin: 30px auto 15px;
  width: 100%;
  max-width: 1240px;
  text-align: center;
  clear: both;
}

.site-banner-wrapper a {
  display: inline-block;
  max-width: 100%;
  border-radius: var(--radius-sm, 8px);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.site-banner-wrapper a:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.site-banner-wrapper img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}
