/* ========================================================
   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: 'Plus Jakarta Sans', -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)
   ======================================================== */
.app-shell {
  display: flex;
  min-height: 100vh;
  background-color: var(--bg-page);
  width: 100%;
}

/* SIDEBAR (Dark Slate #0c1017 style) */
.app-sidebar {
  width: 275px;
  min-width: 275px;
  max-width: 275px;
  background: #0c1017;
  border-right: 1px solid #1e293b;
  color: #94a3b8;
  height: 100vh;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  z-index: 80;
  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);
}

.app-shell.sidebar-collapsed .app-sidebar {
  display: none !important;
}

/* Floating Expand Button (visible when sidebar is collapsed on desktop) */
.sidebar-expand-float-btn {
  display: none;
  position: fixed;
  left: 20px;
  top: 20px;
  z-index: 100;
  background: #0c1017;
  color: #ffffff;
  border: 1px solid #1e293b;
  border-radius: 8px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: all 0.2s;
}

.sidebar-expand-float-btn:hover {
  background: #1e293b;
  transform: scale(1.05);
}

.app-shell.sidebar-collapsed .sidebar-expand-float-btn {
  display: flex !important;
}

@media (max-width: 1024px) {
  .sidebar-expand-float-btn {
    display: none !important;
  }
}

.sidebar-collapse-btn {
  background: transparent;
  border: none;
  color: #64748b;
  padding: 6px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.sidebar-collapse-btn:hover {
  background: #1e293b;
  color: #ffffff;
}

.sidebar-header {
  padding: 20px;
  border-bottom: 1px solid #1e293b;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.sidebar-scrollable {
  flex: 1;
  overflow-y: auto;
  padding: 14px 10px 40px;
}

.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);
}

.app-main-body {
  flex: 1;
}

.app-mobile-bar {
  display: none;
}

/* 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;
  margin-bottom: 26px;
}

.finder-search-input {
  width: 100%;
  padding: 16px 20px 16px 50px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: #ffffff;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
  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;
}

/* FILTER MATRIX BOX */
.filter-matrix {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px 14px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
}

.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 13px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  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);
}

.chip-btn .chip-count {
  font-size: 0.72rem;
  opacity: 0.75;
}

.chip-btn.active .chip-count {
  opacity: 0.9;
  color: #cbd5e1;
}

/* 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: 12px !important;
}

.resource-grid.is-list .asset-card {
  flex-direction: row;
  align-items: center;
}

.resource-grid.is-list .asset-card a {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
  padding: 14px 18px;
  gap: 18px;
}

.resource-grid.is-list .card-media-wrap {
  width: 88px;
  height: 56px;
  min-width: 88px;
  max-width: 88px;
  border-radius: 6px;
  border-bottom: none;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.resource-grid.is-list .card-badge {
  font-size: 0.58rem;
  padding: 1px 4px;
  top: 3px;
  right: 3px;
}

.resource-grid.is-list .card-body {
  padding: 0;
  flex-grow: 1;
  min-width: 0;
}

.resource-grid.is-list .card-category {
  margin-bottom: 2px;
  font-size: 0.7rem;
}

.resource-grid.is-list .card-title {
  font-size: 1.02rem;
  margin-bottom: 0;
  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: 20px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .resource-grid.is-list .asset-card a {
    padding: 10px 12px;
    gap: 12px;
  }
  .resource-grid.is-list .card-media-wrap {
    width: 68px;
    height: 46px;
    min-width: 68px;
    max-width: 68px;
  }
  .resource-grid.is-list .card-title {
    font-size: 0.88rem;
    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: var(--radius-lg);
  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 {
  width: 100%;
  height: 220px;
  background: #f2f4f7;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.card-media-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.asset-card:hover .card-media-wrap img {
  transform: scale(1.025);
}

.card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-xlsx { background: var(--green); color: #ffffff; }
.badge-pptx { background: var(--orange); color: #ffffff; }

.card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-category {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-main);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.card-snippet {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f2f4f7;
  padding-top: 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.card-btn {
  color: var(--primary);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.asset-card:hover .card-btn {
  color: var(--accent);
}

/* ========================================================
   SINGLE PAGE: THE WIREFRAME ARCHITECTURE
   ======================================================== */
.detail-page-wrapper {
  padding: 40px 0 80px;
}

/* 1. TOP HERO SHOWCASE CARD (Khung đỏ trong bản vẽ) */
.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-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 28px;
}

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

.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: 800;
  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;
}

/* CLEAN SINGLE META ROW & INTERACTIVE PILLS */
.single-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  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);
}

.meta-specs-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: #64748b;
  flex-wrap: wrap;
}

.meta-dot-sep {
  color: #cbd5e1;
  font-size: 0.75rem;
}

.meta-spec-val {
  color: #64748b;
  font-weight: 500;
}

/* TOP DOWNLOAD ACTION: SLEEK SILICON VALLEY TECH CTA */
.showcase-action {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
}

.btn-download-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: #0f172a;
  color: #ffffff !important;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 12px 22px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1), 0 4px 10px rgba(15, 23, 42, 0.06);
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-download-primary:hover {
  background: #1e293b;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.16), 0 8px 18px rgba(15, 23, 42, 0.08);
}

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

/* 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-badge {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  background: #eff8ff;
  color: #175cd3;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}
  font-weight: 800;
  text-transform: uppercase;
  background: #eff8ff;
  color: #175cd3;
  padding: 2px 7px;
  border-radius: 4px;
}

.media-image-box {
  width: 100%;
}

.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-asset-item:hover .mini-name {
  color: var(--accent);
}

/* ========================================================
   FOOTER
   ======================================================== */
.footer-wrap {
  background: #ffffff;
  border-top: 1px solid var(--border);
  padding: 44px 24px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.footer-nav a:hover {
  color: var(--text-main);
}

/* ========================================================
   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;
  }

  .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;
  }

  .filter-matrix {
    padding: 16px 14px;
  }

  .filter-row {
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
  }

  .filter-row-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    padding-bottom: 6px;
  }

  .filter-row-chips::-webkit-scrollbar {
    display: none;
  }

  .dual-layout-grid {
    grid-template-columns: 1fr;
  }
  .showcase-header {
    flex-direction: column;
    align-items: stretch;
  }
  .showcase-action {
    align-items: flex-start;
  }
  .col-sticky-sidebar {
    position: static;
  }
}

@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; }
  .single-meta-row { gap: 8px; font-size: 0.8rem; margin-top: 10px; }
  .showcase-action { width: 100%; min-width: 0; align-items: stretch; margin-top: 18px; }
  .btn-download-primary { width: 100%; padding: 13px 18px; font-size: 0.9rem; }
  .bottom-cta-banner { padding: 20px 16px; flex-direction: column; align-items: stretch; text-align: left; }
  .bottom-cta-banner .btn-download-primary { width: 100%; }
  .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; }
}
