/* ========================================================
   OFFICETEMPLATEHUB DESIGN SYSTEM (toools.design inspiration)
   Ultra-clean, modern, minimalist asset directory
   ======================================================== */

:root {
  --bg-page: #f9fafb;
  --surface: #ffffff;
  --border: #eaecf0;
  --border-hover: #d0d5dd;
  --text-main: #101828;
  --text-body: #344054;
  --text-muted: #667085;
  --primary: #0f172a;
  --primary-hover: #1e293b;
  --accent: #f97316;
  --accent-hover: #ea580c;
  --green: #10b981;
  --green-light: #ecfdf5;
  --green-border: #a7f3d0;
  --orange: #f59e0b;
  --orange-light: #fffbeb;
  --orange-border: #fde68a;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-md: 0 4px 8px -2px rgba(16, 24, 40, 0.1), 0 2px 4px -2px rgba(16, 24, 40, 0.06);
  --shadow-lg: 0 12px 24px -4px rgba(16, 24, 40, 0.08), 0 4px 8px -2px rgba(16, 24, 40, 0.04);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ========================================================
   TOOOLS.DESIGN APP SHELL (Sidebar + Main Content)
   ======================================================== */
.site-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
}

.app-shell {
  display: flex;
  min-height: 100vh;
  background-color: var(--bg-page);
  width: 100%;
  flex: 1;
}

/* SIDEBAR (Dark Slate #0c1017 style) */
.app-sidebar {
  width: 275px;
  min-width: 275px;
  max-width: 275px;
  background: #0c1017;
  border-right: none;
  color: #94a3b8;
  height: 100vh;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  z-index: 80;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  cursor: default;
  transition: width 0.28s cubic-bezier(0.16, 1, 0.3, 1), min-width 0.28s cubic-bezier(0.16, 1, 0.3, 1), max-width 0.28s cubic-bezier(0.16, 1, 0.3, 1), transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

/* MINI SIDEBAR (ICON-ONLY RAIL INSPIRED BY TOOOLS.DESIGN) */
@media (min-width: 1025px) {
  .app-shell.sidebar-collapsed .app-sidebar {
    width: 68px;
    min-width: 68px;
    max-width: 68px;
  }

  .app-shell.sidebar-collapsed .sidebar-header {
    padding: 16px 0;
    align-items: center;
    justify-content: center;
  }

  .app-shell.sidebar-collapsed .sidebar-brand {
    display: none !important;
  }

  .mini-logo-toggle {
    display: none;
  }

  .sidebar-collapse-icon {
    display: block;
  }

  .app-shell.sidebar-collapsed .sidebar-collapse-icon {
    display: none !important;
  }

  .app-shell.sidebar-collapsed .mini-logo-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    position: relative;
  }

  .app-shell.sidebar-collapsed .sidebar-collapse-btn {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .app-shell.sidebar-collapsed .sidebar-collapse-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
  }

  .app-shell.sidebar-collapsed .mini-logo-icon {
    position: absolute;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .app-shell.sidebar-collapsed .mini-expand-icon {
    position: absolute;
    width: 20px;
    height: 20px;
    color: #ffffff;
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  }

  /* When mouse hovers the button in mini sidebar: logo fades out, expand icon appears! */
  .app-shell.sidebar-collapsed .sidebar-collapse-btn:hover .mini-logo-icon {
    opacity: 0;
    transform: scale(0.7);
  }

  .app-shell.sidebar-collapsed .sidebar-collapse-btn:hover .mini-expand-icon {
    opacity: 1;
    transform: scale(1);
  }

  /* Hide textual elements in mini sidebar */
  .app-shell.sidebar-collapsed .sidebar-section-title,
  .app-shell.sidebar-collapsed .sidebar-item-name,
  .app-shell.sidebar-collapsed .sidebar-count {
    display: none !important;
  }

  /* Show dividers between sections */
  .sidebar-divider {
    display: none;
  }

  .app-shell.sidebar-collapsed .sidebar-divider {
    display: block;
    width: 28px;
    height: 1px;
    background: #1e293b;
    margin: 10px auto;
  }

  /* Mini Sidebar Item styling */
  .app-shell.sidebar-collapsed .sidebar-scrollable {
    padding: 6px 0 85px;
  }

  .app-shell.sidebar-collapsed .sidebar-item {
    width: 44px;
    height: 44px;
    padding: 0;
    margin: 4px auto;
    border-radius: 10px;
    justify-content: center;
    position: relative;
  }

  .app-shell.sidebar-collapsed .sidebar-item-left {
    justify-content: center;
    gap: 0;
    width: 100%;
    height: 100%;
  }

  .app-shell.sidebar-collapsed .sidebar-item-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .app-shell.sidebar-collapsed .sidebar-item.active {
    background: rgba(234, 88, 12, 0.16) !important;
    border: 1px solid rgba(234, 88, 12, 0.32);
    color: #f97316 !important;
  }

  .app-shell.sidebar-collapsed .sidebar-item:hover {
    background: #151c28;
    color: #ffffff;
  }

  /* Floating Tooltip in Mini Rail */
  .sidebar-rail-tooltip {
    position: fixed;
    display: none;
    background: #0f172a;
    color: #ffffff;
    border: 1px solid #334155;
    padding: 6px 13px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    white-space: nowrap;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
    pointer-events: none;
    z-index: 99999;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.12s ease;
  }

  .sidebar-rail-tooltip.visible {
    display: block;
    opacity: 1;
  }
}

.sidebar-expand-float-btn {
  display: none !important;
}

.mobile-viewport-frame {
  display: none;
}

@media (min-width: 1025px) {
  #sidebarCloseBtn {
    display: none !important;
  }
}

.sidebar-collapse-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.sidebar-collapse-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.sidebar-header {
  padding: 16px 20px;
  border-bottom: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  min-height: 44px;
}

.sidebar-logo-img {
  height: 44px;
  width: auto;
  max-width: 185px;
  display: block;
  object-fit: contain;
  transition: opacity 0.15s ease;
}

.sidebar-brand:hover .sidebar-logo-img {
  opacity: 0.92;
}

.mobile-logo-img {
  height: 36px;
  width: auto;
  max-width: 165px;
  display: block;
  object-fit: contain;
}

.float-btn-favicon-img {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  display: block;
  object-fit: contain;
}

.sidebar-scrollable {
  flex: 1;
  overflow-y: auto;
  padding: 16px 10px 85px;
}

.sidebar-fade-top {
  position: absolute;
  top: 76px;
  left: 0;
  right: 0;
  height: 28px;
  background: linear-gradient(to bottom, #0c1017 0%, rgba(12, 16, 23, 0) 100%);
  pointer-events: none;
  z-index: 20;
}

.sidebar-fade-bottom {
  position: absolute;
  bottom: 26px;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, rgba(12, 16, 23, 0) 0%, #0c1017 100%);
  pointer-events: none;
  z-index: 20;
}

.sidebar-fade-bottom-solid {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 26px;
  background: #0c1017;
  pointer-events: none;
  z-index: 20;
}

.sidebar-scrollable::-webkit-scrollbar {
  width: 5px;
}
.sidebar-scrollable::-webkit-scrollbar-track {
  background: transparent;
}
.sidebar-scrollable::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}

.sidebar-section-title {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #475569;
  padding: 16px 12px 6px;
}

.sidebar-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 12px;
  border-radius: 6px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #94a3b8;
  transition: all 0.15s ease;
  cursor: pointer;
  user-select: none;
}

.sidebar-item:hover {
  background: #1e293b;
  color: #ffffff;
}

