/* ===================================================
   copilots.top — Global CSS
   Light minimal style, inspired by theresanaiforthat.com
   =================================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-page:        #fafbfe;
  --bg-card:        #ffffff;
  --bg-header:      rgba(255, 255, 255, 0.9);
  --border:         #e5e7eb;
  --border-focus:   #7150E6;

  --accent:         #7150E6;
  --accent-light:   #f0edff;
  --accent-hover:   #5b3dc4;

  --text-primary:   #111827;
  --text-secondary: #4b5563;
  --text-muted:     #6b7280;
  --text-light:     #9ca3af;

  --radius-sm:      6px;
  --radius-md:      10px;
  --radius-lg:      14px;
  --radius-xl:      20px;

  --shadow-sm:      0 1px 3px rgba(0,0,0,0.05);
  --shadow-md:      0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
  --shadow-hover:   0 10px 15px -3px rgba(0, 0, 0, 0.05);

  --transition:     0.2s ease-in-out;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
}

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

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-page); }
::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: #9ca3af; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: var(--bg-header);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}
.header.scrolled { box-shadow: var(--shadow-sm); }

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 60px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon {
  font-size: 18px;
  color: var(--accent);
}
.logo-text {
  font-family: 'Outfit', sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--text-primary);
}
.logo-dot { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}
.nav-link {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition);
}
.nav-link:hover { color: var(--accent); background: var(--accent-light); }

.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }

/* ---------- Lang Switcher ---------- */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #f3f4f6;
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 3px 10px;
}
.lang-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 99px;
  transition: all var(--transition);
}
.lang-btn.active {
  color: #fff;
  background: var(--accent);
}
.lang-btn:hover:not(.active) { color: var(--text-primary); }
.lang-divider { color: #d1d5db; font-size: 11px; }

.mobile-lang {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}
.mobile-lang button {
  background: #f3f4f6;
  border: 1px solid var(--border);
  border-radius: 99px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  cursor: pointer;
  transition: all var(--transition);
}
.mobile-lang button:hover { border-color: var(--accent); color: var(--accent); }

.btn-submit {
  padding: 8px 16px;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 99px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-submit:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.mobile-menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 12px 20px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}
.mobile-menu a {
  padding: 12px 0;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}
.mobile-menu.open { display: flex; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 100px 0 60px;
  background: linear-gradient(180deg, #f0edff 0%, var(--bg-page) 100%);
  border-bottom: 1px solid var(--border);
}

.hero-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 99px;
  background: #ffffff;
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}
.badge-dot {
  width: 6px; height: 6px;
  background: #10b981;
  border-radius: 50%;
}

.hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.gradient-text {
  color: var(--accent);
}

.hero-desc {
  font-size: clamp(14px, 1.8vw, 16px);
  color: var(--text-secondary);
  max-width: 580px;
  line-height: 1.6;
}

/* Search */
.search-wrap {
  width: 100%;
  max-width: 600px;
  margin-top: 10px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 4px 4px 4px 16px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.search-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(113, 80, 230, 0.15);
}
.search-icon { font-size: 16px; flex-shrink: 0; }
.search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
}
.search-input::placeholder { color: var(--text-muted); }
.search-btn {
  padding: 8px 20px;
  background: var(--accent);
  border: none;
  border-radius: 99px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition);
}
.search-btn:hover { background: var(--accent-hover); }

.search-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.search-tag-label { font-size: 12px; color: var(--text-muted); }
.tag-pill {
  padding: 3px 10px;
  border-radius: 99px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
  transition: all var(--transition);
}
.tag-pill:hover {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent);
}

/* Stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 10px;
}
.stat-item { text-align: center; }
.stat-num {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}
.stat-label { font-size: 12px; color: var(--text-muted); }
.stat-divider { width: 1px; height: 30px; background: var(--border); }

/* ---------- Sections ---------- */
.section-header { text-align: center; margin-bottom: 36px; }
.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(22px, 3.5vw, 30px);
  font-weight: 700;
  margin-bottom: 8px;
}
.section-desc { color: var(--text-secondary); font-size: 14px; }

/* ---------- Scene Section ---------- */
.scene-section { padding: 40px 0; }

.scene-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.scene-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  display: block;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.scene-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.scene-icon { font-size: 24px; margin-bottom: 8px; display: block; }
.scene-name { font-size: 14px; font-weight: 700; color: var(--text-primary); display: block; margin-bottom: 4px; }
.scene-desc { font-size: 12px; color: var(--text-muted); line-height: 1.4; height: 34px; overflow: hidden; }
.scene-count {
  display: inline-block;
  margin-top: 10px;
  font-size: 11px;
  color: var(--accent);
  font-weight: 600;
  background: var(--accent-light);
  padding: 2px 8px;
  border-radius: 99px;
}

