:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --secondary: #10b981;
  --danger: #f43f5e;
  --text: #0f172a;
  --text-light: #64748b;
  --bg: #f8fafc;
  --white: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
  --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --radius: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

h1, h2, h3, h4, h5, h6, .logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.4s;
}

.page-transition-wrapper {
  view-transition-name: main-content;
}

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

/* Header & Navigation */
.glass-header {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: var(--transition);
}

/* Old nav styles removed for Bootstrap compatibility */

.navbar-nav .nav-link {
  position: relative;
  transition: var(--transition);
}

.navbar-nav .nav-link.active {
  color: var(--primary-dark) !important;
  font-weight: 600;
}

@media (min-width: 992px) {
  .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background-color: var(--primary);
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform 0.25s ease;
  }
  
  .navbar-nav .nav-link.active::after {
    transform: scaleX(1);
  }
}

.nav-pro {
  color: #d97706 !important;
  font-weight: 700 !important;
}

.badge-pro {
  background: #fef3c7;
  color: #92400e;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 4px;
  vertical-align: middle;
  border: 1px solid #f59e0b;
  margin-left: 4px;
}

.badge-vip {
  background: #3730a3;
  color: #e0e7ff;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 4px;
  vertical-align: middle;
  border: 1px solid #4338ca;
  margin-left: 4px;
}

/* Home Hero */
.home-hero {
  background: linear-gradient(135deg, #4f46e5 0%, #1e1b4b 100%);
  color: white;
  padding: 6rem 0;
  text-align: center;
  margin-bottom: 3rem;
  border-radius: 0 0 2.5rem 2.5rem;
}

.home-hero h1 {
  font-size: 4.5rem;
  margin-bottom: 1rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: white;
}

.hero-subtitle {
  font-size: 1.5rem;
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto;
  font-weight: 300;
}

.hero-search-box {
  display: flex;
  background: white;
  padding: 0.5rem;
  border-radius: 1.25rem;
  max-width: 700px;
  margin: 3rem auto 0;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.hero-search-input {
  flex: 1;
  border: none;
  padding: 1.25rem 1.5rem;
  font-size: 1.2rem;
  border-radius: 0.75rem;
  outline: none;
  color: #1e293b;
}

.btn-hero {
  background: #4f46e5;
  color: white;
  border: none;
  padding: 0 2.5rem;
  border-radius: 0.75rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 1.1rem;
}

.btn-hero:hover {
  background: #4338ca;
  transform: scale(1.02);
}

/* Sections */
.section-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 1.5rem;
}

/* Trends Scroll */
.trends-scroll {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding: 0.5rem 0.5rem 2rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.trends-scroll::-webkit-scrollbar {
  display: none;
}

.trend-card-link {
  text-decoration: none;
  color: inherit;
  flex: 0 0 300px;
  scroll-snap-align: start;
}

.trend-card {
  background: white;
  padding: 1.75rem;
  border-radius: 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
  border: 1px solid #f1f5f9;
}

.trend-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}

.trend-product-name {
  font-weight: 800;
  font-size: 1.2rem;
}

.trend-badge {
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.35rem 0.85rem;
  border-radius: 2rem;
}

.trend-badge.up { background: #fee2e2; color: #b91c1c; }
.trend-badge.down { background: #dcfce7; color: #15803d; }

.trend-price { font-size: 1.75rem; font-weight: 900; color: #1e293b; }
.trend-old-price { font-size: 1rem; color: #94a3b8; text-decoration: line-through; }

/* Product/City Lists */
.products-list-card, .cities-list-card {
  background: white;
  border-radius: 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  border: 1px solid #f1f5f9;
}

.product-row, .city-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #f1f5f9;
  transition: all 0.2s;
}

.product-row:hover, .city-row:hover {
  background: #f8fafc;
}

.product-row-link, .city-row-link {
  text-decoration: none;
  color: inherit;
}

.product-name, .city-name {
  font-weight: 800;
  font-size: 1.15rem;
  color: #1e293b;
}

.product-cat, .city-state {
  font-size: 0.85rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.product-price {
  font-weight: 900;
  font-size: 1.4rem;
  color: #4f46e5;
}

/* Charts */
.chart-container {
  height: 450px;
  position: relative;
}

/* Utils and Component Specific */
.bg-success-soft { background-color: rgba(16, 185, 129, 0.1); }
.bg-danger-soft { background-color: rgba(239, 68, 68, 0.1); }
.bg-warning-soft { background-color: rgba(245, 158, 11, 0.1); }
.bg-info-soft { background-color: rgba(6, 182, 212, 0.1); }

.btn-sm { padding: 0.25rem 0.75rem; font-size: 0.875rem; }
.btn-lg { padding: 0.75rem 1.5rem; font-size: 1.1rem; }

.btn-secondary {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
  background: #e2e8f0;
}

.rounded-pill { border-radius: 50rem !important; }
.display-6 { font-size: 2.5rem; line-height: 1.2; }
.lead { font-size: 1.25rem; font-weight: 300; }
.h-100 { height: 100% !important; }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important; }

/* Mobile */
@media (max-width: 768px) {
  .home-hero h1 { font-size: 2.5rem; }
  .home-hero { padding: 4rem 0; }
  .hero-subtitle { font-size: 1.1rem; padding: 0 1rem; }
  .hero-search-box { margin: 2rem 1rem 0; flex-direction: column; padding: 0.5rem; gap: 0.5rem; }
  .btn-hero { padding: 1rem; }
  .trend-card-link { flex: 0 0 85%; }
  .product-row, .city-row { padding: 1.25rem; }
}

/* Skeleton Loader & Premium Blur */
.skeleton-text {
  height: 14px;
  background-color: #cbd5e1; /* slate-300 */
  border-radius: 4px;
  display: inline-block;
  animation: pulse-skeleton 2s infinite ease-in-out;
}

.skeleton-text-sm {
  height: 10px;
  background-color: #e2e8f0; /* slate-200 */
  border-radius: 4px;
  display: inline-block;
  animation: pulse-skeleton 2s infinite ease-in-out;
}

.premium-blurred-row {
  filter: blur(5px);
  pointer-events: none;
  opacity: 0.45;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

@keyframes pulse-skeleton {
  0% { opacity: 0.5; }
  50% { opacity: 0.85; }
  100% { opacity: 0.5; }
}

/* Premium UI Elements */
.premium-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.6);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.premium-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.premium-card-title {
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-premium {
  text-align: center;
  padding: 5rem 2rem;
  background: linear-gradient(135deg, var(--primary) 0%, #a855f7 100%);
  color: white;
  border-radius: 2rem;
  margin-bottom: 3rem;
  box-shadow: 0 20px 25px -5px rgba(99, 102, 241, 0.4);
  position: relative;
  overflow: hidden;
}
.hero-premium::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 60%);
  animation: pulse-glow 10s infinite alternate;
}
@keyframes pulse-glow {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}
.hero-content {
  position: relative;
  z-index: 10;
}
.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  color: white;
  letter-spacing: -0.02em;
}
.hero-subtitle {
  font-size: 1.3rem;
  opacity: 0.9;
  font-weight: 400;
  max-width: 600px;
  margin: 0 auto 2rem;
}
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.btn-hero-primary {
  background: white;
  color: var(--primary);
  padding: 0.85rem 2.5rem;
  font-weight: 700;
  border-radius: 50px;
  transition: var(--transition);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  text-decoration: none;
}
.btn-hero-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.15);
  color: var(--primary-dark);
}
.btn-hero-secondary {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.85rem 2.5rem;
  font-weight: 600;
  border-radius: 50px;
  transition: var(--transition);
  text-decoration: none;
}
.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-3px);
  color: white;
}

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

