:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-hover: #f1f5f9;
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-light: #eef2ff;
  --accent: #ec4899;
  --accent-hover: #db2777;
  --text: #0f172a;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
  --navbar-bg: #ffffff;
  --navbar-text: #1e293b;
  --navbar-text-muted: #64748b;
  --footer-bg: #0f172a;
  --footer-text: #94a3b8;
  --hero-from: #6366f1;
  --hero-to: #4f46e5;
  --success: #10b981;
  --success-bg: #ecfdf5;
  --success-border: #a7f3d0;
  --warning: #f59e0b;
  --warning-bg: #fffbeb;
  --warning-border: #fde68a;
  --danger: #ef4444;
  --danger-bg: #fef2f2;
  --danger-border: #fecaca;
  --info-bg: #eef2ff;
  --star: #f59e0b;
  --star-empty: #e2e8f0;
  --price-bg: #ecfdf5;
  --price-text: #059669;
  --tag-bg: #eef2ff;
  --tag-text: #4f46e5;
  --feature-bg: #f0f0ff;
  --integration-bg: #f8fafc;
  --integration-border: #e2e8f0;
  --verified-bg: #ecfdf5;
  --verified-text: #059669;
  --featured-bg: #fffbeb;
  --featured-text: #d97706;
  --rejected-bg: #fef2f2;
  --rejected-text: #dc2626;
  --review-bg: #ffffff;
  --logo-bg: #f1f5f9;
  --overlay: rgba(0,0,0,0.5);
  --radius: 8px;
  --radius-lg: 12px;
  --transition: 0.2s ease;
}

[data-theme="dark"] {
  --bg: #0f172a;
  --surface: #1e293b;
  --surface-hover: #334155;
  --primary: #818cf8;
  --primary-hover: #6366f1;
  --primary-light: #1e1b4b;
  --accent: #f472b6;
  --accent-hover: #ec4899;
  --text: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: #334155;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.4), 0 2px 4px -2px rgba(0,0,0,0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.5), 0 4px 6px -4px rgba(0,0,0,0.3);
  --navbar-bg: #1e293b;
  --navbar-text: #f1f5f9;
  --navbar-text-muted: #94a3b8;
  --footer-bg: #020617;
  --footer-text: #64748b;
  --hero-from: #1e1b4b;
  --hero-to: #0f172a;
  --success: #34d399;
  --success-bg: #064e3b;
  --success-border: #065f46;
  --warning-bg: #451a03;
  --warning-border: #78350f;
  --danger-bg: #450a0a;
  --danger-border: #7f1d1d;
  --info-bg: #1e1b4b;
  --star-empty: #475569;
  --price-bg: #064e3b;
  --price-text: #34d399;
  --tag-bg: #312e81;
  --tag-text: #a5b4fc;
  --feature-bg: #1e1b4b;
  --integration-bg: #1e293b;
  --integration-border: #334155;
  --verified-bg: #064e3b;
  --verified-text: #34d399;
  --featured-bg: #451a03;
  --featured-text: #fbbf24;
  --rejected-bg: #450a0a;
  --rejected-text: #fca5a5;
  --review-bg: #1e293b;
  --logo-bg: #334155;
  --overlay: rgba(0,0,0,0.7);
}

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

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

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

