:root {
  --primary: #FF4D6D;
  --secondary: #7B2CBF;
  --bg-dark: #1A0B1F;
  --bg-card: #2A1633;
  --text-white: #FFFFFF;
  --text-secondary: #B8AFC0;
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a:hover {
  color: var(--secondary);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
}

h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

h4 {
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

/* Header */
.header {
  background: linear-gradient(180deg, rgba(42, 22, 51, 0.95) 0%, rgba(26, 11, 31, 0.9) 100%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 77, 109, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0.8rem 0;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
}

.logo a {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-white);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.nav-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  position: relative;
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-white);
  border-radius: 2px;
  transition: var(--transition);
}

/* Buttons */
.btn-primary,
.btn-primary-large,
.btn-secondary,
.btn-secondary-small,
.btn-search,
.btn-text,
.btn-text-small,
.btn-cta-secondary,
.btn-whatsapp,
.btn-phone,
.btn-favorite {
  border: none;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary {
  background: var(--primary);
  color: var(--text-white);
  padding: 0.75rem 1.5rem;
}

.btn-primary:hover {
  background: #E63A5A;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 77, 109, 0.3);
}

.btn-primary-large {
  background: var(--primary);
  color: var(--text-white);
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.btn-primary-large:hover {
  background: #E63A5A;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255, 77, 109, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--text-white);
  border: 2px solid var(--text-secondary);
  padding: 0.6rem 1.3rem;
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-secondary-small {
  background: var(--secondary);
  color: var(--text-white);
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
}

.btn-secondary-small:hover {
  background: #6A1FB2;
  transform: translateY(-2px);
}

.btn-search {
  background: var(--primary);
  color: var(--text-white);
  padding: 0.75rem 1.5rem;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.btn-search:hover {
  background: #E63A5A;
}

.btn-text {
  background: none;
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  border-bottom: 2px solid transparent;
}

.btn-text:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.btn-text-small {
  background: none;
  color: var(--primary);
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  border-bottom: 1px solid transparent;
}

.btn-text-small:hover {
  border-bottom-color: var(--primary);
}

.btn-cta-secondary {
  background: var(--secondary);
  color: var(--text-white);
  padding: 0.8rem 1.8rem;
}

.btn-cta-secondary:hover {
  background: #6A1FB2;
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: #25D366;
  color: white;
  padding: 0.8rem 1.5rem;
  width: 100%;
  margin-bottom: 0.8rem;
}

.btn-whatsapp:hover {
  background: #1FAD52;
  transform: translateY(-2px);
}

.btn-phone {
  background: var(--primary);
  color: white;
  padding: 0.8rem 1.5rem;
  width: 100%;
  margin-bottom: 0.8rem;
}

.btn-phone:hover {
  background: #E63A5A;
  transform: translateY(-2px);
}

.btn-favorite {
  background: transparent;
  border: 2px solid var(--text-secondary);
  color: var(--text-secondary);
  padding: 0.8rem 1.5rem;
  width: 100%;
}

.btn-favorite:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(255, 77, 109, 0.1);
}

.btn-favorite.active {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(255, 77, 109, 0.2);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, rgba(26, 11, 31, 0.9) 0%, rgba(42, 22, 51, 0.8) 100%);
  padding: 4rem 1rem;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(255, 77, 109, 0.15);
}

.hero-content {
  max-width: 800px;
  text-align: center;
  animation: fadeInUp 0.8s ease;
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--text-white) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.search-box {
  display: flex;
  gap: 0.5rem;
  margin: 2rem 0;
  background: rgba(42, 22, 51, 0.6);
  padding: 1rem;
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 77, 109, 0.2);
  flex-wrap: wrap;
  justify-content: center;
}

.search-input,
.search-select {
  background: rgba(26, 11, 31, 0.8);
  border: 1px solid rgba(255, 77, 109, 0.2);
  color: var(--text-white);
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius);
  font-size: 1rem;
  flex: 1;
  min-width: 150px;
}

.search-input::placeholder {
  color: var(--text-secondary);
}

.search-input:focus,
.search-select:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255, 77, 109, 0.05);
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Features Section */
.features {
  padding: 4rem 1rem;
  background: var(--bg-dark);
}