/* ---------- Pillar Switcher ---------- */
.pillar-switcher-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

.pillar-switcher {
  display: inline-flex;
  background: #f3f4f6;
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 4px;
  gap: 4px;
  box-shadow: var(--shadow-sm);
}

.pillar-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 24px;
  border-radius: 99px;
  border: none;
  background: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.pillar-btn:hover {
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.03);
}

.pillar-btn.active {
  background: var(--accent);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.pillar-btn.active:hover {
  background: var(--accent);
  color: #ffffff;
}

.pillar-icon {
  font-size: 16px;
}

/* ---------- Categories ---------- */
.categories-section { padding: 40px 0 20px; }

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
}

.cat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  color: inherit;
  display: block;
  box-shadow: var(--shadow-sm);
}
.cat-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}
.cat-card.active {
  border-color: var(--accent);
  background: var(--accent-light);
  color: var(--accent);
}

.cat-emoji { font-size: 24px; display: block; margin-bottom: 6px; }
.cat-name { font-size: 13px; font-weight: 600; color: var(--text-primary); display: block; }
.cat-card.active .cat-name { color: var(--accent); }
.cat-count { font-size: 11px; color: var(--text-muted); margin-top: 4px; display: block; }

/* ---------- Tools Section ---------- */
.tools-section { padding: 40px 0; }

.tools-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.tools-title-wrap { display: flex; align-items: center; gap: 8px; }
.tools-count {
  padding: 2px 8px;
  background: var(--accent-light);
  border-radius: 99px;
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
}

.tools-controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.filter-tabs {
  display: flex;
  background: #f3f4f6;
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 3px;
  gap: 2px;
}
.filter-tab {
  padding: 5px 14px;
  border-radius: 99px;
  border: none;
  background: none;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}
.filter-tab.active, .filter-tab:hover { background: var(--accent); color: #fff; }

.sort-select {
  padding: 6px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
  outline: none;
}
.sort-select:focus { border-color: var(--accent); }

/* --- Tools List (Vertical Row-based directory) --- */
.tools-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Tool Row Style (TAAFT) */
.tool-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.tool-row:hover {
  background: var(--bg-page);
  border-color: #cbd5e1;
}

.tool-row.featured {
  border-left: 3px solid var(--accent);
}

/* Main content of the row */
.tool-row-main {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 0;
}

.tool-row-icon {
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  background: #f3f4f6;
  border: 1px solid var(--border);
  overflow: hidden;
}

.tool-logo-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 4px;
}

.tool-emoji-fallback {
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  display: flex;
  background: var(--accent-light);
}

.tool-row-info {
  flex: 1;
  min-width: 0;
}

.tool-row-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.tool-row-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--text-primary);
}

.tool-row-category {
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
}

.tool-row-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 90%;
}

/* Meta info of the row (badges and ratings) */
.tool-row-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
  margin: 0 20px;
}

.tool-row-badges {
  display: flex;
  gap: 6px;
  align-items: center;
}