.sidebar-item.active {
  background: #1e293b;
  color: #f97316;
  font-weight: 700;
}

.sidebar-item-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.sidebar-item-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-count {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 9999px;
  background: #1e293b;
  color: #64748b;
  flex-shrink: 0;
}

.sidebar-item:hover .sidebar-count {
  background: #334155;
  color: #cbd5e1;
}

.sidebar-item.active .sidebar-count {
  background: #ea580c;
  color: #ffffff;
}

/* APP CONTENT AREA */
.app-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-page);
}

@media (min-width: 1025px) {
  .app-shell {
    background-color: #0c1017;
  }
  .app-content {
    border-radius: 20px;
    margin: 12px 14px 26px 0;
    background: #ffffff;
    box-shadow: 0 4px 28px rgba(0, 0, 0, 0.16);
    overflow: hidden;
    min-height: calc(100vh - 38px);
    display: flex;
    flex-direction: column;
  }
  .app-shell.sidebar-collapsed .app-content {
    margin-left: 0;
  }
}

.app-main-body {
  flex: 1;
}

.app-mobile-bar {
  display: none;
}

/* ========================================================
   HOME SHOWCASE (INSPIRED BY TOOOLS.DESIGN)
   ======================================================== */
.home-wrapper {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 48px 32px 80px;
}

.home-hero {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 56px;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff7ed;
  border: 1px solid #ffedd5;
  color: #ea580c;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 9999px;
  margin-bottom: 20px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ea580c;
}

.home-hero-title {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
  color: var(--text-main);
  margin-bottom: 16px;
}

.home-hero-subtitle {
  font-size: 1.12rem;
  color: #475569;
  line-height: 1.6;
  margin: 0 auto 30px;
  max-width: 720px;
}

.home-search-form {
  max-width: 680px;
  margin: 0 auto 28px;
  width: 100%;
}

.home-search-box {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 9999px;
  padding: 6px 6px 6px 20px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.home-search-box:focus-within {
  border-color: #ea580c;
  box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.12), 0 8px 28px rgba(0, 0, 0, 0.08);
}

.home-search-icon {
  color: #94a3b8;
  flex-shrink: 0;
  margin-right: 12px;
}

.home-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  color: var(--text-main);
  font-family: inherit;
  background: transparent;
}

.home-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #0f172a;
  color: #ffffff;
  border: none;
  border-radius: 9999px;
  padding: 11px 22px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.home-search-btn:hover {
  background: #ea580c;
  transform: translateY(-1px);
}

.home-stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.home-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  padding: 6px 14px;
  font-size: 0.84rem;
  color: #334155;
  font-weight: 500;
}

.home-section {
  margin-top: 56px;
}

.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.section-tag-pill {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ea580c;
  margin-bottom: 6px;
}

.section-title {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-main);
  margin: 0 0 4px;
}

.section-desc {
  font-size: 0.95rem;
  color: #64748b;
  margin: 0;
}

.section-more-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #ea580c;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 9999px;
  background: #fff7ed;
  border: 1px solid #ffedd5;
  transition: all 0.15s ease;
}

.btn-text-mobile {
  display: none;
}

.section-more-link:hover {
  background: #ffedd5;
  transform: translateX(3px);
}

.home-card-grid {
  display: grid;
  gap: 20px;
}

.grid-4-cols {
  grid-template-columns: repeat(4, 1fr);
}

.card-badge-staff {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(4px);
  color: #fbbf24;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 9999px;
  border: 1px solid rgba(251, 191, 36, 0.3);
  z-index: 2;
}

.home-industry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 10px;
}

.home-industry-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  padding: 9px 16px;
  text-decoration: none;
  color: #334155;
  font-size: 0.86rem;
  font-weight: 600;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.home-industry-pill:hover {
  background: #ffffff;
  border-color: #ea580c;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.12);
  color: #ea580c;
}

.ind-count {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 700;
  background: #e2e8f0;
  color: #64748b;
  padding: 1px 7px;
  border-radius: 9999px;
}

.home-industry-pill:hover .ind-count {
  background: #ea580c;
  color: #ffffff;
}

.home-newsletter-card {
  margin-top: 64px;
  background: #0c1017;
  border-radius: 24px;
  padding: 48px 32px;
  text-align: center;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.newsletter-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f97316;
  background: rgba(249, 115, 22, 0.12);
  padding: 4px 14px;
  border-radius: 9999px;
  margin-bottom: 16px;
  border: 1px solid rgba(249, 115, 22, 0.25);
}

.newsletter-title {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  max-width: 620px;
  margin: 0 auto 10px;
}

.newsletter-subtitle {
  font-size: 0.98rem;
  color: #94a3b8;
  max-width: 540px;
  margin: 0 auto 24px;
  line-height: 1.5;
}

.newsletter-form {
  display: flex;
  max-width: 480px;
  margin: 0 auto 16px;
  gap: 8px;
}

.newsletter-input {
  flex: 1;
  min-width: 220px;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 9999px;
  padding: 12px 20px;
  color: #ffffff;
  font-size: 0.95rem;
  outline: none;
}

.newsletter-input:focus {
  border-color: #f97316;
}

.newsletter-btn {
  background: #ea580c;
  color: #ffffff;
  border: none;
  border-radius: 9999px;
  padding: 12px 24px;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.newsletter-btn:hover {
  background: #f97316;
  transform: translateY(-1px);
}

.newsletter-trust-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.78rem;
  color: #64748b;
}

@media (max-width: 1024px) {
  .home-wrapper {
    padding: 28px 16px 60px;
  }
  .home-hero-title {
    font-size: 2.2rem;
  }
  .grid-4-cols {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .home-hero-title {
    font-size: 1.85rem;
  }
  .grid-4-cols {
    grid-template-columns: 1fr;
  }
  .newsletter-form {
    flex-direction: column;
  }
}

/* FINDER HERO & FILTER MATRIX */
.finder-wrapper {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 32px 80px;
}

.finder-header {
  margin-bottom: 24px;
}

.finder-title {
  font-size: 2.35rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--text-main);
  margin-bottom: 8px;
}

.finder-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 760px;
  line-height: 1.55;
}

/* SEARCH BAR */
.finder-search-box {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 26px;
}

.finder-search-input {
  width: 100%;
  padding: 16px 80px 16px 52px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #ffffff;
  font-size: 0.98rem;
  font-family: inherit;
  color: var(--text-main);
  box-shadow: 0 2px 6px rgba(16, 24, 40, 0.04);
  outline: none;
  transition: all 0.2s ease;
}

.finder-search-input:focus {
  border-color: #0f172a;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

.finder-search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}

.search-kbd-pill {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  pointer-events: none;
  user-select: none;
  line-height: 1;
}

/* MOBILE FILTER BAR (toools.design pattern) */
.mobile-filter-bar {
  display: none;
}

.mobile-filter-backdrop {
  display: none;
}

.mobile-modal-header,
.mobile-modal-footer {
  display: none;
}

/* FILTER MATRIX BOX (toools.design rounded pill architecture) */
.filter-matrix {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px 26px 16px;
  margin-bottom: 32px;
  box-shadow: 0 2px 8px rgba(16, 24, 40, 0.04);
}

.filter-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}

.filter-row-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
  min-width: 84px;
  padding-top: 6px;
  flex-shrink: 0;
}

.filter-row-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1;
}

.chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px; /* Smooth rounded pill */
  font-size: 0.82rem;
  font-weight: 500;
  color: #344054;
  background: #f8fafc;
  border: 1px solid var(--border);
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
}