/* Navbar */
.navbar {
  background: var(--navbar-bg);
  color: var(--navbar-text);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.navbar .container {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.logo {
  font-size: 1.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  flex: 1;
}

.nav-links a {
  color: var(--navbar-text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color var(--transition);
}

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

.nav-submit {
  background: var(--accent);
  color: #fff !important;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  transition: background var(--transition);
}
.nav-submit:hover { background: var(--accent-hover); }

/* Hamburger Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.3rem;
  z-index: 110;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.search-form { display: flex; }

.search-input {
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface-hover);
  color: var(--text);
  width: 200px;
  font-size: 0.85rem;
  transition: border-color var(--transition);
}

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

.main-content {
  min-height: calc(100vh - 140px);
  padding: 2rem 20px;
}

/* Footer */
.footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  text-align: center;
  padding: 2.5rem 0 1.5rem;
  font-size: 0.85rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  gap: 2rem;
  text-align: left;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: #fff;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.footer-section p { font-size: 0.8rem; color: var(--footer-text); line-height: 1.6; }

.footer-section a {
  display: block;
  color: var(--footer-text);
  text-decoration: none;
  font-size: 0.8rem;
  margin-bottom: 0.4rem;
  transition: color var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 1rem;
  text-align: center;
}

.newsletter-form { display: flex; gap: 0.5rem; }

.newsletter-input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: 1px solid #334155;
  border-radius: 6px;
  background: #1e293b;
  color: #f1f5f9;
  font-size: 0.8rem;
}

.newsletter-input::placeholder { color: #64748b; }

/* Hero */
.hero {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, var(--hero-from), var(--hero-to));
  color: #fff;
  border-radius: var(--radius-lg);
  margin-bottom: 3rem;
}

.hero h1 { font-size: 2.5rem; margin-bottom: 0.75rem; font-weight: 800; letter-spacing: -1px; line-height: 1.2; }
.hero p { font-size: 1.1rem; color: rgba(255,255,255,0.7); margin-bottom: 2rem; }

.hero-search { max-width: 500px; margin: 0 auto; }

.hero-search input {
  width: 100%;
  padding: 1rem 1.25rem;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  box-shadow: var(--shadow-lg);
}

/* Sections */
.section { margin-bottom: 3rem; }

.section-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
}

/* Section Header */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.section-link {
  font-size: 0.85rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.section-link:hover { text-decoration: underline; }

/* App Grid & Cards */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.app-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition), background var(--transition);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
}

.app-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.app-card-header {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 0.75rem;
}

.app-logo {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  object-fit: contain;
  background: var(--logo-bg);
}

.app-card-info { flex: 1; }

.app-card-info h3 {
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.app-card-info h3 a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition);
}

.app-card-info h3 a:hover { color: var(--primary); }

.app-vendor { font-size: 0.78rem; color: var(--text-muted); }
.app-vendor a { color: var(--text-muted); text-decoration: underline; transition: color var(--transition); }
.app-vendor a:hover { color: var(--primary); }

.app-tagline {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  flex: 1;
  line-height: 1.5;
}

.app-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
}

.app-price {
  background: var(--price-bg);
  color: var(--price-text);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
}

.app-rating { color: var(--star); }

/* Badges */
.badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
}

.badge-featured { background: var(--featured-bg); color: var(--featured-text); }
.badge-verified { background: var(--verified-bg); color: var(--verified-text); }
.badge-rejected { background: var(--rejected-bg); color: var(--rejected-text); }

/* Category Grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.category-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--text);
  transition: box-shadow var(--transition), transform var(--transition), background var(--transition);
  border: 1px solid var(--border);
}

.category-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.category-card .icon { font-size: 2rem; margin-bottom: 0.5rem; display: block; }
.category-card h3 { font-size: 0.95rem; margin-bottom: 0.25rem; font-weight: 600; }
.category-card .count { font-size: 0.78rem; color: var(--text-muted); }

/* Platform Grid */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}

.platform-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--text);
  transition: box-shadow var(--transition), transform var(--transition), background var(--transition);
  border: 1px solid var(--border);
}

.platform-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Page Header */
.page-header { margin-bottom: 2rem; }
.page-header h1 { font-size: 1.75rem; font-weight: 700; margin-bottom: 0.35rem; }
.page-header p { color: var(--text-secondary); }

/* About & Contact */
.eyebrow {
  display: inline-block;
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.lead { color: var(--text-secondary); font-size: 1.05rem; line-height: 1.8; }

.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 3rem;
  align-items: center;
  padding: 4rem 3.5rem;
  margin-bottom: 4rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--hero-from), var(--hero-to));
  color: #fff;
  overflow: hidden;
}