.badge {
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid transparent;
}
.badge-free { background: #e6f9f0; color: #10b981; border-color: #a7f3d0; }
.badge-paid { background: #fffbeb; color: #d97706; border-color: #fde68a; }
.badge-freemium { background: #e0f2fe; color: #0284c7; border-color: #bae6fd; }
.badge-new { background: #e0e7ff; color: #4f46e5; border-color: #c7d2fe; }
.badge-hot { background: #fee2e2; color: #dc2626; border-color: #fca5a5; }
.badge-cn { background: #fff7ed; color: #ea580c; border-color: #ffedd5; }

.tool-row-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
}
.stars { color: #f59e0b; letter-spacing: -1px; }
.rating-num { color: var(--text-muted); }

/* Action visit button */
.tool-row-action {
  flex-shrink: 0;
}

.tool-row-visit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  background: var(--accent-light);
  border: 1px solid var(--accent-light);
  border-radius: 99px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
}
.tool-row-visit-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* Load More */
.load-more-wrap { text-align: center; margin-top: 32px; }
.btn-load-more {
  padding: 10px 30px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 99px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.btn-load-more:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}
.btn-load-more:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ---------- Ranking ---------- */
.ranking-section { padding: 40px 0; }
.ranking-list { display: flex; flex-direction: column; gap: 8px; }

.rank-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.rank-item:hover {
  border-color: var(--accent);
  background: var(--bg-page);
  transform: translateX(2px);
}

.rank-num {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 800;
  min-width: 24px;
}
.rank-num.top1 { color: #f59e0b; }
.rank-num.top2 { color: #94a3b8; }
.rank-num.top3 { color: #b45309; }
.rank-num.other { color: var(--text-light); }

.rank-icon {
  font-size: 20px;
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  border: 1px solid var(--border);
}

.rank-info { flex: 1; min-width: 0; }
.rank-name { font-weight: 600; font-size: 14px; color: var(--text-primary); }
.rank-desc { font-size: 12px; color: var(--text-muted); margin-top: 1px; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }

.rank-badge {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}
.rank-trend { color: #10b981; font-size: 11px; margin-left: 2px; }

/* ---------- Newsletter ---------- */
.newsletter-section { padding: 40px 0; }
.newsletter-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.newsletter-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 700;
  margin-bottom: 8px;
}
.newsletter-desc { color: var(--text-secondary); font-size: 14px; margin-bottom: 20px; }

.newsletter-form {
  display: flex;
  max-width: 440px;
  margin: 0 auto 12px;
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 4px 4px 4px 16px;
  background: var(--bg-page);
  box-shadow: var(--shadow-sm);
}
.newsletter-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 13.5px;
  font-family: inherit;
}
.newsletter-input::placeholder { color: var(--text-light); }
.newsletter-btn {
  padding: 8px 20px;
  background: var(--accent);
  border: none;
  border-radius: 99px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition);
}
.newsletter-btn:hover { background: var(--accent-hover); }
.newsletter-privacy { font-size: 11px; color: var(--text-muted); }

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 40px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-desc { color: var(--text-secondary); font-size: 13px; margin: 8px 0 12px; line-height: 1.6; }
.footer-social { display: flex; gap: 8px; }
.social-link {
  width: 32px; height: 32px;
  background: #f3f4f6;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  transition: all var(--transition);
}
.social-link:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }

.footer-col-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 13px;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--accent); }

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 12px;
}
.footer-icp { color: var(--text-light); }

/* ---------- Modal ---------- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.4);
  backdrop-filter: blur(4px);
  z-index: 999;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  animation: modalIn 0.2s ease-out both;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.96) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 28px; height: 28px;
  background: #f3f4f6;
  border: none;
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.modal-close:hover { background: #fee2e2; color: #dc2626; }

.modal-title {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.modal-subtitle { color: var(--text-secondary); font-size: 13px; margin-bottom: 20px; }

/* Submit Form */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.form-input {
  width: 100%;
  padding: 10px 12px;
  background: #f9fafb;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 13.5px;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition);
}
.form-input:focus { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(113, 80, 230, 0.15); }
.form-textarea { min-height: 80px; resize: vertical; }

.btn-submit-form {
  width: 100%;
  padding: 12px;
  background: var(--accent);
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition);
}
.btn-submit-form:hover { background: var(--accent-hover); }

/* Tool Detail Modal */
.tool-detail-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  padding-right: 32px;
}
.tool-detail-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background: var(--accent-light);
  border: 1px solid #c7d2fe;
  flex-shrink: 0;
}
.tool-detail-name { font-size: 20px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.tool-detail-badges { display: flex; gap: 4px; flex-wrap: wrap; }
.tool-detail-desc { color: var(--text-secondary); line-height: 1.6; margin-bottom: 16px; font-size: 14px; }
.tool-features-title { font-weight: 700; margin-bottom: 8px; font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.tool-features { list-style: none; display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.tool-features li { display: flex; align-items: flex-start; gap: 6px; font-size: 13.5px; color: var(--text-secondary); }
.tool-features li::before { content: '✓'; color: #10b981; font-weight: 700; flex-shrink: 0; }
.agent-section-title {
  font-weight: 700;
  margin-top: 20px;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.agent-use-cases {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}
.agent-use-cases li {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 13.5px;
  color: var(--text-secondary);
}
.agent-use-cases li::before {
  content: '🎯';
  flex-shrink: 0;
}

.agent-skills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.agent-skill-pill {
  padding: 4px 12px;
  background: var(--accent-light);
  border: 1px solid #c7d2fe;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
}

.tool-detail-actions { display: flex; gap: 10px; }
.btn-visit-full {
  flex: 1;
  padding: 12px;
  background: var(--accent);
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: background var(--transition);
}
.btn-visit-full:hover { background: var(--accent-hover); }
.btn-share {
  padding: 12px 18px;
  background: #f3f4f6;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 13.5px;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-share:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(17, 24, 39, 0.95);
  border-radius: 99px;
  padding: 10px 20px;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  z-index: 9999;
  opacity: 0;
  transition: all 0.25s ease-out;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- Back to Top ---------- */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 36px; height: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(6px);
  transition: all var(--transition);
  z-index: 50;
  box-shadow: var(--shadow-sm);
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}
.back-to-top:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

/* ---------- Empty State ---------- */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  width: 100%;
}
.empty-state-icon { font-size: 36px; display: block; margin-bottom: 12px; }
.empty-state h3 { font-size: 16px; color: var(--text-secondary); margin-bottom: 4px; }

/* ---------- Animations ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.tool-row-action {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.tool-row-git-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 99px;
  color: #374151;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
}
.tool-row-git-btn:hover {
  background: #e5e7eb;
  color: #111827;
  border-color: #9ca3af;
}

.btn-git-full {
  padding: 12px 18px;
  background: #f3f4f6;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 13.5px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all var(--transition);
}
.btn-git-full:hover {
  border-color: #9ca3af;
  color: #111827;
  background: #e5e7eb;
}

/* ---------- Tutorials Section ---------- */
.tutorials-section {
  padding: 60px 0;
  background: var(--bg-page);
  border-top: 1px solid var(--border);
}

.tutorials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.tutorial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.tutorial-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-hover);
}

.tutorial-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111827;
  overflow: hidden;
}

.tutorial-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.tutorial-card:hover .tutorial-thumb {
  transform: scale(1.05);
}

.tutorial-play-btn {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 48px;
  height: 48px;
  background: rgba(113, 80, 230, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.25s ease-in-out;
  box-shadow: 0 4px 12px rgba(113, 80, 230, 0.4);
}

.tutorial-card:hover .tutorial-play-btn {
  opacity: 1;
  transform: scale(1);
}

.tutorial-cat-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 2px 8px;
  background: rgba(17, 24, 39, 0.85);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.tutorial-info {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}

.tutorial-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 42px; /* 2 lines of text */
}

.tutorial-creator {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

.tutorial-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
}

.tutorial-agent-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-light);
  padding: 2px 8px;
  border-radius: 99px;
  border: 1px solid #c7d2fe;
}

