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

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, sans-serif;
  background: #ffffff;
  color: #111111;
  line-height: 1.45;
}

:root {
  --red-primary: #c00000;
  --red-dark: #a00000;
  --red-soft: #fce8e8;
  --white: #ffffff;
  --gray-bg: #fafafa;
  --border-light: #e0e0e0;
  --text-dark: #111111;
  --text-muted: #4a4a4a;
}

*,
*::before,
*::after {
  border-radius: 0px !important;
}

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

/* Loading Spinner */
.loading-spinner {
  text-align: center;
  padding: 40px;
  color: var(--red-primary);
  font-size: 1.2rem;
}

.loading-spinner i {
  margin-right: 8px;
}

.infinite-loading {
  text-align: center;
  padding: 30px;
  color: var(--red-primary);
  font-size: 1rem;
}

.no-more-data {
  text-align: center;
  padding: 30px;
  color: #888;
  font-size: 0.9rem;
}

/* HEADER */
.site-header {
  background: var(--white);
  border-bottom: 2px solid var(--red-primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 1rem 0;
  gap: 1.2rem;
}

.logo-area h1 {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--red-primary);
  letter-spacing: -0.5px;
}

.logo-area h1 i {
  color: var(--red-primary);
  margin-right: 6px;
}

.logo-area p {
  font-size: 0.8rem;
  color: #4b4b4b;
  margin-top: 5px;
  font-weight: 500;
}

.auth-buttons {
  display: flex;
  gap: 12px;
  margin: 6px;
}

.auth-btn {
  padding: 8px 20px;
  font-weight: 600;
  font-size: 0.85rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
}

.auth-login {
  background: var(--white);
  border-color: var(--red-primary);
  color: var(--red-primary);
}

.auth-login:hover {
  background: var(--red-primary);
  color: white;
}

.auth-register {
  background: var(--red-primary);
  color: white;
  border-color: var(--red-primary);
}

.auth-register:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
}

.header-stats {
  background: #f7f7f7;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  gap: 24px;
  border-left: 3px solid var(--red-primary);
}

.header-stats i {
  color: var(--red-primary);
  margin-right: 5px;
}

.header-stats span {
  color: var(--red-primary);
  font-weight: 800;
}

/* SPA BANNER */
.spa-banner {
  background: #0a0a0a;
  margin: 28px 0 24px 0;
  padding: 20px 0;
  border-left: 5px solid var(--red-primary);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.spa-banner::-webkit-scrollbar {
  height: 6px;
}

.spa-banner::-webkit-scrollbar-track {
  background: #1e1e1e;
}

.spa-banner::-webkit-scrollbar-thumb {
  background: var(--red-primary);
}

.spa-track {
  display: inline-flex;
  gap: 28px;
  padding: 0 32px;
}

.spa-ad-card {
  width: 300px;
  background: #141414;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.2s;
  cursor: pointer;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  border: 1px solid #2c2c2c;
}

.spa-ad-card:hover {
  transform: translateY(-6px);
  border-color: var(--red-primary);
}

.spa-ad-img {
  width: 100%;
  height: 200px;
  position: relative;
  overflow: hidden;
}

.spa-ad-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

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

.spa-ad-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--red-primary);
  color: white;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 12px;
}

.spa-ad-price {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.75);
  color: #ffd966;
  font-weight: 800;
  padding: 4px 12px;
  border-left: 3px solid var(--red-primary);
}

.spa-ad-info {
  padding: 14px;
  background: #111;
}

.spa-ad-title {
  font-size: 1rem;
  font-weight: 800;
  color: white;
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
}

.spa-ad-title i {
  color: var(--red-primary);
}

.spa-ad-desc {
  font-size: 0.75rem;
  color: #bbbbbb;
  margin-bottom: 10px;
}

.spa-ad-feature {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #2a2a2a;
  padding-top: 10px;
}

.call-spa-btn {
  background: var(--red-primary);
  border: none;
  color: white;
  padding: 5px 12px;
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: bold;
}

/* FILTER */
.filter-section {
  background: var(--white);
  margin: 20px 0 28px 0;
  padding: 18px 24px;
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--red-primary);
}

.filter-title {
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.simple-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: flex-end;
}