.about-hero .eyebrow { color: #c7d2fe; }
.about-hero h1 { max-width: 680px; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.08; letter-spacing: -0.05em; margin-bottom: 1.25rem; }
.about-hero .lead { max-width: 680px; color: rgba(255,255,255,0.78); }
.about-hero-mark { font-size: 5rem; font-weight: 900; letter-spacing: -0.12em; opacity: 0.9; text-align: center; transform: rotate(-8deg); }
.about-hero-mark span { color: #f9a8d4; }

.about-section { display: grid; grid-template-columns: 1fr 1.35fr; gap: 4rem; margin: 0 auto 4rem; max-width: 980px; }
.about-section h2, .about-cta h2 { font-size: 1.75rem; line-height: 1.2; letter-spacing: -0.03em; }
.about-copy { color: var(--text-secondary); line-height: 1.8; }
.about-copy p + p { margin-top: 1rem; }
.about-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 4rem; }
.about-value-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.about-value-icon { color: var(--primary); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; margin-bottom: 1.5rem; }
.about-value-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.about-value-card p { color: var(--text-secondary); font-size: 0.85rem; line-height: 1.7; }
.about-cta { display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding: 2rem 2.25rem; margin-bottom: 1rem; border-radius: var(--radius-lg); background: var(--primary-light); border: 1px solid var(--border); }
.about-cta h2 { font-size: 1.35rem; }

.contact-layout { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr); gap: 4rem; align-items: start; max-width: 1040px; margin: 2rem auto; }
.contact-intro { padding-top: 2rem; }
.contact-intro h1 { font-size: clamp(2.3rem, 5vw, 3.5rem); line-height: 1.08; letter-spacing: -0.05em; margin-bottom: 1.25rem; }
.contact-details { margin-top: 2.5rem; display: grid; gap: 1.25rem; }
.contact-detail { display: flex; align-items: flex-start; gap: 0.85rem; color: var(--text-secondary); font-size: 0.85rem; }
.contact-detail-icon { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--primary-light); color: var(--primary); font-size: 0.95rem; }
.contact-detail strong, .contact-detail a { display: block; color: var(--text); font-weight: 600; margin-bottom: 0.15rem; }
.contact-detail a { color: var(--primary); text-decoration: none; font-weight: 500; }
.contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-md); }
.contact-card h2 { font-size: 1.35rem; margin-bottom: 0.25rem; }
.form-intro { color: var(--text-secondary); font-size: 0.85rem; margin-bottom: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-input::placeholder { color: var(--text-muted); }
.field-validation-error { display: block; color: var(--danger); font-size: 0.72rem; margin-top: 0.25rem; }
.validation-summary-valid { display: none; }

/* App Detail */
.app-detail-header {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  align-items: flex-start;
}

.app-detail-logo {
  width: 88px;
  height: 88px;
  border-radius: var(--radius-lg);
  object-fit: contain;
  background: var(--logo-bg);
}

.app-detail-info { flex: 1; }
.app-detail-info h1 { font-size: 1.75rem; font-weight: 700; margin-bottom: 0.35rem; }

.app-detail-meta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.app-detail-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 0.75rem; }

.tag {
  background: var(--tag-bg);
  color: var(--tag-text);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
}

.app-detail-actions { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; }
.view-count { font-size: 0.8rem; color: var(--text-muted); }

.app-detail-body {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  min-width: 0;
}

