/* ==========================================================================
   OpenClaw Hub — Premium Cybernetic Dark Theme CSS
   ========================================================================== */

:root {
  --bg-primary: #0a0b10;
  --bg-secondary: #11131c;
  --bg-tertiary: #171a26;
  --text-primary: #f5f6f9;
  --text-secondary: #9aa0b3;
  --accent: #00f0ff;      /* Cyber Cyan */
  --accent-purple: #bf5af2; /* Cyber Purple */
  --accent-glow: rgba(0, 240, 255, 0.3);
  --purple-glow: rgba(191, 90, 242, 0.3);
  --border-color: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(0, 240, 255, 0.4);
  --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
  --font-display: 'Outfit', sans-serif;
  --font-sans: 'Inter', sans-serif;
  --container-max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

a, a:link, a:visited {
  color: inherit;
  text-decoration: none;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ===== CONTAINER ===== */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== GRADIENTS & EFFECTS ===== */
.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glow-button {
  position: relative;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-purple) 100%);
  color: #000;
  border: none;
  font-weight: 700;
  font-family: var(--font-display);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}

.glow-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.7), 0 0 10px rgba(191, 90, 242, 0.5);
  color: #000;
}

.glow-button:active {
  transform: translateY(1px);
}

/* ===== SALE ANNOUNCEMENT BANNER ===== */
.sale-banner {
  background: linear-gradient(90deg, #110724 0%, #03212c 50%, #110724 100%);
  border-bottom: 1px solid rgba(0, 240, 255, 0.2);
  color: var(--text-primary);
  padding: 10px 0;
  font-size: 13.5px;
  cursor: pointer;
  position: relative;
  z-index: 1001;
  transition: background 0.3s;
}

.sale-banner:hover {
  background: linear-gradient(90deg, #1d0c3d 0%, #06394c 50%, #1d0c3d 100%);
}

.sale-banner-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.sale-banner-tag {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-purple) 100%);
  color: #000;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  letter-spacing: 0.5px;
  font-family: var(--font-display);
}

.sale-banner-text {
  font-weight: 500;
  letter-spacing: 0.2px;
}

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(10, 11, 16, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: all 0.3s;
}

.header.scrolled {
  background: rgba(10, 11, 16, 0.95);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  font-size: 22px;
  color: var(--accent);
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.logo-text {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.logo-dot {
  color: var(--accent-purple);
  text-shadow: 0 0 10px rgba(191, 90, 242, 0.5);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  justify-content: center;
}

.nav-link,
.nav-link:link,
.nav-link:visited {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.2s;
}

.nav-link:hover,
.nav-link:active {
  color: var(--accent);
  background: rgba(0, 240, 255, 0.05);
}

.nav-sale-link,
.nav-sale-link:link,
.nav-sale-link:visited {
  color: var(--accent-purple);
  font-weight: 600;
}

.nav-sale-link:hover,
.nav-sale-link:active {
  color: #fff;
  background: rgba(191, 90, 242, 0.15);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 3px;
}

.lang-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  cursor: pointer;
  border-radius: 5px;
  transition: all 0.2s;
}

.lang-btn.active {
  background: var(--bg-tertiary);
  color: var(--accent);
  box-shadow: 0 2px 8px rgba(0, 240, 255, 0.15);
}

.lang-divider {
  color: rgba(255, 255, 255, 0.1);
  font-size: 12px;
  margin: 0 2px;
}

.btn-submit {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-submit:hover {
  background: rgba(0, 240, 255, 0.08);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.25);
  transform: translateY(-1px);
}

/* Mobile menu */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 20px;
  height: 14px;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s;
}

/* ===== HERO SECTION ===== */
.hero {
  padding: 80px 0 60px;
  position: relative;
  text-align: center;
  background: radial-gradient(circle at 50% -20%, rgba(0, 240, 255, 0.08) 0%, rgba(191, 90, 242, 0.03) 50%, transparent 100%);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 240, 255, 0.05);
  border: 1px solid rgba(0, 240, 255, 0.15);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 24px;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.05);
}

.hero-title {
  font-family: var(--font-display);
  font-size: 54px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 36px;
  white-space: pre-line;
}

/* ===== SEARCH & FILTER ===== */
.search-wrapper {
  max-width: 600px;
  margin: 0 auto 40px;
  position: relative;
}

.search-input-container {
  display: flex;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 6px;
  transition: all 0.3s;
  box-shadow: var(--card-shadow);
}

.search-input-container:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.15);
}

.search-input-container input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 15px;
  padding: 10px 16px;
  font-family: var(--font-sans);
}

.search-input-container input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.search-btn {
  background: var(--bg-tertiary);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: 700;
  padding: 0 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.search-btn:hover {
  background: var(--accent);
  color: #000;
}

.search-hot {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-secondary);
}