.features-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 77, 109, 0.1);
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
}

.feature-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(255, 77, 109, 0.15);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  color: var(--text-white);
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Categories & Grid */
.categories,
.similar-listings {
  padding: 4rem 1rem;
  background: var(--bg-dark);
}

.section-header {
  max-width: 1200px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-header h2 {
  color: var(--text-white);
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--text-secondary);
}

.categories-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.category-card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid rgba(255, 77, 109, 0.1);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}

.category-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(255, 77, 109, 0.2);
}

.card-image {
  width: 100%;
  height: 250px;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  position: relative;
  overflow: hidden;
}

.card-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(255, 255, 255, 0.05) 10px,
    rgba(255, 255, 255, 0.05) 20px
  );
}

.placeholder-gradient-1 {
  background: linear-gradient(135deg, #FF6B9D 0%, #FF4D6D 100%);
}

.placeholder-gradient-2 {
  background: linear-gradient(135deg, #A855B5 0%, #7B2CBF 100%);
}

.placeholder-gradient-3 {
  background: linear-gradient(135deg, #6B46C1 0%, #7B2CBF 100%);
}

.placeholder-gradient-4 {
  background: linear-gradient(135deg, #EC4899 0%, #FF4D6D 100%);
}

.card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--primary);
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}

.card-badge.premium {
  background: var(--primary);
}

.card-badge.vip {
  background: var(--secondary);
}

.card-content {
  padding: 1.5rem;
}

.card-content h4 {
  color: var(--text-white);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.card-meta {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.card-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
}

.badge.verified {
  background: rgba(34, 197, 94, 0.2);
  color: #22C55E;
}

.badge.online {
  background: rgba(59, 130, 246, 0.2);
  color: #3B82F6;
}

.badge.premium {
  background: rgba(255, 77, 109, 0.2);
  color: var(--primary);
}

/* CTA Section */
.cta-section,
.cta-block {
  background: linear-gradient(135deg, rgba(255, 77, 109, 0.1) 0%, rgba(123, 44, 191, 0.1) 100%);
  border: 1px solid rgba(255, 77, 109, 0.2);
  padding: 3rem 1rem;
  margin: 3rem auto;
  max-width: 800px;
  text-align: center;
  border-radius: var(--border-radius);
}

.cta-section h2,
.cta-block h3 {
  color: var(--text-white);
}

.cta-section p,
.cta-block p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* Plans Section */
.plans {
  padding: 4rem 1rem;
  background: var(--bg-dark);
}

.plans-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.plan-card {
  background: var(--bg-card);
  border: 2px solid rgba(255, 77, 109, 0.2);
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  position: relative;
  transition: var(--transition);
}

.plan-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(255, 77, 109, 0.15);
}

.plan-card.featured {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(255, 77, 109, 0.1) 0%, rgba(123, 44, 191, 0.1) 100%);
  transform: scale(1.05);
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.plan-card h3 {
  color: var(--text-white);
  margin-bottom: 0.5rem;
}

.plan-price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.plan-price span {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.plan-features {
  list-style: none;
  margin: 1.5rem 0;
  text-align: left;
  color: var(--text-secondary);
}

.plan-features li {
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 77, 109, 0.1);
}

.plan-features li:last-child {
  border: none;
}

/* Category Page */
.page-header {
  background: linear-gradient(135deg, rgba(42, 22, 51, 0.8) 0%, rgba(26, 11, 31, 0.9) 100%);
  padding: 3rem 1rem;
  text-align: center;
  border-bottom: 1px solid rgba(255, 77, 109, 0.15);
}

.page-header h1 {
  color: var(--text-white);
  margin-bottom: 0.5rem;
}

.page-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.category-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.filters-section {
  margin-bottom: 2rem;
}

.filter-title {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-weight: 600;
}

.filters-horizontal {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: rgba(42, 22, 51, 0.8);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 77, 109, 0.2);
  padding: 0.6rem 1.2rem;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.sort-section {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 2rem;
  justify-content: flex-end;
}

.sort-section label {
  color: var(--text-secondary);
  font-weight: 500;
}

.sort-select {
  background: rgba(42, 22, 51, 0.8);
  border: 1px solid rgba(255, 77, 109, 0.2);
  color: var(--text-white);
  padding: 0.6rem 1rem;
  border-radius: var(--border-radius);
  cursor: pointer;
}

.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.listing-card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid rgba(255, 77, 109, 0.1);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}

.listing-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(255, 77, 109, 0.2);
}