.tutorial-details {
  padding-top: 8px;
  border-top: 1px dashed var(--border);
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tutorial-problems, .tutorial-pairings {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.tutorial-problems strong, .tutorial-pairings strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ---------- Video Lightbox Modal ---------- */
.modal-card.modal-video {
  max-width: 800px;
  padding: 16px;
  background: #000;
  border: 1px solid #1f2937;
  overflow: hidden;
}

.modal-video-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background: #000;
}

.modal-video .modal-close {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 10;
}
.modal-video .modal-close:hover {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fee2e2;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .tool-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .tool-row-meta {
    margin: 0;
    width: 100%;
    justify-content: space-between;
  }
  .tool-row-action {
    width: 100%;
    margin-top: 4px;
    display: flex;
    gap: 8px;
  }
  .tool-row-visit-btn, .tool-row-git-btn {
    flex: 1;
    padding: 8px;
    border-radius: var(--radius-sm);
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .mobile-menu-btn { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 16px; }
}

@media (max-width: 560px) {
  .tools-header { flex-direction: column; align-items: flex-start; }
  .tools-controls { width: 100%; }
  .filter-tabs { overflow-x: auto; width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .newsletter-card { padding: 30px 16px; }
  .newsletter-form { flex-direction: column; border-radius: var(--radius-md); padding: 8px; }
  .newsletter-input { margin-bottom: 8px; padding-left: 8px; }
  .newsletter-btn { border-radius: var(--radius-sm); }
  .modal-card { padding: 20px 16px; }
  .hide-mobile { display: none; }
}

/* ===================================================
   AI ACADEMY UPGRADE STYLES
   =================================================== */

.tutorials-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
}

.section-header-left {
  flex: 1;
  min-width: 250px;
}

.tutorials-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.sync-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-page);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 99px;
}