.chip-btn:hover {
  background: #f1f5f9;
  border-color: var(--border-hover);
  color: var(--text-main);
}

.chip-btn.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15);
  font-weight: 600;
}

.chip-btn .chip-count {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.06);
  color: #64748b;
  line-height: 1.2;
}

.chip-btn.active .chip-count {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

/* RESULTS HEADER */
.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 12px;
}

.results-count {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.results-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* VIEW TOGGLE */
.view-toggle-wrap {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 2px;
}

.view-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 8px;
  border-radius: 5px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
}

.view-btn:hover {
  color: var(--text-main);
}

.view-btn.active {
  background: #0f172a;
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

/* PAGINATION CONTROLS */
.pagination-wrap {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  margin: 48px auto 24px !important;
  flex-wrap: wrap !important;
}

.page-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 38px !important;
  height: 38px !important;
  padding: 0 12px !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #334155 !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  user-select: none !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

.page-btn:hover:not(:disabled) {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

.page-btn.active {
  background: #0f172a !important;
  color: #ffffff !important;
  border-color: #0f172a !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2) !important;
}

.page-btn:disabled {
  opacity: 0.4 !important;
  cursor: not-allowed !important;
}

/* COMPACT LIST VIEW LAYOUT */
.resource-grid.is-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}

.resource-grid.is-list .asset-card {
  width: 100%;
  flex-direction: row;
  align-items: center;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.resource-grid.is-list .asset-card a {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
  padding: 10px 18px;
  gap: 16px;
  box-sizing: border-box;
}

.resource-grid.is-list .card-media-wrap {
  width: 82px;
  height: 52px;
  min-width: 82px;
  max-width: 82px;
  border-radius: 6px;
  border-bottom: none;
  flex-shrink: 0;
  border: 1px solid var(--border);
  position: relative;
}

.resource-grid.is-list .card-badge {
  font-size: 0.55rem;
  padding: 1px 5px;
  top: 3px;
  right: 3px;
  left: auto;
}

.resource-grid.is-list .card-body {
  padding: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex-grow: 1;
  min-width: 0;
  gap: 16px;
}

.resource-grid.is-list .card-info-wrap {
  min-width: 0;
  flex: 1;
}

.resource-grid.is-list .card-category {
  margin-bottom: 2px;
  font-size: 0.68rem;
}

.resource-grid.is-list .card-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0;
  min-height: auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.resource-grid.is-list .card-snippet {
  display: none;
}

.resource-grid.is-list .card-footer {
  border-top: none;
  padding-top: 0;
  margin-left: auto;
  gap: 16px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

@media (max-width: 768px) {
  .resource-grid.is-list .asset-card a {
    padding: 8px 12px;
    gap: 12px;
  }
  .resource-grid.is-list .card-media-wrap {
    width: 64px;
    height: 42px;
    min-width: 64px;
    max-width: 64px;
  }
  .resource-grid.is-list .card-title {
    font-size: 0.86rem;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .resource-grid.is-list .card-footer {
    display: none;
  }
}

/* ========================================================
   NAVBAR (Legacy Fallback)
   ======================================================== */
.nav-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  height: 68px;
  display: flex;
  align-items: center;
}

.nav-container {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.brand-logo-svg {
  flex-shrink: 0;
  border-radius: 7.5px;
}

.brand-title {
  color: var(--text-main);
  font-weight: 500;
}

.brand-title strong {
  font-weight: 800;
}

.brand-accent {
  color: var(--accent);
  font-weight: 800;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-menu a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-body);
  transition: all 0.15s ease;
}

.nav-menu a:hover {
  color: var(--text-main);
  background: #f2f4f7;
}

/* ========================================================
   HOMEPAGE: HERO SECTION (toools.design style)
   ======================================================== */
.hero-section {
  text-align: center;
  padding: 72px 20px 48px;
  max-width: 840px;
  margin: 0 auto;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-body);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
  color: var(--text-main);
  margin-bottom: 18px;
}

.hero-desc {
  font-size: 1.18rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 36px;
}

/* FILTER PILLS */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 48px;
  padding: 0 16px;
}

.filter-pill {
  padding: 9px 20px;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-body);
  background: #ffffff;
  border: 1px solid var(--border);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  user-select: none;
}

.filter-pill:hover {
  background: #f8fafc;
  border-color: var(--border-hover);
  color: var(--text-main);
}

.filter-pill.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

/* ========================================================
   RESOURCE GRID (3 COLUMNS)
   ======================================================== */
.main-wrapper {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 28px;
  margin-bottom: 80px;
}

.asset-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.asset-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg);
}

.card-media-wrap,
.card-thumb-link {
  width: 100%;
  height: 180px;
  background: #f1f5f9;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  border-top-left-radius: 17px;
  border-top-right-radius: 17px;
  display: block;
}

.card-media-wrap img,
.card-thumb-link img,
.card-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

.asset-card:hover .card-media-wrap img,
.asset-card:hover .card-thumb-link img,
.asset-card:hover .card-thumb-img {
  transform: scale(1.03);
}