/* Profile Page */
.profile-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.profile-gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0; /* prevent grid column blowout when carousel overflows */
}

.main-image {
  width: 100%;
  height: 400px;
  border-radius: var(--border-radius);
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
}

.gallery-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0; /* allow shrinking as flex child so track can overflow-x */
  width: 100%;
}

.gallery-thumbs-track {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  flex: 1;
  min-width: 0; /* critical: lets the flex item shrink and honour overflow-x */
  padding: 4px 2px;
}

.gallery-thumbs-track::-webkit-scrollbar {
  display: none;
}

.thumb-item {
  flex: 0 0 90px;
  height: 90px;
  border-radius: var(--border-radius);
  cursor: pointer;
  scroll-snap-align: start;
  border: 2px solid transparent;
  transition: border-color 0.2s, transform 0.15s;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
}

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

.thumb-item.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 77, 109, 0.25);
}

.carousel-btn {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-white);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.profile-info {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 77, 109, 0.1);
  min-width: 0; /* prevent grid column blowout */
  overflow: hidden;
}

.profile-header h1 {
  color: var(--text-white);
  margin-bottom: 1rem;
}

.profile-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.meta-item {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.profile-badges {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.contact-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.profile-tabs {
  display: flex;
  gap: 1rem;
  border-bottom: 2px solid rgba(255, 77, 109, 0.1);
  margin-bottom: 2rem;
}

.tab-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  padding: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}

.tab-btn:hover,
.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.tab-pane h3 {
  color: var(--text-white);
  margin-bottom: 1rem;
}

.tab-pane p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.services-list {
  list-style: none;
  color: var(--text-secondary);
}

.services-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 77, 109, 0.1);
}

.services-list li:last-child {
  border: none;
}

.services-list li::before {
  content: '✓ ';
  color: var(--primary);
  font-weight: bold;
  margin-right: 0.5rem;
}

.reviews-section {
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 77, 109, 0.1);
  padding-top: 2rem;
}

.reviews-section h3 {
  color: var(--text-white);
  margin-bottom: 1rem;
}

.review {
  background: rgba(42, 22, 51, 0.5);
  padding: 1rem;
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
  border-left: 3px solid var(--primary);
}

.review-text {
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 0.5rem;
}

.review-author {
  color: var(--primary);
  font-size: 0.9rem;
}

/* Dashboard */
.dashboard-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.dashboard-header {
  text-align: center;
  margin-bottom: 3rem;
}

.dashboard-header h1 {
  color: var(--text-white);
}

.dashboard-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.current-plan {
  margin-bottom: 3rem;
}

.current-plan h2 {
  color: var(--text-white);
  margin-bottom: 1.5rem;
}

.plan-status-card {
  background: linear-gradient(135deg, rgba(255, 77, 109, 0.1) 0%, rgba(123, 44, 191, 0.1) 100%);
  border: 2px solid var(--primary);
  padding: 2rem;
  border-radius: var(--border-radius);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.plan-info h3 {
  color: var(--text-white);
  margin-bottom: 0.5rem;
}

.plan-price {
  font-size: 1.8rem;
  color: var(--primary);
  font-weight: 700;
}

.plan-status {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.plan-features-short {
  color: var(--text-secondary);
}

.plan-features-short p {
  margin-bottom: 0.5rem;
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 77, 109, 0.1);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  text-align: center;
}

.stat-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.stat-card h4 {
  color: var(--text-secondary);
}

.stat-number {
  font-size: 2rem;
  color: var(--primary);
  font-weight: 700;
  margin: 0;
}

.action-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.announcements-section {
  margin-bottom: 3rem;
}

.announcements-section h2 {
  color: var(--text-white);
  margin-bottom: 1.5rem;
}

.table-wrapper {
  overflow-x: auto;
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 77, 109, 0.1);
}

.announcements-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
}