.app-description { min-width: 0; line-height: 1.8; color: var(--text-secondary); }
.app-detail-body > .app-description:first-child { grid-column: 1; grid-row: 1 / span 2; }
.app-detail-reviews { grid-column: 2; grid-row: 2; }
.app-detail-sidebar {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.app-detail-alternatives { order: 1; }
.app-detail-related { order: 2; }
.app-detail-quick-info { order: 3; }
.app-description h2 { color: var(--text); font-size: 1.2rem; margin: 1.5rem 0 0.75rem; }

/* Pricing Table */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.pricing-table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

.pricing-table th, .pricing-table td { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
.pricing-table th { background: var(--surface-hover); font-weight: 600; color: var(--text-secondary); font-size: 0.8rem; text-transform: uppercase; }
.pricing-table tr:last-child td { border-bottom: none; }

/* Sidebar */
.sidebar-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1rem;
  border: 1px solid var(--border);
}

.sidebar-card h3 { font-size: 0.95rem; margin-bottom: 0.75rem; color: var(--text); }
.sidebar-card p { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 0.4rem; }
.sidebar-card p strong { color: var(--text); }

.social-links { margin-top: 0.5rem; }
.social-links > strong { font-size: 0.85rem; color: var(--text); display: block; margin-bottom: 0.4rem; }
.social-links-list { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--text-secondary);
  background: var(--surface-hover);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.social-link:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--primary-light);
}
.social-link svg { flex-shrink: 0; }

.review-text, .review-pros, .review-cons, .sidebar-card, .app-description p { overflow-wrap: anywhere; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  text-align: center;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  cursor: pointer;
  border: none;
  line-height: 1.4;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

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

.btn-outline {
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
  background: transparent;
}

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

.btn-block { width: 100%; }
.btn-sm { padding: 0.35rem 0.75rem; font-size: 0.78rem; }

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}

.empty-state h2 { font-size: 1.25rem; margin-bottom: 0.5rem; color: var(--text-secondary); }

/* Pagination */
.pagination {
  display: flex;
  gap: 0.25rem;
  margin-top: 2rem;
  justify-content: center;
  align-items: center;
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.82rem;
  transition: all var(--transition);
}

.page-link:hover { background: var(--surface-hover); border-color: var(--primary); color: var(--primary); }
.page-link.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.page-link.dots { border: none; background: none; min-width: 1.5rem; }

/* Screenshots */
.screenshots-section { margin: 2rem 0; }
.screenshots-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.screenshot-item {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border);
}

.screenshot-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.screenshot-item img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

.screenshot-caption {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
  background: var(--surface);
}

/* Feature & Integration Lists */
.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.5rem;
  margin: 1rem 0;
}

.feature-item {
  background: var(--feature-bg);
  color: var(--primary);
  padding: 0.45rem 0.75rem;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 500;
}

.integration-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.5rem;
  margin: 1rem 0;
}

.integration-item {
  background: var(--integration-bg);
  border: 1px solid var(--integration-border);
  padding: 0.45rem 0.75rem;
  border-radius: 6px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* Vendor Profile */
.vendor-header {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  align-items: flex-start;
}

.vendor-logo {
  width: 88px;
  height: 88px;
  border-radius: var(--radius-lg);
  object-fit: contain;
  background: var(--logo-bg);
}

.vendor-info { flex: 1; }
.vendor-info h1 { font-size: 1.75rem; font-weight: 700; margin-bottom: 0.35rem; }
.vendor-info p { color: var(--text-secondary); line-height: 1.7; margin-bottom: 0.75rem; }

/* Vendor Index */
.vendor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.vendor-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.1rem;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--text);
  transition: box-shadow var(--transition), transform var(--transition), background var(--transition);
  border: 1px solid var(--border);
}

.vendor-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.vendor-card-logo {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  object-fit: contain;
  background: var(--logo-bg);
}

.vendor-card-info h3 { font-size: 0.95rem; margin-bottom: 0.2rem; font-weight: 600; }
.vendor-card-info .count { font-size: 0.78rem; color: var(--text-muted); }

/* Alternatives */
.alternative-item { margin-bottom: 0.6rem; }
.alternative-item a { color: var(--text); font-weight: 500; transition: color var(--transition); }
.alternative-item a:hover { color: var(--primary); }
.alternative-item .alt-vendor { font-size: 0.78rem; color: var(--text-muted); }
.alternative-item .alt-vendor a { color: var(--text-muted); font-weight: 400; text-decoration: underline; }

/* Auth Pages */
.auth-page {
  display: flex;
  justify-content: center;
  padding: 3rem 0;
}