.card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 9px;
  border-radius: 9999px; /* Pill badge */
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.badge-xlsx { background: var(--green); color: #ffffff; }
.badge-pptx { background: var(--orange); color: #ffffff; }

.card-body,
.card-content {
  padding: 16px 18px 14px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.card-category {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-bottom: 6px;
}

.card-title {
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-main);
  margin-bottom: 12px;
  letter-spacing: -0.015em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}

.card-title a {
  color: inherit;
  text-decoration: none;
}

.card-title a:hover {
  color: var(--primary);
}

.card-snippet {
  display: none;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f1f5f9;
  padding-top: 12px;
  font-size: 0.8rem;
  color: #64748b;
}

.card-size,
.card-size-text {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #64748b;
  letter-spacing: -0.01em;
}

.card-stats {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #64748b;
  letter-spacing: -0.01em;
}

.card-stat-dot {
  color: #cbd5e1;
  font-size: 0.75rem;
  line-height: 1;
}

.card-stat-dl {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #64748b;
  font-weight: 500;
  transition: color 0.15s ease;
}

.card-stat-dl .icon-dl {
  color: #94a3b8;
  flex-shrink: 0;
  transition: transform 0.2s ease, color 0.2s ease;
}

.asset-card:hover .card-stat-dl .icon-dl {
  color: #0ea5e9;
  transform: translateY(1px);
}

.card-btn {
  color: #334155;
  font-weight: 600;
  font-size: 0.79rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 9999px; /* Pill micro-button */
  line-height: 1.25;
  transition: all 0.15s ease;
  text-decoration: none;
}

.asset-card:hover .card-btn {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
}

/* ========================================================
   SINGLE PAGE: THE WIREFRAME ARCHITECTURE
   ======================================================== */
.detail-page-wrapper {
  padding: 40px 0 80px;
}

/* 1. TOP HERO SHOWCASE CARD */
.hero-showcase-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
  margin-bottom: 36px;
  box-shadow: var(--shadow-sm);
}

.showcase-top-meta {
  margin-bottom: 18px;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.breadcrumb-list a {
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.breadcrumb-list a:hover {
  color: var(--text-main);
}

.breadcrumb-sep {
  color: #cbd5e1;
  font-size: 0.8rem;
}

.detail-main-heading {
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.3;
  color: var(--text-main);
  margin: 0;
  word-break: keep-all;
  overflow-wrap: break-word;
  hyphens: none;
  text-wrap: balance;
}

/* BALANCED INLINE ACTION BAR: SOLUTION A */
.hero-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.meta-tag-pills {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.meta-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
  line-height: 1.4;
}

.pill-format-xlsx {
  background: #ecfdf5;
  color: #047857 !important;
  border: 1px solid #d1fae5;
}
.pill-format-xlsx:hover {
  background: #d1fae5;
  border-color: #a7f3d0;
  transform: translateY(-1px);
}

.pill-format-pptx {
  background: #fffbeb;
  color: #b45309 !important;
  border: 1px solid #fef3c7;
}
.pill-format-pptx:hover {
  background: #fef3c7;
  border-color: #fde68a;
  transform: translateY(-1px);
}

.pill-industry {
  background: #f1f5f9;
  color: #334155 !important;
  border: 1px solid #e2e8f0;
}
.pill-industry:hover {
  background: #e2e8f0;
  color: #0f172a !important;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

/* STAT COUNTER BUTTON BOX (PAIRED WITH DOWNLOAD BUTTON) */
.btn-stat-counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 13px;
  box-sizing: border-box;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #d0d5dd;
  color: #334155;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
  flex-shrink: 0;
  user-select: none;
  transition: all 0.16s ease;
}

.btn-stat-counter .icon-stat-dl {
  color: #0ea5e9;
  flex-shrink: 0;
}

.btn-stat-counter .page-dl-count {
  font-variant-numeric: tabular-nums;
  color: #0f172a;
}

/* Download counter pulse */
.dl-pulse {
  animation: dlBump 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: #10b981 !important;
}

@keyframes dlBump {
  0% { transform: scale(1); }
  50% { transform: scale(1.25); }
  100% { transform: scale(1); }
}

/* TOP DOWNLOAD ACTION & COPY LINK BUTTON */
.showcase-action {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.action-buttons-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-download-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #0f172a;
  color: #ffffff !important;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  height: 40px;
  padding: 0 18px;
  box-sizing: border-box;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
  transition: all 0.16s ease;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-download-primary:hover {
  background: #1e293b;
  color: #ffffff !important;
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.14);
}

.btn-download-primary:active {
  transform: translateY(1px);
}

/* HIGH-SPEED FAST DOWNLOAD HIGHLIGHT */
.btn-fast-download {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(16, 185, 129, 0.4) !important;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.28) !important;
}

.btn-fast-download:hover {
  background: linear-gradient(135deg, #047857 0%, #059669 100%) !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.38) !important;
  transform: translateY(-1px);
}

.btn-fast-download .icon-bolt {
  color: #fef08a;
  fill: #fef08a;
}


/* GOOGLE SHEETS & SLIDES (MAKE A COPY) BUTTONS */
.btn-google-sheets,
.btn-google-slides {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #ffffff;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  height: 40px;
  padding: 0 16px;
  box-sizing: border-box;
  border-radius: 8px;
  transition: all 0.16s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-google-sheets {
  color: #0f766e !important;
  border: 1.5px solid #10b981;
  background: rgba(16, 185, 129, 0.05);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.btn-google-sheets:hover {
  background: #10b981 !important;
  border-color: #059669 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.28);
  transform: translateY(-1px);
}

.btn-google-sheets:hover svg path {
  fill: #ffffff !important;
}

.btn-google-slides {
  color: #b45309 !important;
  border: 1.5px solid #f59e0b;
  background: rgba(245, 158, 11, 0.05);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.btn-google-slides:hover {
  background: #f59e0b !important;
  border-color: #d97706 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.28);
  transform: translateY(-1px);
}

.btn-google-slides:hover svg path {
  fill: #ffffff !important;
}

.btn-google-sheets:active,
.btn-google-slides:active {
  transform: translateY(0);
}

/* SECONDARY MIRROR DOWNLOAD BUTTON */
.btn-download-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: #ffffff;
  color: #334155 !important;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  height: 40px;
  padding: 0 14px;
  box-sizing: border-box;
  border-radius: 8px;
  border: 1px solid #d0d5dd;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
  transition: all 0.16s ease;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-download-secondary:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a !important;
  box-shadow: 0 2px 4px rgba(16, 24, 40, 0.06);
}

.btn-download-secondary:active {
  transform: translateY(1px);
}

/* RESPONSIVE CONCISE SERVER BUTTON LABELS */
.dl-text-full {
  display: inline;
  white-space: nowrap;
}

.dl-text-short {
  display: none;
  white-space: nowrap;
}

.lightbox-actions .dl-text-full {
  display: none;
}

.lightbox-actions .dl-text-short {
  display: inline;
}

@media (max-width: 1220px) {
  .dl-text-full {
    display: none;
  }
  .dl-text-short {
    display: inline;
  }
}

.btn-copy-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  box-sizing: border-box;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #d0d5dd;
  color: #475467;
  cursor: pointer;
  transition: all 0.16s ease;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
  flex-shrink: 0;
  padding: 0;
}

.btn-copy-link:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: var(--text-main);
}

.btn-copy-link:active {
  transform: translateY(1px);
}

/* SHOWCASE MEDIA CONTAINER */
.showcase-media-frame {
  width: 100%;
  background: #f2f4f7;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.media-window-bar {
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.window-dots {
  display: flex;
  gap: 7px;
}

.window-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}

.dot-red { background: #ff5f56; box-shadow: 0 0 0 1px #e0443e; }
.dot-yellow { background: #ffbd2e; box-shadow: 0 0 0 1px #dea123; }
.dot-green { background: #27c93f; box-shadow: 0 0 0 1px #1aab29; }
.dot-orange { background: #f59e0b; }

.window-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 500px;
}

.window-zoom-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #475467;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 9px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.window-zoom-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: var(--text-main);
}

.media-image-box {
  width: 100%;
  transition: opacity 0.15s ease;
}

.media-image-box:hover {
  opacity: 0.96;
}

.media-image-box img {
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: cover;
  display: block;
}

/* 2. DUAL COLUMN ARCHITECTURE (Khung dưới 70% / 30% trong bản vẽ) */
.dual-layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 36px;
  align-items: start;
}

/* LEFT COLUMN (70%) */
.col-main-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.content-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.block-title {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
  color: var(--text-main);
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px;
}

/* SPECS TABLE PRO */
.specs-table {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 8px;
}

.spec-entry {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}

.spec-key {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.spec-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
}

/* EDITORIAL TEXT */
.editorial-text {
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--text-body);
}

.editorial-text p {
  margin-bottom: 20px;
}

.editorial-text h3 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin: 32px 0 14px;
}

.editorial-text ul, .editorial-text ol {
  margin: 16px 0 24px 22px;
}

.editorial-text li {
  margin-bottom: 10px;
}

/* BOTTOM ACTION BANNER */
.bottom-cta-banner {
  background: #f8fafc;
  color: var(--text-main);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-top: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cta-banner-text h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 4px;
  color: var(--text-main);
}

.cta-banner-text p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

/* RIGHT COLUMN (30% STICKY SIDEBAR) */
.col-sticky-sidebar {
  position: sticky;
  top: 24px;
}

.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.sidebar-sticky-download {
  margin-top: 24px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  text-align: left;
}

.sidebar-sticky-title {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 4px;
  line-height: 1.35;
}

.sidebar-sticky-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0 0 16px;
}

.sidebar-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.sidebar-heading {
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 4px;
}

.sidebar-subheading {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.related-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mini-asset-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid #f2f4f7;
  transition: all 0.15s ease;
}

.mini-asset-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.mini-thumb {
  width: 82px;
  height: 58px;
  min-width: 82px;
  max-width: 82px;
  border-radius: 6px;
  overflow: hidden;
  background: #f2f4f7;
  border: 1px solid var(--border);
  position: relative;
  flex-shrink: 0;
}

.mini-thumb img {
  width: 82px;
  height: 58px;
  object-fit: cover;
  display: block;
}

.mini-badge {
  position: absolute;
  bottom: 2px;
  right: 2px;
  font-size: 0.58rem;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 3px;
}

.mini-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.mini-name {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.32;
  color: var(--text-main);
  margin-bottom: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mini-link {
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 700;
}

.mini-btn {
  align-self: flex-start;
  margin-top: 5px;
  font-size: 0.76rem;
  padding: 3px 12px;
  text-decoration: none;
}

.mini-asset-item:hover .mini-btn,
.mini-btn:hover {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
}

.mini-asset-item:hover .mini-name {
  color: var(--accent);
}

/* ========================================================
   FULL-BLEED SHOWCASE FOOTER (INSPIRED BY TOOOLS.DESIGN)
   ======================================================== */
.showcase-footer {
  width: 100%;
  background: #080c14;
  border-top: 1px solid #1a2234;
  color: #94a3b8;
  position: relative;
  overflow: hidden;
  padding: 85px 0 45px;
}

/* Ambient subtle background glow */
.showcase-footer-ambient {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 960px;
  height: 260px;
  background: radial-gradient(ellipse at center, rgba(249, 115, 22, 0.08) 0%, rgba(37, 99, 235, 0.06) 45%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.showcase-footer-inner {
  position: relative;
  z-index: 2;
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Giant Brand Typography */
.showcase-giant-brand {
  margin-bottom: 24px;
  user-select: none;
}

.giant-brand-svg {
  display: block;
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 0 30px rgba(249, 115, 22, 0.1));
}

.showcase-tagline {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #94a3b8;
  max-width: 740px;
  margin-bottom: 56px;
  letter-spacing: -0.01em;
}

.showcase-tagline strong {
  color: #f1f5f9;
  font-weight: 600;
}

/* Mega-Directory Grid */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 36px 24px;
  padding-bottom: 50px;
  border-bottom: 1px solid #161f30;
  margin-bottom: 36px;
}

.showcase-col-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #64748b;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.showcase-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.showcase-links a {
  color: #cbd5e1;
  font-size: 0.86rem;
  font-weight: 400;
  text-decoration: none;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.showcase-links a:hover {
  color: #ffffff;
  transform: translateX(2px);
}

.badge-count {
  font-size: 0.68rem;
  color: #64748b;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.05);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.showcase-badge-pill {
  font-size: 0.75rem;
  color: #22c55e;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  padding: 3px 8px;
  border-radius: 5px;
  display: inline-block;
  margin-top: 6px;
  font-weight: 500;
}

/* Platform Highlights Stack */
.showcase-trust-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.trust-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 8px 12px;
  border-radius: 8px;
}

/* Bottom Bar */
.showcase-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.82rem;
  color: #64748b;
}

.bottom-legal {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sub-legal {
  font-size: 0.75rem;
  color: #475569;
}

.footer-back-to-top {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.18s ease;
  flex-shrink: 0;
}

.footer-back-to-top:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Responsive Rules for Showcase Footer */
@media (max-width: 1200px) {
  .showcase-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px 20px;
  }
}

@media (max-width: 768px) {
  .showcase-footer {
    padding: 50px 0 32px;
  }
  .showcase-footer-inner {
    padding: 0 20px;
  }
  .showcase-tagline {
    font-size: 0.95rem;
    margin-bottom: 36px;
  }
  .showcase-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 16px;
    padding-bottom: 36px;
    margin-bottom: 28px;
  }
  .showcase-col-trust {
    grid-column: span 2;
  }
  .showcase-bottom-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .showcase-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .showcase-col-trust {
    grid-column: span 1;
  }
}