.hot-tag {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
  cursor: pointer;
}

.hot-tag:hover {
  text-decoration: underline;
  color: var(--accent-purple);
}

/* ===== MAIN PILLAR SWITCHER ===== */
.pillar-switcher-container {
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border-color);
}

.pillar-switcher {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.pillar-btn {
  background: none;
  border: none;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-secondary);
  padding: 14px 10px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
}

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

.pillar-btn.active {
  color: var(--accent);
}

.pillar-btn::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-purple) 100%);
  transform: scaleX(0);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.pillar-btn.active::after {
  transform: scaleX(1);
}

/* ===== LAYOUT WRAPPER ===== */
.layout-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  margin-bottom: 80px;
}

/* ===== SIDEBAR / CATEGORIES ===== */
.sidebar {
  position: sticky;
  top: 110px;
  height: fit-content;
}

.sidebar-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.categories-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.category-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 500;
  text-align: left;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
}

.category-item:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
}

.category-item.active {
  color: var(--accent);
  background: rgba(0, 240, 255, 0.06);
  font-weight: 600;
}

.cat-count {
  font-size: 11.5px;
  background: var(--bg-tertiary);
  color: rgba(255, 255, 255, 0.4);
  padding: 2px 6px;
  border-radius: 6px;
  transition: all 0.2s;
}

.category-item.active .cat-count {
  background: rgba(0, 240, 255, 0.15);
  color: var(--accent);
}

/* ===== MAIN SHELF ===== */
.main-shelf {
  min-width: 0; /* Prevents overflow issues */
}

.shelf-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.shelf-title-area {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.shelf-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
}

.shelf-subtitle {
  font-size: 13.5px;
  color: var(--text-secondary);
}

.shelf-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Sort & Filter Select */
.sort-select {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 13.5px;
  padding: 8px 12px;
  border-radius: 8px;
  outline: none;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: border 0.2s;
}

.sort-select:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

/* Pricing Switcher */
.pricing-tabs {
  display: flex;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 3px;
}

.price-tab {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.price-tab.active {
  background: var(--bg-tertiary);
  color: var(--accent);
}

/* ===== TOOL CARDS GRID ===== */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.tool-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: pointer;
  position: relative;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.tool-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 8px 30px rgba(0, 240, 255, 0.12), 0 0 1px rgba(0, 240, 255, 0.2);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.tool-logo-container {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--bg-tertiary);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: flex-end;
  max-width: 65%;
}

.badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

.badge.free { background: rgba(52, 199, 89, 0.1); color: #30d158; }
.badge.paid { background: rgba(255, 69, 58, 0.1); color: #ff453a; }
.badge.freemium { background: rgba(0, 240, 255, 0.1); color: var(--accent); }
.badge.new { background: rgba(191, 90, 242, 0.1); color: var(--accent-purple); }
.badge.hot { background: rgba(255, 159, 10, 0.1); color: #ff9f0a; }

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

.tool-title {
  font-family: var(--font-display);
  font-size: 17.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.tool-domain {
  font-size: 11.5px;
  color: var(--text-secondary);
}

.tool-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 64px;
}

.card-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.rating-area {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  font-weight: 600;
}

.star-icon {
  color: #ff9f0a;
}

.card-reviews {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.35);
}

.visit-link {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 4px;
}

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

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-secondary);
  border: 1px dashed var(--border-color);
  border-radius: 14px;
}

.empty-icon {
  font-size: 40px;
  margin-bottom: 14px;
  opacity: 0.5;
}

.empty-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.empty-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
}

/* Load More Button */
.load-more-container {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.btn-load-more {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 700;
  padding: 12px 36px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-load-more:hover {
  border-color: var(--accent);
  background: rgba(0, 240, 255, 0.03);
}

/* ===== ACADEMY / TUTORIALS SECTION ===== */
.academy-section {
  padding: 60px 0 80px;
  border-top: 1px solid var(--border-color);
  background: radial-gradient(circle at 50% 100%, rgba(191, 90, 242, 0.05) 0%, transparent 80%);
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}

.section-desc {
  font-size: 15.5px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.tutorial-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.tutorial-tab-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.tutorial-tab-btn:hover {
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
}

.tutorial-tab-btn.active {
  background: var(--bg-tertiary);
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.15);
}

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

.tutorial-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
}

.tutorial-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-purple);
  box-shadow: 0 10px 25px rgba(191, 90, 242, 0.12);
}

.tutorial-thumb-wrap {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
}

.tutorial-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: scale 0.3s;
}

.tutorial-card:hover .tutorial-thumb {
  scale: 1.03;
}

.tutorial-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: rgba(191, 90, 242, 0.85);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  box-shadow: 0 0 15px rgba(191, 90, 242, 0.4);
}