.auth-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  width: 440px;
  max-width: 100%;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.auth-card h1 { font-size: 1.4rem; font-weight: 700; margin-bottom: 0.25rem; }
.auth-card p { color: var(--text-secondary); margin-bottom: 1.5rem; font-size: 0.88rem; }

.auth-alt { text-align: center; margin-top: 1.5rem; font-size: 0.82rem; color: var(--text-muted); }
.auth-alt a { color: var(--primary); font-weight: 500; }

/* Forms */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 0.35rem; color: var(--text); }
.form-input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.88rem;
  background: var(--surface);
  color: var(--text);
  transition: border-color var(--transition);
}
.form-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,102,241,0.15); }
.form-hint { display: block; font-size: 0.72rem; color: var(--text-muted); margin-top: 0.25rem; }

/* Alerts */
.alert { padding: 0.75rem 1rem; border-radius: 6px; font-size: 0.82rem; margin-bottom: 1rem; font-weight: 500; }
.alert-danger { background: var(--danger-bg); border: 1px solid var(--danger-border); color: var(--danger); }
.alert-success { background: var(--success-bg); border: 1px solid var(--success-border); color: var(--success); }

/* Nav auth */
.nav-auth { display: flex; gap: 0.4rem; align-items: center; }

/* Theme Toggle */
.theme-toggle {
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  padding: 0.35rem 0.5rem;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  color: var(--text-secondary);
  transition: border-color var(--transition), color var(--transition);
  display: flex;
  align-items: center;
}

.theme-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Submit Form */
.submit-form { max-width: 800px; }
.form-section {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.form-section h2 { font-size: 1.05rem; margin-bottom: 1rem; color: var(--text); }

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 0.5rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
  cursor: pointer;
}

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

/* Pricing Plan Rows */
.pricing-plan-row {
  background: var(--surface-hover);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 0.85rem;
}
.pricing-plan-row-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
}
.pricing-plan-checks {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

/* Data Table */
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.data-table th, .data-table td { padding: 0.7rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
.data-table th { background: var(--surface-hover); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; color: var(--text-muted); }
.data-table td { font-size: 0.85rem; }
.data-table tr:last-child td { border-bottom: none; }

/* Reviews */
.reviews-section { margin-top: 2rem; }
.review-card {
  background: var(--review-bg);
  border-radius: var(--radius);
  padding: 1.15rem;
  margin-bottom: 0.85rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.review-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.5rem; flex-wrap: wrap; gap: 0.5rem; }
.review-author { display: flex; align-items: center; gap: 0.5rem; }
.review-author strong { color: var(--text); }
.review-rating { display: flex; gap: 0.1rem; }
.star { font-size: 1.05rem; }
.star-filled { color: var(--star); }
.star-empty { color: var(--star-empty); }
.review-title { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.2rem; color: var(--text); }
.review-text { color: var(--text-secondary); line-height: 1.6; font-size: 0.85rem; }
.review-procons { margin-top: 0.6rem; font-size: 0.82rem; }
.review-pros { color: var(--success); margin-bottom: 0.2rem; }
.review-cons { color: var(--danger); }
.review-date { color: var(--text-muted); font-size: 0.78rem; margin-top: 0.4rem; }

.review-form-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.review-form-card h3 { margin-bottom: 1rem; color: var(--text); }

/* Auth Divider */
.auth-divider { display: flex; align-items: center; gap: 0.75rem; margin: 1rem 0; color: var(--text-muted); font-size: 0.82rem; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; border-top: 1px solid var(--border); }

/* Star Rating Input */
.star-rating-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 0.1rem; }
.star-rating-input input { display: none; }
.star-rating-input label { font-size: 1.4rem; color: var(--star-empty); cursor: pointer; transition: color var(--transition); }
.star-rating-input label:hover,
.star-rating-input label:hover ~ label,
.star-rating-input input:checked ~ label { color: var(--star); }

/* Compare Table */
.compare-table-wrapper { margin: 2rem 0; }

.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.compare-table th, .compare-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.compare-table th { background: var(--surface-hover); font-weight: 600; font-size: 0.82rem; color: var(--text-secondary); }

.compare-label {
  background: var(--surface-hover);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--text-muted);
  white-space: nowrap;
  width: 120px;
}