.announcements-table thead {
  background: rgba(42, 22, 51, 0.8);
}

.announcements-table th {
  padding: 1rem;
  text-align: left;
  color: var(--primary);
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 77, 109, 0.2);
}

.announcements-table td {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 77, 109, 0.1);
}

.announcements-table tbody tr:hover {
  background: rgba(42, 22, 51, 0.8);
}

.announcement-title {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.announcement-title .thumbnail {
  width: 50px;
  height: 50px;
  border-radius: 4px;
  flex-shrink: 0;
}

.announcement-title p {
  color: var(--text-white);
  margin: 0;
  font-weight: 500;
}

.announcement-date {
  display: block;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.status-badge {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
}

.status-badge.active {
  background: rgba(34, 197, 94, 0.2);
  color: #22C55E;
}

.status-badge.pending {
  background: rgba(234, 179, 8, 0.2);
  color: #EAB308;
}

.status-badge.expired {
  background: rgba(239, 68, 68, 0.2);
  color: #EF4444;
}

.boost-section {
  margin-bottom: 3rem;
}

.boost-section h2 {
  color: var(--text-white);
  margin-bottom: 0.5rem;
}

.boost-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.boost-card {
  background: var(--bg-card);
  border: 2px solid rgba(255, 77, 109, 0.2);
  padding: 2rem;
  border-radius: var(--border-radius);
  text-align: center;
  position: relative;
  transition: var(--transition);
}

.boost-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
}

.boost-card.featured {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(255, 77, 109, 0.1) 0%, rgba(123, 44, 191, 0.1) 100%);
}

.boost-popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  font-size: 0.75rem;
}

.boost-card h3 {
  color: var(--text-white);
}

.boost-price {
  font-size: 2rem;
  color: var(--primary);
  font-weight: 700;
}

.boost-duration {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.boost-features {
  list-style: none;
  text-align: left;
  color: var(--text-secondary);
  margin: 1.5rem 0;
}

.boost-features li {
  padding: 0.5rem 0;
}

.boost-features li::before {
  content: '✓ ';
  color: var(--primary);
  font-weight: bold;
  margin-right: 0.5rem;
}

.help-section {
  margin-bottom: 3rem;
}

.help-section h2 {
  color: var(--text-white);
  margin-bottom: 1.5rem;
}

.help-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.help-card {
  background: var(--bg-card);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 77, 109, 0.1);
  cursor: pointer;
  transition: var(--transition);
}

.help-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
}

.help-card h4 {
  color: var(--text-white);
  margin-bottom: 0.5rem;
}

.help-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Footer */
.footer {
  background: rgba(26, 11, 31, 0.95);
  border-top: 1px solid rgba(255, 77, 109, 0.1);
  padding: 3rem 1rem 1rem;
  margin-top: 3rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-column h4 {
  color: var(--text-white);
  margin-bottom: 1rem;
}

.footer-column p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 0.8rem;
}

.footer-column a {
  color: var(--text-secondary);
  transition: var(--transition);
}

.footer-column a:hover {
  color: var(--primary);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 77, 109, 0.1);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Mobile CTA */
.mobile-cta {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  z-index: 999;
  display: none;
}