.tutorial-card:hover .tutorial-play-btn {
  background: var(--accent);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.6);
  scale: 1.1;
}

.tutorial-play-btn svg {
  margin-left: 2px;
  transition: fill 0.2s;
}

.tutorial-card:hover .tutorial-play-btn svg {
  fill: #000;
}

.tutorial-cat-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.7);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  color: var(--accent);
}

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

.tutorial-agent-tag {
  background: rgba(0, 240, 255, 0.08);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.tutorial-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  margin-top: 6px;
  height: 42px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tutorial-meta-row {
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
}

.tutorial-details {
  margin-top: 8px;
  font-size: 11.5px;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.02);
  padding: 8px 10px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tutorial-details strong {
  color: var(--text-primary);
}

/* ===== NEWSLETTER ===== */
.newsletter-section {
  padding: 60px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
}

.newsletter-box {
  background: radial-gradient(circle at 10% 20%, rgba(0, 240, 255, 0.05) 0%, rgba(191, 90, 242, 0.03) 100%);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
}

.newsletter-left h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 10px;
}

.newsletter-left p {
  color: var(--text-secondary);
  font-size: 14.5px;
}

.newsletter-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
}

.newsletter-input {
  flex: 1;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: 14.5px;
  outline: none;
  font-family: var(--font-sans);
}

.newsletter-input:focus {
  border-color: var(--accent);
}

.newsletter-btn {
  background: var(--accent);
  color: #000;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14.5px;
  padding: 0 24px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.newsletter-btn:hover {
  background: #fff;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.newsletter-privacy {
  font-size: 12px;
  color: var(--text-secondary);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  padding: 60px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  max-width: 320px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 36px;
  height: 36px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s;
}

.social-link:hover {
  background: var(--accent-purple);
  color: #fff;
  border-color: var(--accent-purple);
  box-shadow: 0 0 10px rgba(191, 90, 242, 0.4);
}

.footer-col-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-primary);
  letter-spacing: 0.8px;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13.5px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-secondary);
}

.footer-copyright-brand {
  font-weight: 700;
  color: var(--text-primary);
}

.footer-icp {
  color: rgba(255, 255, 255, 0.2);
}

/* ===== MODAL OVERLAYS ===== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 5, 8, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.modal-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  animation: scaleUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 10;
}

.modal-close:hover {
  background: var(--accent-purple);
  color: #fff;
  border-color: var(--accent-purple);
}

/* ===== VALUATION / SALE MODAL ===== */
.modal-card.modal-sale {
  max-width: 900px;
}

.modal-sale-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  height: 100%;
}

.modal-sale-left {
  padding: 40px;
  border-right: 1px solid var(--border-color);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-sale-right {
  padding: 40px;
  background: radial-gradient(circle at 100% 100%, rgba(191, 90, 242, 0.04) 0%, transparent 70%);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 850;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.modal-subtitle {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.sale-benefits-section,
.sale-assets-section {
  margin-bottom: 24px;
}

.sale-section-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-primary);
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}

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

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

.benefit-icon {
  font-size: 18px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.15);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.benefit-content strong {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--text-primary);
}

.benefit-content p {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-top: 2px;
}

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

.asset-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
}

.asset-check {
  color: var(--accent);
  font-weight: 800;
}

/* Contact Cards */
.contact-matrix-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.contact-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  background: var(--bg-tertiary);
  transition: all 0.2s;
  cursor: pointer;
  position: relative;
}

.contact-btn:hover {
  transform: translateY(-2px);
}

.email-btn:hover { border-color: rgba(255, 255, 255, 0.2); }
.telegram-btn:hover { border-color: #24a1de; box-shadow: 0 0 10px rgba(36, 161, 222, 0.2); }
.wechat-btn:hover { border-color: #07c160; box-shadow: 0 0 10px rgba(7, 193, 96, 0.2); }
.twitter-btn:hover { border-color: #1da1f2; box-shadow: 0 0 10px rgba(29, 161, 242, 0.2); }

.btn-icon {
  font-size: 20px;
}

.contact-btn-info {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.btn-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

.btn-val {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
}

/* Popovers for QR Codes */
.qr-popover {
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px;
  width: 180px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  pointer-events: none;
  opacity: 0;
  transition: all 0.2s;
  z-index: 20;
}

.qr-popover::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: var(--bg-tertiary) transparent transparent transparent;
}

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

.wechat-qr-img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 6px;
  margin-bottom: 8px;
}

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

/* Online Offer Form */
.offer-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.form-group label {
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.form-input {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: 13.5px;
  outline: none;
  font-family: var(--font-sans);
}

.form-input:focus {
  border-color: var(--accent);
}

.btn-form-submit {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  margin-top: 8px;
}

/* ===== TOOL DETAIL MODAL ===== */
.modal-detail-layout {
  padding: 40px;
}

.modal-header-block {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
}

.modal-logo {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  flex-shrink: 0;
}

.modal-title-desc h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
}

.modal-title-desc p {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.detail-pills-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.modal-body-desc {
  font-size: 15px;
  color: var(--text-primary);
  margin-bottom: 24px;
  white-space: pre-wrap;
}

.modal-features-list {
  margin-bottom: 24px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 20px;
}

.modal-features-list h4 {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--accent);
}

.modal-features-list ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-features-list li {
  display: flex;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-secondary);
}

.feature-bullet {
  color: var(--accent);
  font-weight: 700;
}

.detail-tabs-nav {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 20px;
}

.detail-tab-trigger {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 750;
  padding: 10px 16px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
}

.detail-tab-trigger:hover {
  color: var(--text-primary);
}

.detail-tab-trigger.active {
  color: var(--accent-purple);
}

.detail-tab-trigger.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-purple);
}

