:root {
  --fg:#0f172a;
  --muted:#64748b;
  --bg:#ffffff;
  --card:#ffffff;
  --card-hover:#f8fafc;
  --border:#e2e8f0;
  --primary:#8b5cf6;
  --primary-light:#a78bfa;
  --primary-dark:#7c3aed;
  --accent:#ec4899;
  --success:#10b981;
  --warning:#f59e0b;
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif;
  color: var(--fg);
  background: linear-gradient(to bottom, #fafafa 0%, #ffffff 100%);
  line-height: 1.6;
}

a {
  color: inherit;
  transition: all 0.2s ease;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

/* Header & Navigation */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 32px;
}

.header-left {
  display: flex;
  align-items: center;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.logo:hover {
  transform: scale(1.02);
}

.logo-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  align-items: baseline;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.logo-main {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-tld {
  color: var(--muted);
  font-weight: 600;
  font-size: 18px;
}

/* Navigation Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  font-size: 15px;
  border-radius: 10px;
  transition: all 0.2s ease;
  position: relative;
}

.nav-link svg {
  width: 16px;
  height: 16px;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.nav-link:hover {
  color: var(--primary);
  background: rgba(139, 92, 246, 0.08);
}

.nav-link:hover svg {
  opacity: 1;
}

.nav-link.active {
  color: var(--primary);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.12) 0%, rgba(236, 72, 153, 0.08) 100%);
  font-weight: 600;
}

.nav-link.active svg {
  opacity: 1;
}

/* Header Right */
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  background: white;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--muted);
}

.search-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  background: white;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--muted);
}

.mobile-menu-btn:hover {
  background: var(--card-hover);
  border-color: var(--primary);
  color: var(--primary);
}

/* Search Overlay */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 100px;
  z-index: 2000;
}

.search-overlay.active {
  display: flex;
}

.search-container {
  width: 100%;
  max-width: 600px;
  margin: 0 24px;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 20px 60px 20px 24px;
  font-size: 18px;
  border: 2px solid transparent;
  border-radius: 16px;
  background: white;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 4px rgba(139, 92, 246, 0.1);
}

.search-close {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--muted);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.search-close:hover {
  background: var(--card-hover);
  color: var(--fg);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .header-container {
    height: 60px;
    padding: 0 16px;
  }

  .logo-icon {
    width: 32px;
    height: 32px;
  }

  .logo-text {
    font-size: 18px;
  }

  .logo-tld {
    font-size: 15px;
  }

  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .search-overlay {
    padding-top: 80px;
  }

  .search-input {
    font-size: 16px;
    padding: 16px 60px 16px 20px;
  }
}

/* Grid Layouts */
.grid {
  display: grid;
  gap: 20px;
}

.grid2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1100px) {
  .grid4 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .grid2, .grid3, .grid4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .grid2, .grid3, .grid4 {
    grid-template-columns: 1fr;
  }
}

/* Card Styles */
.card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  padding: 20px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  background: var(--card-hover);
}

.card:hover::before {
  transform: scaleX(1);
}

.slot-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.slot-card-image {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  margin-bottom: 8px;
  position: relative;
  overflow: hidden;
}

/* Typography */
.kicker {
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1 {
  font-size: 42px;
  line-height: 1.1;
  margin: 10px 0 12px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--fg) 0%, var(--muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  margin: 32px 0 16px;
  font-size: 28px;
  font-weight: 700;
  color: var(--fg);
}

h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--fg);
}

.meta {
  color: var(--muted);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  text-decoration: none;
  background: #fff;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
  color: var(--primary);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: white;
}

.btn-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Pills/Tags */
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.pill {
  font-size: 11px;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 12px;
  background: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.pill:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-1px);
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px;
  background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
  margin-bottom: 32px;
  box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 24px;
  }
}

/* Search */
.search {
  width: 100%;
  max-width: 520px;
}

.search input {
  width: 100%;
  padding: 14px 18px;
  border-radius: 16px;
  border: 2px solid var(--border);
  font-size: 15px;
  transition: all 0.2s ease;
  box-shadow: var(--shadow);
}

.search input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: var(--shadow-md), 0 0 0 3px rgba(139, 92, 246, 0.1);
}

/* Filters */
.filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 24px 0;
  padding: 20px;
  background: white;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

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

.filter-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.filter-select {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  background: white;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-select:hover {
  border-color: var(--primary);
}

/* Stats/Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
}

.badge-success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
}

.badge-primary {
  background: rgba(139, 92, 246, 0.1);
  color: var(--primary);
}

/* Provider Section */
.provider-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.provider-card {
  padding: 24px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: white;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  cursor: pointer;
}

.provider-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.provider-logo {
  font-size: 36px;
  margin-bottom: 12px;
}

.provider-count {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  margin-top: 48px;
  padding: 24px 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

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

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

/* Iframe/Demo */
iframe {
  border: 0;
  border-radius: 16px;
  width: 100%;
  min-height: 600px;
  box-shadow: var(--shadow-lg);
}

/* Section Headers */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.view-all {
  font-size: 14px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.view-all:hover {
  text-decoration: underline;
}

/* Slot Info Grid */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.info-item {
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: center;
}

.info-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.info-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--fg);
}