.modern-product-card {
  background: var(--bg);
  padding: 1.5rem;
  border-radius: 1rem;
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
}
.modern-product-card:hover {
  background: white;
  border-color: var(--primary-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.modern-product-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}
.modern-product-name {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text);
}
.modern-price-up {
  background: #fff1f2;
  color: #e11d48;
  padding: 0.25rem 0.75rem;
  border-radius: 2rem;
  font-size: 0.85rem;
  font-weight: 700;
}
.modern-price-down {
  background: #ecfdf5;
  color: #059669;
  padding: 0.25rem 0.75rem;
  border-radius: 2rem;
  font-size: 0.85rem;
  font-weight: 700;
}
.modern-price-container {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-top: auto;
}
.modern-price {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
}
.modern-old-price {
  font-size: 0.9rem;
  color: var(--text-light);
  text-decoration: line-through;
}

.modern-city-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}
.modern-city-card:hover {
  border-color: var(--primary-light);
  transform: translateX(4px);
  box-shadow: var(--shadow);
  background: #f8fafc;
}
.modern-city-name {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text);
}
.modern-city-state {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.modern-city-arrow {
  color: var(--border);
  transition: var(--transition);
}
.modern-city-card:hover .modern-city-arrow {
  color: var(--primary);
  transform: translateX(4px);
}

.footer-content {
  text-align: center;
  color: var(--text-light);
  margin-top: 5rem;
  border-top: 1px solid var(--border);
  padding-top: 3rem;
  padding-bottom: 2rem;
}
.footer-links {
  margin-top: 1rem;
  font-size: 0.95rem;
}
.footer-links a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}
.footer-links a:hover {
  color: var(--primary-dark);
}
.footer-note {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  opacity: 0.8;
}

/* Custom utilities for the new premium landing page */
.hover-up {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.hover-up:hover {
  transform: translateY(-6px);
}

.animate-fade-in {
  animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.glass-dashboard-preview {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.glass-dashboard-preview:hover {
  transform: perspective(1000px) rotateX(3deg) rotateY(-3deg) translateZ(10px);
  box-shadow: 0 30px 60px -10px rgba(99, 102, 241, 0.25), 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}

.hover-shadow {
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.hover-shadow:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
  transform: translateY(-3px);
}

.transition {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.transition-sm {
  transition: all 0.2s ease;
}

.text-primary-light {
  color: #a5b4fc !important; /* Light indigo */
}

.placeholder-white-50::placeholder {
  color: rgba(255, 255, 255, 0.5) !important;
}

/* Custom styles for pricing/subscription table relative badge */
.relative {
  position: relative;
}

.dashboard-preview-item {
  background: rgba(255, 255, 255, 0.03) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.dashboard-preview-item:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -5px rgba(99, 102, 241, 0.15);
}

/* Market selection pills styles */
.market-group-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.market-pills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.market-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 50rem;
  font-size: 0.8rem;
  font-weight: 500;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #64748b;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.market-pill:hover {
  background-color: #e2e8f0;
  color: #1e293b;
}
.market-pill.active {
  font-weight: 600;
}
.market-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 0.5rem;
  display: inline-block;
}