/* ========================================================
   RESPONSIVE (PERFECT MOBILE EXPERIENCE)
   ======================================================== */
@media (max-width: 1024px) {
  .app-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    transform: translateX(-100%);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.4);
  }
  
  .app-sidebar.drawer-open {
    transform: translateX(0);
  }

  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 75;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }

  .sidebar-backdrop.active {
    opacity: 1;
    pointer-events: auto;
  }

  /* Hide Desktop Collapse Button & Mini Logo Toggle on Mobile */
  #desktopSidebarCollapseBtn,
  .sidebar-collapse-btn {
    display: none !important;
  }

  .mini-logo-toggle {
    display: none !important;
  }

  #sidebarCloseBtn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
  }

  #sidebarCloseBtn:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
  }

  /* Fixed Viewport Rounded Floating Frame (Like toools.design) */
  .mobile-viewport-frame {
    display: block !important;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 45;
    overflow: hidden;
  }

  .mobile-viewport-frame::before {
    content: '';
    position: absolute;
    inset: 0 8px 12px 8px;
    border-radius: 16px;
    box-shadow: 0 0 0 80px #0c1017;
    pointer-events: none;
  }

  .app-shell {
    flex-direction: column;
    background-color: #0c1017;
    min-height: 100vh;
  }

  .app-content {
    border-radius: 16px;
    margin: 0 8px 24px 8px;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  }

  .app-mobile-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    padding: 0 20px;
    background: #0c1017;
    border-bottom: 1px solid #1e293b;
    position: sticky;
    top: 0;
    z-index: 50;
  }

  .mobile-menu-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 6px;
  }

  .finder-wrapper {
    padding: 24px 16px 60px;
  }

  .finder-title {
    font-size: 1.85rem;
  }

  .sidebar-fade-bottom {
    bottom: 0 !important;
    height: 70px !important;
  }
  .sidebar-fade-bottom-solid {
    display: none !important;
  }

  /* MOBILE HOME SECTION HEADERS (1 CLEAN ROW LIKE TOOOLS.DESIGN) */
  .home-section {
    margin-top: 36px;
  }
  .section-header-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: nowrap;
  }
  .section-title {
    font-size: 1.15rem;
    line-height: 1.25;
    margin: 0;
    white-space: normal;
    flex: 1;
    min-width: 0;
  }
  .section-desc {
    display: none !important;
  }
  .btn-text-full {
    display: none !important;
  }
  .btn-text-mobile {
    display: inline !important;
  }
  .section-more-link {
    font-size: 0.78rem;
    padding: 5px 12px;
    white-space: nowrap;
    flex-shrink: 0;
    gap: 4px;
    border-radius: 9999px;
  }
  .section-more-link svg {
    width: 13px;
    height: 13px;
  }

  .dual-layout-grid {
    grid-template-columns: 1fr;
  }
  .col-sticky-sidebar {
    position: static;
  }
}

/* ========================================================
   MOBILE FILTER SYSTEM (toools.design pattern)
   ======================================================== */