@media (max-width: 768px) {
  .mobile-cta {
    display: block;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero {
    padding: 2rem 1rem;
    min-height: auto;
  }

  .search-box {
    flex-direction: column;
  }

  .search-input,
  .search-select {
    width: 100%;
  }

  .btn-search {
    border-radius: var(--border-radius);
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta button {
    width: 100%;
  }

  .nav-menu {
    position: fixed;
    left: 0;
    top: 70px;
    width: 100%;
    background: var(--bg-dark);
    flex-direction: column;
    padding: 1rem;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-menu.active {
    max-height: 400px;
  }

  .nav-link {
    padding: 1rem;
    display: block;
    border-bottom: 1px solid rgba(255, 77, 109, 0.1);
  }

  .menu-toggle {
    display: flex;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }

  .categories-grid,
  .listings-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .plans-grid {
    grid-template-columns: 1fr;
  }

  .plan-card.featured {
    transform: scale(1);
  }

  .profile-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .plan-status-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .quick-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .action-buttons {
    flex-direction: column;
  }

  .action-buttons button {
    width: 100%;
  }

  .announcements-table {
    font-size: 0.9rem;
  }

  .announcements-table th,
  .announcements-table td {
    padding: 0.8rem 0.5rem;
  }

  .announcement-title .thumbnail {
    display: none;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ==============================
   Clickable card links
   ============================== */
a.listing-card,
a.category-card {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* ==============================
   Auth Pages (Login / Register)
   ============================== */
.auth-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.auth-card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 77, 109, 0.15);
  padding: 2.5rem;
  width: 100%;
  max-width: 480px;
}

.auth-card h1 {
  color: var(--text-white);
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}

.auth-tabs {
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1.5rem;
}

.auth-tab {
  flex: 1;
  padding: 0.75rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.9rem;
  transition: color 0.2s, border-color 0.2s;
  font-family: inherit;
}

.auth-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
}

.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.auth-footer a {
  color: var(--primary);
  text-decoration: none;
}

.auth-footer a:hover {
  text-decoration: underline;
}

/* ==============================
   Form elements
   ============================== */
.nf-field {
  margin-bottom: 1rem;
}

.nf-field label {
  display: block;
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}

.nf-input,
.nf-select,
.nf-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: var(--text-white);
  font-size: 0.95rem;
  transition: border-color 0.2s;
  box-sizing: border-box;
  font-family: inherit;
}

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

.nf-input::placeholder,
.nf-textarea::placeholder {
  color: var(--text-secondary);
}

.nf-select option {
  background: var(--bg-card);
  color: var(--text-white);
}

.nf-textarea {
  resize: vertical;
  min-height: 100px;
}

.nf-check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.85rem;
  cursor: pointer;
  line-height: 1.4;
}

.nf-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--primary);
}

.nf-check a {
  color: var(--primary);
  text-decoration: none;
}

.nf-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 1.25rem 0;
}

.nf-btn-full {
  width: 100%;
  padding: 0.85rem;
  background: var(--gradient);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
  font-family: inherit;
  margin-top: 0.25rem;
}

.nf-btn-full:hover {
  opacity: 0.88;
}

.nf-error {
  color: var(--primary);
  font-size: 0.8rem;
  margin-top: 0.25rem;
  display: none;
}

/* phone field with flag picker */
.nf-phone-wrap {
  position: relative;
}

.nf-phone-wrap .iti {
  width: 100%;
}

.nf-phone-wrap .iti input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 3.5rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  color: var(--text-white);
  font-size: 0.95rem;
  font-family: inherit;
  box-sizing: border-box;
}

.nf-phone-wrap .iti input:focus {
  outline: none;
  border-color: var(--primary);
}

/* ==============================
   Support Page
   ============================== */
.support-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.support-card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 77, 109, 0.1);
  padding: 2rem;
}

.support-type-btns {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.support-type-btn {
  flex: 1;
  padding: 0.75rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
  font-family: inherit;
  text-align: center;
}

.support-type-btn.active {
  background: rgba(255, 77, 109, 0.15);
  border-color: var(--primary);
  color: var(--text-white);
}

.support-section {
  display: none;
}

.support-section.active {
  display: block;
}

/* ==============================
   Search Page
   ============================== */
.search-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.search-filters-bar {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 77, 109, 0.1);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.search-main-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 1rem;
  align-items: end;
}

.search-adv-toggle {
  background: none;
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  margin-top: 1rem;
  transition: all 0.2s;
  font-family: inherit;
}

.search-adv-toggle:hover,
.search-adv-toggle.open {
  border-color: var(--primary);
  color: var(--primary);
}

.search-adv-grid {
  display: none;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.search-adv-grid.open {
  display: grid;
}

.search-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.search-results-header h2 {
  font-size: 1.3rem;
}

.search-count {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Terms page */
.terms-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.terms-card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 77, 109, 0.1);
  padding: 2.5rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.terms-card h1,
.terms-card h2,
.terms-card h3 {
  color: var(--text-white);
}

.terms-card p {
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .search-main-row {
    grid-template-columns: 1fr 1fr;
  }

  .auth-card {
    padding: 1.5rem;
  }
}