.compare-app { text-align: center; min-width: 200px; }

.compare-logo {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  object-fit: contain;
  background: var(--logo-bg);
  display: block;
  margin: 0 auto 0.5rem;
}

.compare-app a { color: var(--text); text-decoration: none; font-weight: 600; transition: color var(--transition); }
.compare-app a:hover { color: var(--primary); }

.compare-vendor { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.2rem; }
.compare-vendor a { color: var(--text-muted); font-weight: 400; text-decoration: underline; }

.compare-value { font-size: 0.82rem; color: var(--text-secondary); }

/* Filter Bar */
.filter-bar select {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.82rem;
  cursor: pointer;
  transition: border-color var(--transition);
}

.filter-bar select:focus { outline: none; border-color: var(--primary); }

/* Dashboard table status badges */
.status-badge { font-size: 0.75rem; font-weight: 600; }

/* Glossary */
.glossary-hero {
  background: linear-gradient(135deg, var(--hero-from), var(--hero-to));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  margin-bottom: 2.5rem;
  text-align: center;
}

.glossary-hero-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c7d2fe;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 100px;
  padding: 0.25rem 0.85rem;
  margin-bottom: 1rem;
}

.glossary-hero h1 {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 0.6rem;
}

.glossary-hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
  max-width: 580px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

.glossary-hero-stats {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
}

.glossary-stat-value {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
}

.glossary-stat-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.65);
}

/* A-Z Nav */
.glossary-atoz {
  display: flex;
  gap: 0.25rem;
  justify-content: center;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  position: sticky;
  top: 60px;
  z-index: 10;
  background: var(--bg);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.atoz-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
  transition: all var(--transition);
}

.atoz-link.active {
  color: var(--primary);
  background: var(--primary-light);
}

.atoz-link.active:hover {
  background: var(--primary);
  color: #fff;
}

.atoz-link.disabled {
  color: var(--border);
  cursor: default;
  background: none;
}

/* Glossary Sections */
.glossary-section {
  margin-bottom: 2.5rem;
  scroll-margin-top: 130px;
}

.glossary-section-header {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
}

.glossary-letter {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.glossary-count {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.glossary-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 0.85rem;
}

.glossary-item {
  text-decoration: none;
  display: block;
}

.glossary-item-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  position: relative;
}

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

.glossary-item-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.3rem;
  padding-right: 1.5rem;
}

.glossary-item-card p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.glossary-item-arrow {
  position: absolute;
  top: 1.15rem;
  right: 1.15rem;
  font-size: 1rem;
  color: var(--text-muted);
  transition: color var(--transition), transform var(--transition);
}

.glossary-item-card:hover .glossary-item-arrow {
  color: var(--primary);
  transform: translateX(3px);
}

/* Glossary Detail */
.glossary-detail {
  max-width: 780px;
  margin: 0 auto;
}

.glossary-detail-header {
  margin-bottom: 2rem;
}

.glossary-detail-header h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.6rem;
}

.glossary-definition {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  border-left: 3px solid var(--primary);
  padding-left: 1.15rem;
  margin-bottom: 0.75rem;
}