@media (max-width: 768px) {
  .mobile-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 22px;
  }

  .mobile-filter-trigger-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 9999px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #0f172a;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
  }

  .mobile-filter-trigger-btn:active {
    background: #f1f5f9;
  }

  .mobile-filter-trigger-btn.has-active-filter {
    border-color: #ea580c;
    background: #fff7ed;
    color: #ea580c;
  }

  .mobile-active-filter-badge {
    background: #ea580c;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 9999px;
    line-height: 1.2;
  }

  .mobile-quick-formats {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .mobile-quick-formats::-webkit-scrollbar {
    display: none;
  }

  .quick-fmt-btn {
    padding: 7px 13px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #64748b;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 9999px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.15s ease;
  }

  .quick-fmt-btn.active {
    background: #0f172a;
    border-color: #0f172a;
    color: #ffffff;
    font-weight: 600;
  }

  /* Bottom sheet modal backdrop */
  .mobile-filter-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    z-index: 290;
    opacity: 0;
    transition: opacity 0.25s ease;
  }

  .mobile-filter-backdrop.is-open {
    display: block;
    opacity: 1;
  }

  /* Bottom sheet modal container */
  .filter-matrix {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 300;
    background: #ffffff;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.28);
    padding: 0;
    margin-bottom: 0;
    transform: translateY(105%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 84vh;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-bottom: none;
  }

  .filter-matrix.is-open {
    transform: translateY(0);
  }

  .mobile-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid #f1f5f9;
    flex-shrink: 0;
  }

  .mobile-modal-header .modal-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
  }

  .mobile-modal-header .modal-actions {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .modal-reset-btn {
    background: none;
    border: none;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 8px;
  }

  .modal-reset-btn:hover {
    color: #ea580c;
  }

  .modal-close-btn {
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #334155;
  }

  .filter-matrix-body {
    padding: 20px 22px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1;
  }

  .filter-matrix-body .filter-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 22px;
  }

  .filter-matrix-body .filter-row-label {
    min-width: auto;
    padding-top: 0;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    color: #64748b;
  }

  .filter-matrix-body .filter-row-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    overflow-x: visible;
  }

  .mobile-modal-footer {
    display: block;
    padding: 14px 22px 24px;
    border-top: 1px solid #f1f5f9;
    background: #ffffff;
    flex-shrink: 0;
  }

  .modal-apply-btn {
    width: 100%;
    padding: 13px;
    background: #0f172a;
    color: #ffffff;
    border: none;
    border-radius: 9999px; /* Pill button! */
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
  }

  .modal-apply-btn:active {
    background: #1e293b;
  }

  body.mobile-filter-open {
    overflow: hidden;
  }
}

@media (max-width: 768px) {
  .nav-container { padding: 0 16px; height: 60px; }
  .nav-links-wrap, .nav-bar nav, .nav-menu { display: none !important; }
  .hero-section { padding: 40px 16px 28px; }
  .hero-title { font-size: 1.95rem; line-height: 1.2; }
  .hero-desc { font-size: 0.95rem; }
  .detail-page-wrapper { padding: 16px 0 60px; }
  .hero-showcase-box { padding: 20px 16px; margin-bottom: 24px; border-radius: var(--radius-lg); }
  .detail-main-heading { font-size: 1.4rem; line-height: 1.3; }
  .hero-action-bar { flex-direction: column; align-items: stretch; gap: 14px; margin-bottom: 20px; }
  .hero-action-bar .showcase-action { width: 100%; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 0; }
  .hero-action-bar .action-buttons-group { order: 1; width: 100%; display: flex; gap: 8px; }
  .hero-action-bar .btn-fast-download { flex: 1; min-width: 0; height: 44px; padding: 0 10px; font-size: 0.88rem; white-space: nowrap; justify-content: center; }
  .hero-action-bar .btn-download-secondary { flex: 1; min-width: 0; height: 44px; padding: 0 10px; font-size: 0.88rem; white-space: nowrap; justify-content: center; }
     .hero-action-bar .btn-google-sheets, .hero-action-bar .btn-google-slides { flex: 1; min-width: 0; height: 44px; padding: 0 8px; font-size: 0.82rem; white-space: nowrap; justify-content: center; }
  .hero-action-bar .btn-stat-counter { order: 2; height: 38px; padding: 0 12px; font-size: 0.82rem; flex: 1; justify-content: center; }
  .hero-action-bar .btn-copy-link { order: 3; width: 38px; height: 38px; flex-shrink: 0; }
  .window-label { max-width: 150px; font-size: 0.74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: inline-block; }
  .content-block { padding: 20px 16px; border-radius: var(--radius-lg); }
  .specs-table { grid-template-columns: 1fr; }
}

/* GLOBAL MICRO TOAST */
.global-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0f172a;
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 8px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.25), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
  z-index: 99999;
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  pointer-events: none;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.global-toast.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* HIGH-RES LIGHTBOX MODAL */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 99998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lightbox-container {
  position: relative;
  z-index: 1;
  max-width: 1300px;
  width: 100%;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  transform: scale(0.96);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-modal.active .lightbox-container {
  transform: scale(1);
}

.lightbox-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
}

.lightbox-file-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-main);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.lightbox-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lightbox-stat-counter {
  height: 32px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 0.82rem;
  background: #ffffff;
  border: 1px solid #d0d5dd;
}

.lightbox-dl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  gap: 6px;
  padding: 0 12px;
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: #ffffff !important;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  transition: all 0.15s ease;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.lightbox-dl-btn:hover {
  background: linear-gradient(135deg, #047857 0%, #059669 100%);
}

.lightbox-dl-btn.lightbox-dl-secondary {
  background: #1e293b;
  border-color: #334155;
  color: #e2e8f0 !important;
}

.lightbox-dl-btn.lightbox-dl-secondary:hover {
  background: #334155;
  color: #ffffff !important;
}

.lightbox-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: transparent;
  border: 1px solid var(--border);
  color: #475467;
  cursor: pointer;
  transition: all 0.15s ease;
}

.lightbox-close-btn:hover {
  background: #e2e8f0;
  color: var(--text-main);
}

.lightbox-img-wrap {
  overflow: auto;
  padding: 16px;
  background: #f1f5f9;
  display: flex;
  justify-content: center;
  max-height: calc(92vh - 60px);
}

.lightbox-img-wrap img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* ========================================================
   STAGE 3: QUICK SEARCH MODAL & DETAIL PAGE ENHANCEMENTS
   ======================================================== */

/* Sidebar Quick Search Trigger */
.sidebar-search-btn {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #94a3b8;
  cursor: pointer;
  margin-bottom: 8px;
  transition: all 0.15s ease;
  font-family: inherit;
}

.sidebar-search-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.sidebar-kbd {
  font-size: 0.65rem;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  color: #94a3b8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Mini Sidebar (68px) handling for search button */
.app-shell.sidebar-collapsed .sidebar-search-btn {
  padding: 0;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0 auto 10px;
  border-radius: 10px;
}

.app-shell.sidebar-collapsed .sidebar-search-btn .sidebar-item-name,
.app-shell.sidebar-collapsed .sidebar-search-btn .sidebar-kbd {
  display: none !important;
}

/* Mobile Quick Search Trigger */
.mobile-search-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  transition: all 0.15s ease;
}

.mobile-search-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

/* Search Modal Backdrop */
.search-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 8vh 16px 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

/* Search Modal Box */
.search-modal-box {
  width: 100%;
  max-width: 620px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transform: scale(0.96) translateY(-12px);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  max-height: 80vh;
}

.search-modal-backdrop.active .search-modal-box {
  transform: scale(1) translateY(0);
}

/* Modal Top Input Bar */
.search-modal-top {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #f1f5f9;
  gap: 12px;
}

.search-modal-icon {
  color: #94a3b8;
  flex-shrink: 0;
}

.search-modal-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1.05rem;
  color: #0f172a;
  font-weight: 500;
  background: transparent;
  font-family: inherit;
}

.search-modal-input::placeholder {
  color: #94a3b8;
}

.search-modal-esc {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.search-modal-esc:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Quick Filter Tags Row */
.search-modal-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: #f8fafc;
  border-bottom: 1px solid #f1f5f9;
  overflow-x: auto;
  flex-wrap: nowrap;
  scrollbar-width: none;
}