.detail-tab-content {
  display: none;
  font-size: 13.5px;
  color: var(--text-secondary);
  min-height: 120px;
}

.detail-tab-content.active {
  display: block;
}

.workflow-step {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.step-num {
  background: var(--accent-purple);
  color: #fff;
  font-weight: 700;
  font-size: 11px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.step-text {
  font-size: 13.5px;
}

.modal-actions-row {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.btn-modal-visit {
  flex: 1;
  text-decoration: none;
  text-align: center;
  padding: 12px;
  border-radius: 8px;
}

.btn-modal-share {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14.5px;
  padding: 0 24px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-modal-share:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* ===== SUBMIT MODAL ===== */
.modal-card.modal-submit {
  max-width: 500px;
}

.modal-submit-layout {
  padding: 40px;
}

.modal-submit-layout h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
}

.modal-submit-layout p {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* ===== VIDEO LIGHTBOX MODAL ===== */
.modal-card.modal-video {
  max-width: 1000px;
  border-radius: 12px;
  overflow: hidden;
}

.modal-video-container {
  display: grid;
  grid-template-columns: 1fr 300px;
  background: #000;
  height: 562px;
}

.modal-video-main {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.modal-video-player {
  flex: 1;
  background: #000;
  position: relative;
}

.modal-video-info {
  background: var(--bg-secondary);
  padding: 20px;
  border-top: 1px solid var(--border-color);
  color: var(--text-primary);
}

.modal-video-info-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
}

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

.modal-video-info-details {
  font-size: 12px;
  color: var(--text-secondary);
  background: var(--bg-primary);
  padding: 10px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

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

.sidebar-title {
  padding: 16px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
  letter-spacing: 0.5px;
}

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

.playlist-item {
  display: flex;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  cursor: pointer;
  transition: all 0.2s;
}

.playlist-item:hover {
  background: rgba(255,255,255,0.02);
}

.playlist-item.active {
  background: rgba(0, 240, 255, 0.05);
}

.playlist-item-thumb {
  width: 80px;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 4px;
  background: #000;
}

.playlist-item-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.playlist-item-part {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 2px;
}

.playlist-item-title {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== TOAST NOTIFICATION ===== */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(10, 11, 16, 0.95);
  border: 1px solid var(--accent);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14.5px;
  padding: 12px 28px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 240, 255, 0.2);
  z-index: 3000;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s;
  z-index: 999;
}

.back-to-top:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleUp {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* ===== RESPONSIVE MEDIA QUERIES ===== */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 44px;
  }
  .layout-grid {
    grid-template-columns: 200px 1fr;
    gap: 24px;
  }
}

@media (max-width: 900px) {
  .layout-grid {
    grid-template-columns: 1fr;
  }
  .sidebar {
    display: none; /* Hide standard sidebar on mobile, let tabs navigate directly */
  }
  .newsletter-box {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .modal-sale-container {
    grid-template-columns: 1fr;
  }
  .modal-sale-left {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    max-height: 50vh;
  }
  .modal-sale-right {
    max-height: 50vh;
  }
}

@media (max-width: 768px) {
  .header {
    height: 60px;
  }
  .nav {
    height: 60px;
  }
  .nav-links {
    display: none; /* Mobile Menu will handle links */
  }
  .mobile-menu-btn {
    display: flex;
  }
  .mobile-menu {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    transform: translateY(-120%);
    transition: transform 0.3s;
    z-index: 999;
  }
  .mobile-menu.open {
    transform: translateY(0);
  }
  .mobile-menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
  }
  .hero-title {
    font-size: 36px;
  }
  .hero-desc {
    font-size: 15px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  .modal-video-container {
    grid-template-columns: 1fr;
    height: auto;
  }
  .modal-video-sidebar {
    height: 250px;
  }
}