.sync-status-dot {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.sync-status.active .sync-status-dot {
  background-color: #10b981;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.btn-sync {
  padding: 6px 14px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.btn-sync:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-sync:active {
  transform: translateY(0);
}

.btn-sync.loading .sync-btn-icon {
  animation: rotateSync 1s linear infinite;
  display: inline-block;
}

@keyframes rotateSync {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.tutorial-tabs {
  display: flex;
  gap: 8px;
  margin-top: 20px;
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.tutorial-tabs::-webkit-scrollbar {
  display: none;
}

.tutorial-tab-btn {
  padding: 6px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.tutorial-tab-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

.tutorial-tab-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  font-weight: 600;
  box-shadow: 0 4px 6px -1px rgba(113, 80, 230, 0.2);
}

/* Expanded Modal Video Card Structure */
.modal-card.modal-video {
  max-width: 960px;
  padding: 0;
  border: 1px solid var(--border);
  background: var(--bg-card);
  overflow: hidden;
  width: 95vw;
}

.modal-video-container {
  display: flex;
  height: 540px;
  max-height: 80vh;
}

.modal-video-main {
  flex: 1.6;
  display: flex;
  flex-direction: column;
  background: #000;
  position: relative;
  height: 100%;
}

.modal-video-player {
  flex: 1;
  aspect-ratio: 16 / 9;
  width: 100%;
  background: #000;
}

.modal-video-info {
  padding: 20px;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  color: var(--text-primary);
  overflow-y: auto;
  flex-shrink: 0;
  max-height: 200px;
}

.modal-video-info-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.modal-video-info-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.modal-video-info-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px dashed var(--border);
  font-size: 12.5px;
}

.modal-video-info-details div {
  line-height: 1.4;
  color: var(--text-secondary);
}

.modal-video-info-details strong {
  color: var(--text-primary);
  font-weight: 600;
}

.modal-video-sidebar {
  flex: 0.8;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border);
  background: var(--bg-card);
  height: 100%;
}

.modal-video-sidebar .sidebar-title {
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
  background: var(--bg-page);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.sidebar-playlist {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.playlist-item {
  display: flex;
  gap: 10px;
  padding: 12px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
  align-items: flex-start;
}

.playlist-item:hover {
  background: var(--bg-page);
}

.playlist-item.active {
  background: var(--accent-light);
  border-left: 3px solid var(--accent);
}

.playlist-item-thumb {
  width: 72px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 4px;
  background: #000;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.playlist-item-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.playlist-item-part {
  font-size: 9px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
}

.playlist-item-title {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.playlist-item.active .playlist-item-title {
  color: var(--accent);
}

/* Sync Loading Overlay */
.sync-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.6);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

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

.sync-overlay-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
  animation: syncCardIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes syncCardIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.sync-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--accent-light);
  border-top-color: var(--accent);
  border-radius: 50%;
  margin: 0 auto 20px;
  animation: rotateSync 1s linear infinite;
}

.sync-overlay-title {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.sync-checklist {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  max-width: 300px;
  margin: 0 auto;
}

.sync-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--text-secondary);
}

.sync-item.done {
  color: var(--text-primary);
  font-weight: 500;
}

.sync-item .sync-icon {
  width: 16px;
  display: inline-block;
  text-align: center;
}

/* Responsive Overrides for Video Modal */
@media (max-width: 768px) {
  .modal-video-container {
    flex-direction: column;
    height: auto;
    max-height: 85vh;
    overflow-y: auto;
  }
  .modal-video-main {
    height: auto;
  }
  .modal-video-info {
    max-height: none;
    overflow-y: visible;
  }
  .modal-video-sidebar {
    border-left: none;
    border-top: 1px solid var(--border);
    height: 240px;
    flex-shrink: 0;
  }
}

/* ===================================================
   WEBSITE/DOMAIN FOR SALE STYLES
   =================================================== */

.sale-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(135deg, #f59e0b 0%, #ec4899 50%, #8b5cf6 100%);
  background-size: 200% 200%;
  animation: bannerGradient 6s ease infinite;
  z-index: 101;
  display: flex;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: opacity var(--transition);
}

@keyframes bannerGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.sale-banner-content {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  justify-content: center;
}

.sale-banner-tag {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
}

.sale-banner-text {
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sale-banner:hover {
  filter: brightness(1.05);
}

/* Header Position Adjustment when Sale Banner is present */
.header {
  top: 40px;
}

.hero {
  padding-top: 140px; /* Offset for banner + header */
}

/* Nav Highlight Link */
.nav-sale-link {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(236, 72, 153, 0.15));
  border: 1px solid rgba(236, 72, 153, 0.3) !important;
  color: #ec4899 !important;
  font-weight: 600 !important;
  animation: pulseBorder 2.5s infinite;
}

.nav-sale-link:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(236, 72, 153, 0.25)) !important;
  border-color: #ec4899 !important;
}