.search-modal-tags::-webkit-scrollbar {
  display: none;
}

.search-tag-label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #94a3b8;
  white-space: nowrap;
  margin-right: 4px;
}

.search-quick-tag {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  padding: 3px 11px;
  font-size: 0.75rem;
  color: #475569;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  font-family: inherit;
}

.search-quick-tag:hover {
  border-color: #0f172a;
  color: #0f172a;
  background: #f1f5f9;
}

/* Modal Results List */
.search-modal-results {
  overflow-y: auto;
  padding: 8px;
  flex: 1;
  max-height: 380px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: all 0.12s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.search-result-item:hover,
.search-result-item.is-selected {
  background: #f1f5f9;
  border-color: #e2e8f0;
}

.search-result-thumb {
  width: 52px;
  height: 38px;
  border-radius: 6px;
  overflow: hidden;
  background: #e2e8f0;
  flex-shrink: 0;
  border: 1px solid #e2e8f0;
}

.search-result-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.search-result-info {
  flex: 1;
  min-width: 0;
}

.search-result-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-meta {
  font-size: 0.74rem;
  color: #64748b;
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.search-meta-dot {
  opacity: 0.4;
}

.search-result-badge {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 9999px;
  flex-shrink: 0;
}

.search-empty-state {
  padding: 40px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Modal Bottom Footer */
.search-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: #f8fafc;
  border-top: 1px solid #f1f5f9;
  font-size: 0.75rem;
  color: #64748b;
}

.search-modal-shortcuts {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-modal-shortcuts kbd {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 0.7rem;
  font-family: inherit;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06);
  margin-right: 4px;
}

.search-modal-finder-link {
  color: #ea580c;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s ease;
}

.search-modal-finder-link:hover {
  color: #c2410c;
  text-decoration: underline;
}

/* Single Page Enhancements */
.pill-cloud {
  background: #eff6ff !important;
  color: #2563eb !important;
  border: 1px solid #bfdbfe !important;
}

.pill-cloud:hover {
  background: #dbeafe !important;
  border-color: #93c5fd !important;
}

.single-related-section {
  margin-top: 40px;
  padding-top: 0;
  border-top: none;
}

.breadcrumb-current {
  color: var(--text-main);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 320px;
  display: inline-block;
  vertical-align: bottom;
}

/* ========================================================
   COMMUNITY REVIEWS & DISCUSSION
   ======================================================== */
.reviews-section {
  margin-top: 0;
}

.reviews-header-wrap {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.reviews-sub-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
}

.btn-write-review {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  background: #ffffff;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  color: #334155;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
  transition: all 0.16s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-write-review:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
}

/* Rating Overview Card */
.rating-overview-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 20px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.rating-big-score {
  display: flex;
  align-items: center;
  gap: 14px;
}

.score-number {
  font-size: 2.1rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
  letter-spacing: -0.02em;
}

.score-stars-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stars-gold {
  color: #f59e0b;
  font-size: 1.15rem;
  letter-spacing: 2px;
  line-height: 1;
}

.score-count-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: #64748b;
}

.rating-highlights {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.highlight-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #334155;
  background: #ffffff;
  padding: 4px 10px;
  border-radius: 9999px;
  border: 1px solid #e2e8f0;
}

.highlight-check {
  color: #10b981;
  font-weight: 700;
}

/* Review Submission Form */
.user-review-form {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.form-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 14px 0;
}

.form-stars-picker {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
}

.picker-label {
  font-size: 0.84rem;
  font-weight: 600;
  color: #475569;
  margin-right: 4px;
}

.star-interactive {
  font-size: 1.4rem;
  color: #cbd5e1;
  cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease;
  line-height: 1;
  user-select: none;
}

.star-interactive:hover,
.star-interactive.is-selected {
  color: #f59e0b;
}

.star-interactive:hover {
  transform: scale(1.15);
}

.star-score-text {
  font-size: 0.84rem;
  font-weight: 700;
  color: #475569;
  margin-left: 8px;
}

.form-row-dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.form-input,
.form-textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 9px 12px;
  font-family: inherit;
  font-size: 0.86rem;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  background: #ffffff;
  color: #0f172a;
  outline: none;
  transition: border-color 0.15s ease;
}

.form-input:focus,
.form-textarea:focus {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.12);
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
  margin-bottom: 14px;
}

.form-action-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-submit-review {
  height: 38px;
  padding: 0 18px;
  background: #0f172a;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.86rem;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-submit-review:hover {
  background: #1e293b;
}

.btn-cancel-review {
  height: 38px;
  padding: 0 14px;
  background: transparent;
  color: #64748b;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.86rem;
  cursor: pointer;
}

.btn-cancel-review:hover {
  color: #0f172a;
}

.review-success-msg {
  margin-top: 12px;
  padding: 8px 14px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 6px;
  color: #047857;
  font-size: 0.84rem;
  font-weight: 600;
}

/* Reviews List */
.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.review-item {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: var(--radius-md);
  transition: border-color 0.15s ease;
}

.review-item:hover {
  border-color: #e2e8f0;
}

.review-item.user-submitted-review {
  border-left: 3px solid #10b981;
  background: #fbfdfc;
}

.review-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: -0.02em;
}

.review-body {
  flex: 1;
  min-width: 0;
}

.review-meta-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.review-author-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.review-author-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f172a;
}

.review-author-role {
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 500;
}

.review-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #059669;
  background: #ecfdf5;
  border: 1px solid #d1fae5;
  padding: 2px 7px;
  border-radius: 9999px;
}

.review-date-stars {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.review-stars {
  color: #f59e0b;
  font-size: 0.84rem;
  letter-spacing: 1px;
}

.review-date {
  font-size: 0.76rem;
  color: #94a3b8;
}

.review-content {
  font-size: 0.88rem;
  line-height: 1.55;
  color: #334155;
  margin: 0;
}

/* Staff Reply Box */
.review-team-reply {
  margin-top: 12px;
  padding: 12px 14px;
  background: #f8fafc;
  border-left: 2.5px solid #0ea5e9;
  border-radius: 0 6px 6px 0;
}

.reply-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.reply-avatar,
.reply-avatar-img {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  display: inline-block;
  vertical-align: middle;
  object-fit: contain;
  flex-shrink: 0;
}

.reply-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: #0f172a;
}

.reply-badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #0284c7;
  background: #e0f2fe;
  padding: 1px 6px;
  border-radius: 4px;
}

.reply-text {
  font-size: 0.84rem;
  color: #475569;
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 768px) {
  .reviews-header-wrap {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-write-review {
    width: 100%;
    justify-content: center;
  }
  .rating-overview-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .form-row-dual {
    grid-template-columns: 1fr;
  }
  .review-meta-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

/* ==========================================================================
   CATEGORY HUB PAGES (TOPIC CLUSTERS) LUXURY TECH STYLING
   ========================================================================== */
.hub-page-container {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 32px 80px;
}

@media (max-width: 768px) {
  .hub-page-container {
    padding: 24px 16px 60px;
  }
}

.hub-page-container .breadcrumb-list {
  margin-bottom: 20px;
}

.hub-hero-section {
  padding: 0 0 32px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

.hub-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #059669;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hub-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
}

.hub-main-title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 12px;
}

.hub-main-subtitle {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 860px;
  margin-bottom: 22px;
}

.hub-trust-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  padding: 12px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.hub-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-main);
}

.hub-trust-item strong {
  font-weight: 600;
}