.filter-input {
  flex: 1;
  min-width: 180px;
}

.filter-input label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #5a5a5a;
  display: block;
  margin-bottom: 5px;
}

.filter-input input,
.filter-input select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d4d4d4;
  background: white;
  font-size: 0.9rem;
}

.reset-btn {
  background: #f2f2f2;
  border: 1px solid #cccccc;
  padding: 10px 24px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.reset-btn:hover {
  background: #e0e0e0;
}

/* Personals Grid */
.ads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  margin: 28px 0 20px;
}

.ad-card {
  background: white;
  border: 1px solid #eaeaea;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.ad-card:hover {
  transform: translateY(-3px);
  border-color: var(--red-primary);
  box-shadow: 0 12px 18px -10px rgba(192, 0, 0, 0.12);
}

.ad-media {
  height: 210px;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.ad-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ad-content {
  padding: 16px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ad-name-age {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.ad-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: #111;
}

.ad-age {
  background: var(--red-soft);
  padding: 3px 10px;
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--red-primary);
}

.ad-location {
  font-size: 0.75rem;
  color: #5e5e5e;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ad-location i {
  color: var(--red-primary);
}

.ad-bio {
  color: #3a3a3a;
  font-size: 0.8rem;
  line-height: 1.4;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  background: #fafafa;
  padding: 6px;
  border-left: 2px solid #e0e0e0;
}

.services-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.service-tag {
  background: #f2f2f2;
  font-size: 0.65rem;
  padding: 3px 8px;
  font-weight: 600;
  color: #444;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.action-buttons-row {
  display: flex;
  gap: 10px;
  margin-top: 6px;
  justify-content: space-between;
}

.action-icon-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 9px 0;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.action-icon-btn .btn-text {
  display: none;
  margin-left: 4px;
}

.action-icon-btn i {
  font-size: 1rem;
}

.action-icon-btn:hover {
  flex: 1.2;
}

.action-icon-btn:hover .btn-text {
  display: inline-block;
}

.btn-call {
  background: var(--red-primary);
}

.btn-call:hover {
  background: var(--red-dark);
}

.btn-wa {
  background: #25D366;
}

.btn-wa:hover {
  background: #128C7E;
}

.btn-sms {
  background: #0a7e8c;
}

.btn-sms:hover {
  background: #065f6a;
}

/* MODAL */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  visibility: hidden;
  opacity: 0;
  transition: 0.2s;
}

.modal-overlay.active {
  visibility: visible;
  opacity: 1;
}

.modal-container {
  background: white;
  width: 90%;
  max-width: 750px;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid var(--red-primary);
}

.modal-header {
  background: var(--red-primary);
  color: white;
  padding: 16px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 10;
}

.close-modal {
  background: transparent;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-body {
  padding: 22px 26px;
}

.media-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
  background: #f9f9f9;
  padding: 16px;
  border: 1px solid #eee;
}

.media-item {
  position: relative;
  background: #000;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.media-item img,
.media-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-badge {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 3px 6px;
  font-size: 0.65rem;
}

.detail-field {
  margin-bottom: 14px;
  display: flex;
  gap: 12px;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 10px;
}

.detail-field i {
  width: 26px;
  color: var(--red-primary);
}

.modal-call {
  background: var(--red-primary);
  color: white;
  padding: 6px 18px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
}

.modal-footer {
  background: #fafafa;
  padding: 12px 24px;
  text-align: right;
  border-top: 1px solid #eaeaea;
}

.empty-media {
  text-align: center;
  padding: 40px;
  color: #888;
  background: #fafafa;
  margin-bottom: 20px;
}

.empty-state {
  text-align: center;
  padding: 60px;
  color: #888;
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: 0.2s;
}

.lightbox.active {
  visibility: visible;
  opacity: 1;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-content img,
.lightbox-content video {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
}

.close-lightbox {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
}

.site-footer {
  background: #fafafa;
  border-top: 1px solid #e2e2e2;
  padding: 28px 0;
  text-align: center;
  font-size: 0.8rem;
}

@media (max-width: 700px) {
  .container {
    padding: 0 16px;
  }

  .spa-ad-card {
    width: 260px;
  }

  .media-gallery {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }

  .header-inner {
    flex-direction: column;
    text-align: center;
  }
}