@keyframes pulseBorder {
  0% { box-shadow: 0 0 0 0 rgba(236, 72, 153, 0.4); }
  70% { box-shadow: 0 0 0 6px rgba(236, 72, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(236, 72, 153, 0); }
}

/* Mobile Nav Sale Link */
.nav-sale-link-mobile {
  color: #ec4899 !important;
  font-weight: 600 !important;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(236, 72, 153, 0.1));
  padding: 12px 16px !important;
  border-radius: var(--radius-sm);
  margin-top: 8px;
  border: 1px solid rgba(236, 72, 153, 0.2);
  display: block;
}

/* Sale Modal Layout */
.modal-card.modal-sale {
  max-width: 900px;
  width: 95vw;
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  background: var(--bg-card);
}

.modal-sale-container {
  display: flex;
  min-height: 520px;
  max-height: 85vh;
}

.modal-sale-left {
  flex: 1.2;
  padding: 32px;
  overflow-y: auto;
  border-right: 1px solid var(--border);
  background: var(--bg-page);
}

.modal-sale-right {
  flex: 1;
  padding: 32px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.modal-sale .modal-title {
  font-size: clamp(20px, 3vw, 24px);
  margin-bottom: 8px;
}

.modal-sale .modal-subtitle {
  margin-bottom: 24px;
  font-size: 13.5px;
  line-height: 1.5;
}

/* Sections inside Left Column */
.sale-benefits-section, .sale-assets-section {
  margin-bottom: 24px;
}

.sale-section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--accent-light);
  padding-bottom: 6px;
  display: inline-block;
}

.sale-benefits-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sale-benefits-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.benefit-icon {
  font-size: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.benefit-content strong {
  display: block;
  font-size: 13.5px;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.benefit-content p {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.sale-assets-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 12px;
}

.asset-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  background: var(--bg-card);
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.asset-check {
  color: #10b981;
  font-weight: 700;
}

/* Right Column Contact Matrix */
.contact-matrix-card {
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.contact-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.contact-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary) !important;
  transition: all var(--transition);
  position: relative;
}

.contact-btn .btn-icon {
  font-size: 20px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}

.contact-btn-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-btn .btn-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

.contact-btn .btn-val {
  font-size: 13.5px;
  font-weight: 700;
}

/* Email Button Styling */
.email-btn .btn-icon {
  background: #fef3c7;
}
.email-btn:hover {
  border-color: #f59e0b;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.1);
  transform: translateY(-1px);
}

/* Telegram Button Styling */
.telegram-btn .btn-icon {
  background: #e0f2fe;
}
.telegram-btn:hover {
  border-color: #0284c7;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.1);
  transform: translateY(-1px);
}

/* X (Twitter) Button Styling */
.x-btn .btn-icon {
  background: #111827;
  color: #fff;
  font-weight: 700;
}
.x-btn:hover {
  border-color: #111827;
  box-shadow: 0 4px 12px rgba(17, 24, 39, 0.1);
  transform: translateY(-1px);
}

/* WeChat Button Hover Popover */
.wechat-btn {
  cursor: pointer;
}
.wechat-btn .btn-icon {
  background: #dcfce7;
}

.qr-popover {
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 180px;
  opacity: 0;
  pointer-events: none;
  z-index: 120;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.wechat-qr-img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 4px;
}

.qr-tip {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 500;
  text-align: center;
}

.wechat-btn:hover .qr-popover,
.telegram-btn:hover .qr-popover {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Offer Form Layout */
.offer-form-card {
  padding: 8px;
}

.offer-form-card .form-group {
  margin-bottom: 12px;
}

.offer-form-card .form-input {
  background: var(--bg-card);
}

.btn-offer-submit {
  width: 100%;
  padding: 12px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.btn-offer-submit:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-offer-submit:active {
  transform: translateY(0);
}

/* Responsive Sale Modal */
@media (max-width: 768px) {
  .modal-sale-container {
    flex-direction: column;
    height: auto;
    max-height: 80vh;
    overflow-y: auto;
  }
  .modal-sale-left {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 24px;
  }
  .modal-sale-right {
    padding: 24px;
  }
  .sale-banner-text {
    font-size: 11.5px;
  }
  .sale-banner-tag {
    font-size: 9.5px;
    padding: 1px 6px;
  }
}