.hub-format-pills {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hub-pill {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.hub-pill.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.hub-editorial-block {
  padding: 36px 32px;
}

.hub-faq-block {
  padding: 36px 32px;
}

.hub-faq-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.hub-faq-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.hub-faq-item h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.hub-faq-item p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* CROSS-LINKING HUBS GRID */
.hub-crosslinks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.hub-crosslink-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.hub-crosslink-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.crosslink-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.crosslink-info {
  flex: 1;
  min-width: 0;
}

.crosslink-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 6px 0;
}

.crosslink-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0 0 10px 0;
}

.crosslink-count {
  font-size: 0.82rem;
  font-weight: 600;
  color: #059669;
}

@media (max-width: 900px) {
  .hub-crosslinks-grid {
    grid-template-columns: 1fr;
  }
  .hub-main-title {
    font-size: 1.75rem;
  }
}

/* --- TOPIC PILLAR HUBS & FINDER UX ENHANCEMENTS --- */
.home-hubs-section {
  margin-top: 48px;
  margin-bottom: 48px;
}

.hubs-header-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  padding: 4px 10px;
  border-radius: 9999px;
  margin-bottom: 8px;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.home-hubs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}

@media (max-width: 860px) {
  .home-hubs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .home-hubs-grid {
    grid-template-columns: 1fr;
  }
}

.hub-feature-card {
  display: flex;
  flex-direction: column;
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, #eaecf0);
  border-radius: 14px;
  padding: 24px;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.hub-feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover, #d0d5dd);
  box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.08);
}

.hub-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.hub-card-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hub-card-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
  background: var(--badge-bg, rgba(16, 185, 129, 0.08));
  border: 1px solid var(--badge-border, rgba(16, 185, 129, 0.22));
  color: var(--badge-color, #10b981);
  letter-spacing: 0.01em;
  line-height: 1;
}

.hub-card-count-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.hub-card-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text-main, #0f172a);
  margin-bottom: 8px;
  line-height: 1.35;
}

.hub-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted, #64748b);
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hub-card-footer {
  padding-top: 14px;
  border-top: 1px solid var(--border, #eaecf0);
}

.hub-card-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  transition: gap 0.2s ease;
}

.hub-feature-card:hover .hub-card-action {
  gap: 10px;
}

/* FINDER TOPIC HUBS BAR */
.finder-hubs-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding: 12px 18px;
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, #eaecf0);
  border-radius: 12px;
  flex-wrap: wrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.finder-hubs-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted, #64748b);
}

.finder-hubs-pills {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.finder-hub-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 9999px;
  background: var(--bg-page, #f8fafc);
  border: 1px solid var(--border, #e2e8f0);
  color: var(--text-main, #334155);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.finder-hub-pill:hover {
  border-color: var(--hub-accent, #10b981);
  color: var(--hub-accent, #10b981);
  background: var(--surface, #ffffff);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.hub-pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.hub-pill-count {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.06);
  color: var(--text-muted, #64748b);
}
  font-size: 0.72rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 9999px;
  background: #1e293b;
  color: #94a3b8;
}

/* --- WORKFLOW BUNDLE COMPONENT --- */
.workflow-bundle-card {
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, #eaecf0);
  border-radius: 16px;
  padding: 28px 24px;
  margin-bottom: 36px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.bundle-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #059669;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.22);
  padding: 4px 10px;
  border-radius: 9999px;
  margin-bottom: 10px;
}

.bundle-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main, #0f172a);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.bundle-desc {
  font-size: 0.88rem;
  color: var(--text-muted, #64748b);
  line-height: 1.5;
  margin-bottom: 22px;
}

.bundle-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 900px) {
  .bundle-cards-grid {
    grid-template-columns: 1fr;
  }
}

.bundle-item-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-page, #f8fafc);
  border: 1px solid var(--border, #eaecf0);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s ease;
  position: relative;
}

.bundle-item-card:hover {
  transform: translateY(-3px);
  border-color: #cbd5e1;
  box-shadow: 0 10px 24px -6px rgba(0, 0, 0, 0.06);
}

.bundle-step-tag {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #0369a1;
  background: rgba(14, 165, 233, 0.1);
  padding: 6px 12px;
  border-bottom: 1px solid rgba(14, 165, 233, 0.15);
}

.bundle-thumb-link {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #0f172a;
}

.bundle-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.bundle-item-card:hover .bundle-thumb-img {
  transform: scale(1.04);
}

.bundle-format-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(15, 23, 42, 0.85);
  color: #10b981;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.bundle-body {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.bundle-item-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 6px;
}

.bundle-item-title a {
  color: var(--text-main, #0f172a);
  text-decoration: none;
  transition: color 0.15s ease;
}

.bundle-item-title a:hover {
  color: #0284c7;
}

.bundle-item-reason {
  font-size: 0.78rem;
  color: var(--text-muted, #64748b);
  line-height: 1.45;
  margin-bottom: 14px;
  flex-grow: 1;
}

.bundle-item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.bundle-size-text {
  font-size: 0.72rem;
  font-weight: 600;
  color: #94a3b8;
}

.bundle-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #0284c7;
  text-decoration: none;
  transition: gap 0.15s ease;
}

.bundle-item-card:hover .bundle-action-btn {
  gap: 8px;
}

/* Microsoft Word Document Styles */
.badge-docx {
  background: #2b579a !important;
  color: #ffffff !important;
}

.pill-format-docx {
  background: rgba(43, 87, 154, 0.1) !important;
  border-color: rgba(43, 87, 154, 0.3) !important;
  color: #2b579a !important;
}

/* ========================================================
   INTERACTIVE IN-BROWSER CALCULATOR STYLES
   ======================================================== */
.interactive-calculator-block {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}
.calc-header {
  margin-bottom: 20px;
}
.calc-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eef2ff;
  color: #4338ca;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.calc-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 16px;
}
@media (max-width: 768px) {
  .calc-grid {
    grid-template-columns: 1fr;
  }
}
.calc-inputs-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.calc-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.calc-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-main);
}
.calc-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.calc-prefix {
  position: absolute;
  left: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  pointer-events: none;
}
.calc-unit {
  position: absolute;
  right: 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  pointer-events: none;
}
.calc-input {
  width: 100%;
  padding: 9px 36px 9px 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  box-sizing: border-box;
}
.calc-input:focus {
  outline: none;
  background: #ffffff;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}
.calc-results-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
}
.calc-result-card.featured-result {
  background: #0f172a;
  color: #ffffff;
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
}
.result-label {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.result-value {
  font-size: 26px;
  font-weight: 800;
  color: #38bdf8;
  line-height: 1.1;
  margin-bottom: 4px;
}
.result-sub {
  font-size: 11.5px;
  color: #cbd5e1;
}
.calc-mini-stats {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px 0;
}
.mini-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  border-bottom: 1px dashed var(--border);
  padding-bottom: 6px;
}
.stat-name {
  color: var(--text-body);
}
.stat-val {
  font-weight: 700;
  color: var(--text-main);
}
.calc-breakdown-bar-wrap {
  margin-top: 4px;
}
.bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.calc-progress-bar {
  display: flex;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: #e2e8f0;
}
.bar-fill-base {
  background: #3b82f6;
  height: 100%;
  transition: width 0.3s ease;
}
.bar-fill-nnn {
  background: #f97316;
  height: 100%;
  transition: width 0.3s ease;
}
.calc-cta-note {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.calc-jump-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.2s ease;
}
.calc-jump-btn:hover {
  background: #0f172a;
  color: #ffffff;
}