.glossary-date {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.glossary-content {
  color: var(--text-secondary);
  line-height: 1.85;
  font-size: 0.95rem;
}

.glossary-content h2 {
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 1.75rem 0 0.6rem;
}

.glossary-content h3 {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 1.25rem 0 0.4rem;
}

.glossary-content ul,
.glossary-content ol {
  padding-left: 1.25rem;
  margin: 0.6rem 0;
}

.glossary-content li {
  margin-bottom: 0.3rem;
}

.glossary-content a {
  color: var(--primary);
  text-decoration: underline;
}

.glossary-content p {
  margin-bottom: 0.85rem;
}

.glossary-related {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.85rem;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

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

@media (max-width: 768px) {
  .glossary-hero { padding: 2rem 1.5rem; }
  .glossary-hero h1 { font-size: 1.6rem; }
  .glossary-items { grid-template-columns: 1fr; }
  .glossary-atoz { gap: 0.15rem; }
  .atoz-link { width: 1.6rem; height: 1.6rem; font-size: 0.72rem; }
  .glossary-hero-stats { gap: 1.5rem; }
  .glossary-detail-header h1 { font-size: 1.5rem; }
  .glossary-detail { padding: 0; }
}

/* Responsive */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .navbar .container { flex-wrap: wrap; gap: 0.75rem; }
  .nav-links {
    display: none;
    order: 3;
    width: 100%;
    flex-direction: column;
    gap: 0;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--border);
  }
  .nav-links li:last-child a { border-bottom: none; }
  .nav-auth {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    margin-left: auto;
  }
  .nav-submit { order: -1; }
  .search-form {
    order: 4;
    width: 100%;
    margin-top: 0.25rem;
  }
  .search-input { width: 100%; }
  .app-detail-body { grid-template-columns: 1fr; gap: 1rem; }
  .app-detail-body > .app-description:first-child,
  .app-detail-reviews,
  .app-detail-sidebar { grid-column: 1; grid-row: auto; }
  .app-detail-header { flex-direction: column; align-items: center; text-align: center; }
  .app-detail-info { width: 100%; min-width: 0; }
  .app-detail-info h1 { font-size: 1.45rem; overflow-wrap: anywhere; }
  .app-detail-actions { flex-direction: column; align-items: stretch; gap: 0.65rem; }
  .app-detail-actions .btn { width: 100%; text-align: center; }
  .app-detail-actions .view-count { text-align: center; }
  .app-detail-single-column { grid-template-columns: 1fr; }
  .pricing-table-wrap { overflow-x: visible; }
  .pricing-table { display: block; border: none; background: transparent; }
  .pricing-table thead { display: none; }
  .pricing-table tbody, .pricing-table tr, .pricing-table td { display: block; }
  .pricing-table tr {
    margin-bottom: 1rem;
    padding: 0.25rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
  }
  .pricing-table tr:last-child { margin-bottom: 0; }
  .pricing-table td {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.7rem 0;
    text-align: right;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .pricing-table td::before {
    flex: 0 0 42%;
    color: var(--text-muted);
    content: attr(data-label);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-align: left;
    text-transform: uppercase;
  }
  .pricing-table td + td { border-top: 1px solid var(--border); }
  .pricing-table td:first-child { color: var(--text); font-size: 1rem; }
  .review-header { align-items: flex-start; gap: 0.5rem; }
  .review-author { min-width: 0; overflow-wrap: anywhere; }
  .review-rating { flex-shrink: 0; }
  .review-form-card, .sidebar-card { padding: 1rem; }
  .vendor-header { flex-direction: column; align-items: center; text-align: center; }
  .screenshots-gallery { grid-template-columns: 1fr; }
  .vendor-grid { grid-template-columns: 1fr; }
  .pagination { flex-wrap: wrap; justify-content: center; }
  .submit-form { max-width: 100%; }
  .footer-content { grid-template-columns: 1fr; text-align: center; }
  .newsletter-form { flex-direction: column; }
  .compare-table { font-size: 0.78rem; }
  .compare-table th, .compare-table td { padding: 0.5rem; }
  .hero h1 { font-size: 1.8rem; }
  .hero { padding: 3rem 1.5rem; }
  .filter-bar { flex-direction: column; }
  .filter-bar select { width: 100%; }
  .about-hero { grid-template-columns: 1fr; padding: 2.5rem 1.5rem; gap: 1rem; }
  .about-hero-mark { display: none; }
  .about-section, .about-values { grid-template-columns: 1fr; gap: 1.25rem; }
  .about-cta { align-items: flex-start; flex-direction: column; }
  .contact-layout { grid-template-columns: 1fr; gap: 2rem; margin-top: 0; }
  .contact-intro { padding-top: 0; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
}
