/* ==========================================================================
   MOTIONFLY DESIGN SYSTEM (MDS v1.0)
   Studio Dark Canvas Architecture for Motion Designers & Video Editors
   ========================================================================== */

:root {
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
  
  /* Canvas & Surfaces */
  --mf-bg-canvas: #090d16;
  --mf-bg-surface: #111827;
  --mf-bg-surface-elevated: #1e293b;
  --mf-bg-surface-hover: #263349;
  --mf-border: #1f293d;
  --mf-border-subtle: #2d3748;
  --mf-border-light: rgba(255, 255, 255, 0.08);

  /* Typography */
  --mf-text-primary: #f8fafc;
  --mf-text-secondary: #94a3b8;
  --mf-text-muted: #64748b;
  --mf-text-dim: #475569;

  /* Brand & Accents */
  --mf-brand-cyan: #38bdf8;
  --mf-brand-blue: #2563eb;
  --mf-brand-blue-hover: #1d4ed8;
  --mf-emerald: #10b981;
  --mf-emerald-hover: #059669;
  --mf-amber: #f59e0b;
  --mf-amber-hover: #d97706;

  /* Creative Tool Badges */
  --badge-ae-bg: #1e1b4b;
  --badge-ae-text: #c7d2fe;
  --badge-ae-border: #3730a3;

  --badge-pr-bg: #3b0764;
  --badge-pr-text: #f3e8ff;
  --badge-pr-border: #6b21a8;

  --badge-dr-bg: #431407;
  --badge-dr-text: #fed7aa;
  --badge-dr-border: #9a3412;

  --badge-c4d-bg: #0c4a6e;
  --badge-c4d-text: #bae6fd;
  --badge-c4d-border: #0369a1;

  --badge-mo-bg: #064e3b;
  --badge-mo-text: #a7f3d0;
  --badge-mo-border: #047857;

  /* Sizing & Radii */
  --container-max-width: 1280px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 9999px;
  
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 24px rgba(56, 189, 248, 0.15);
}

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

body {
  font-family: var(--font-family);
  background-color: var(--mf-bg-canvas);
  color: var(--mf-text-primary);
  line-height: 1.5;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ==========================================================================
   HEADER COMPONENT (MOTIONFLY STUDIO HEADER)
   ========================================================================== */
.site-header {
  background: var(--mf-bg-surface);
  border-bottom: 1px solid var(--mf-border);
  position: sticky;
  top: 0;
  z-index: 200;
  backdrop-filter: blur(12px);
}

/* 1. Top Utility Ribbon */
.top-utility-ribbon {
  background: #0d1322;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 6px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}
.utility-left {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--mf-text-secondary);
}
.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mf-emerald);
  box-shadow: 0 0 8px var(--mf-emerald);
  display: inline-block;
}
.utility-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.utility-link {
  color: var(--mf-text-muted);
  transition: color 0.15s ease;
}
.utility-link:hover {
  color: var(--mf-text-primary);
}
.utility-pill-vip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-pill);
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: all 0.15s ease;
}
.utility-pill-vip:hover {
  background: rgba(245, 158, 11, 0.22);
  border-color: #fbbf24;
}

/* 2. Main Navigation Bar */
.header-nav-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Brand Logo */
.brand-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand-logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 900;
  font-size: 17px;
  box-shadow: 0 0 16px rgba(37, 99, 235, 0.35);
}
.brand-text-wrap {
  display: flex;
  flex-direction: column;
}
.brand-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 4px;
}
.brand-name-sub {
  color: var(--mf-brand-cyan);
}
.brand-tagline {
  font-size: 10.5px;
  color: var(--mf-text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight: 600;
}

/* Navigation Links */
.nav-links-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-links-menu::-webkit-scrollbar {
  display: none;
}
.nav-item {
  position: relative;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--mf-text-secondary);
  white-space: nowrap;
  transition: all 0.15s ease;
}
.nav-link:hover, .nav-link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}
.nav-arrow-icon {
  font-size: 9px;
  color: var(--mf-text-muted);
  transition: transform 0.15s;
}
.nav-item:hover .nav-arrow-icon {
  transform: rotate(180deg);
}

/* Nav Dropdown Menu */
.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--mf-bg-surface-elevated);
  border: 1px solid var(--mf-border);
  border-radius: var(--radius-md);
  padding: 8px 0;
  min-width: 210px;
  box-shadow: var(--shadow-lg);
  z-index: 300;
}
.nav-item:hover .nav-dropdown {
  display: block;
}
.nav-dropdown a {
  display: block;
  padding: 8px 16px;
  font-size: 13px;
  color: var(--mf-text-secondary);
  transition: all 0.15s ease;
}
.nav-dropdown a:hover {
  background: var(--mf-bg-surface-hover);
  color: #ffffff;
  padding-left: 19px;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.btn-search-trigger {
  background: var(--mf-bg-surface-elevated);
  border: 1px solid var(--mf-border);
  color: var(--mf-text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-search-trigger:hover {
  background: var(--mf-bg-surface-hover);
  border-color: var(--mf-brand-cyan);
  color: #ffffff;
}
.search-kbd-shortcut {
  background: rgba(255, 255, 255, 0.1);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-family: monospace;
  color: var(--mf-text-muted);
}
.btn-vip-header {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25);
  transition: all 0.15s ease;
}
.btn-vip-header:hover {
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
  transform: translateY(-1px);
}

/* ==========================================================================
   OMNI-DISCOVERY HERO COMPONENT
   ========================================================================== */
.hero-discovery-wrap {
  position: relative;
  padding: 56px 20px 48px;
  background: radial-gradient(ellipse at 50% 0%, rgba(37, 99, 235, 0.18), transparent 70%),
              radial-gradient(ellipse at 80% 20%, rgba(56, 189, 248, 0.08), transparent 50%);
  border-bottom: 1px solid var(--mf-border);
  text-align: center;
}
.hero-content {
  max-width: 820px;
  margin: 0 auto;
}
.hero-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(56, 189, 248, 0.1);
  color: var(--mf-brand-cyan);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-bottom: 20px;
}
.hero-title {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.2;
  margin-bottom: 14px;
  color: #ffffff;
}
.hero-title-highlight {
  background: linear-gradient(135deg, #38bdf8, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-subtitle {
  font-size: 16px;
  color: var(--mf-text-secondary);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* Main Hero Search Bar */
.hero-search-box {
  background: var(--mf-bg-surface);
  border: 1.5px solid var(--mf-border);
  border-radius: var(--radius-xl);
  padding: 6px 8px 6px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  transition: border-color 0.2s, box-shadow 0.2s;
  position: relative;
  max-width: 720px;
  margin: 0 auto 24px;
}
.hero-search-box:focus-within {
  border-color: var(--mf-brand-cyan);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2), var(--shadow-lg);
}
.hero-search-icon {
  color: var(--mf-text-muted);
  flex-shrink: 0;
}
.hero-search-input {
  background: transparent;
  border: none;
  outline: none;
  font-size: 16px;
  color: #ffffff;
  width: 100%;
}
.hero-search-input::placeholder {
  color: var(--mf-text-dim);
}
.hero-search-submit {
  background: var(--mf-brand-blue);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-lg);
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease;
}
.hero-search-submit:hover {
  background: var(--mf-brand-blue-hover);
}

/* Autocomplete Suggestion Dropdown */
.search-suggestions-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--mf-bg-surface-elevated);
  border: 1px solid var(--mf-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  z-index: 350;
  text-align: left;
}
.suggestion-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  font-size: 14px;
  color: var(--mf-text-secondary);
  transition: all 0.15s ease;
}
.suggestion-item:hover {
  background: var(--mf-bg-surface-hover);
  color: #ffffff;
}

/* Software Fast-Filter Pills */
.hero-software-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.software-pill {
  background: var(--mf-bg-surface);
  border: 1px solid var(--mf-border);
  color: var(--mf-text-secondary);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}
.software-pill:hover, .software-pill.active {
  background: #ffffff;
  color: #090d16;
  border-color: #ffffff;
  font-weight: 600;
}

/* Trending Keywords */
.hero-trending-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--mf-text-muted);
}
.trending-label {
  font-weight: 600;
  color: var(--mf-text-dim);
}
.trending-tag {
  color: var(--mf-text-secondary);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease;
}
.trending-tag:hover {
  color: var(--mf-brand-cyan);
}

/* ==========================================================================
   SOFTWARE HUB PORTALS (HOMEPAGE)
   ========================================================================== */
.software-portals-section {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 40px 20px 24px;
}
.portals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
.portal-card {
  background: var(--mf-bg-surface);
  border: 1px solid var(--mf-border);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.2s ease;
}
.portal-card:hover {
  transform: translateY(-3px);
  border-color: var(--mf-border-subtle);
  background: var(--mf-bg-surface-elevated);
  box-shadow: var(--shadow-md);
}
.portal-badge {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.5px;
}
.portal-name {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}
.portal-count {
  font-size: 12px;
  color: var(--mf-text-muted);
  font-feature-settings: "tnum";
}

/* ==========================================================================
   ARCHIVE / CARD GRID SECTION
   ========================================================================== */
.main-archive-section {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 20px 20px 60px;
  flex: 1;
  width: 100%;
}
.archive-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}
.archive-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.archive-section-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #ffffff;
}
.archive-subtitle {
  font-size: 13.5px;
  color: var(--mf-text-muted);
  font-feature-settings: "tnum";
}

/* Filter Sort Tabs */
.archive-filter-tabs {
  display: flex;
  gap: 6px;
  background: var(--mf-bg-surface);
  border: 1px solid var(--mf-border);
  padding: 4px;
  border-radius: var(--radius-md);
}
.filter-tab-btn {
  background: none;
  border: none;
  color: var(--mf-text-secondary);
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}
.filter-tab-btn:hover {
  color: #ffffff;
}
.filter-tab-btn.active {
  background: var(--mf-bg-surface-elevated);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

/* Template Cards Grid */
.template-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

/* Single Template Card */
.template-card {
  background: var(--mf-bg-surface);
  border: 1px solid var(--mf-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.template-card:hover {
  transform: translateY(-3px);
  border-color: var(--mf-border-subtle);
  box-shadow: var(--shadow-lg);
}

/* Card Media */
.card-media-wrapper {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000000;
  overflow: hidden;
}
.card-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.template-card:hover .card-preview-img {
  transform: scale(1.04);
}

/* Floating Software Badge on Card */
.card-software-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 11.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}
.badge-ae {
  background: var(--badge-ae-bg);
  color: var(--badge-ae-text);
  border: 1px solid var(--badge-ae-border);
}
.badge-pr {
  background: var(--badge-pr-bg);
  color: var(--badge-pr-text);
  border: 1px solid var(--badge-pr-border);
}
.badge-dr {
  background: var(--badge-dr-bg);
  color: var(--badge-dr-text);
  border: 1px solid var(--badge-dr-border);
}
.badge-c4d {
  background: var(--badge-c4d-bg);
  color: var(--badge-c4d-text);
  border: 1px solid var(--badge-c4d-border);
}

/* Card Content */
.card-content-area {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-category-link {
  font-size: 11px;
  font-weight: 700;
  color: var(--mf-brand-cyan);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  display: inline-block;
}
.card-category-link:hover {
  text-decoration: underline;
}
.card-title-heading {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  color: #ffffff;
  margin-bottom: 14px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-title-heading a:hover {
  color: var(--mf-brand-cyan);
}

/* Card Technical Specs Footer */
.card-spec-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--mf-border);
  font-size: 12px;
  color: var(--mf-text-muted);
  font-feature-settings: "tnum";
}
.card-spec-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================================================
   TEMPLATE DETAIL PAGE (DECISION & MEDIA CENTER)
   ========================================================================== */
.template-detail-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 24px 20px 60px;
  width: 100%;
}

/* Breadcrumb Trail */
.detail-breadcrumb-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}
.breadcrumb-trail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--mf-text-muted);
}
.crumb-part {
  color: var(--mf-text-secondary);
  transition: color 0.15s;
}
.crumb-part:hover {
  color: #ffffff;
}
.crumb-divider {
  color: var(--mf-text-dim);
}
.crumb-active {
  color: var(--mf-brand-cyan);
  font-weight: 600;
}
.detail-updated-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--mf-bg-surface);
  border: 1px solid var(--mf-border);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  color: var(--mf-text-muted);
  font-feature-settings: "tnum";
}

/* Title */
.detail-main-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 24px;
}

/* 2-Column Detail Layout */
.detail-showcase-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(360px, 1fr);
  gap: 36px;
  align-items: start;
}

/* Left Column: Media Focus */
.detail-media-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.detail-primary-player-box {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--mf-border);
}
.native-media-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.hero-poster-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Overview / Description Section */
.detail-overview-box {
  background: var(--mf-bg-surface);
  border: 1px solid var(--mf-border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.detail-section-title {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}
.detail-description-text {
  font-size: 14.5px;
  color: var(--mf-text-secondary);
  line-height: 1.7;
}
.detail-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.detail-tag-chip {
  background: var(--mf-bg-surface-elevated);
  border: 1px solid var(--mf-border);
  color: var(--mf-text-secondary);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 500;
  transition: all 0.15s ease;
}
.detail-tag-chip:hover {
  background: var(--mf-bg-surface-hover);
  color: #ffffff;
  border-color: var(--mf-border-subtle);
}

/* Right Column: Decision & Download Panel */
.detail-decision-column {
  position: sticky;
  top: 84px;
}
.decision-panel-card {
  background: var(--mf-bg-surface);
  border: 1px solid var(--mf-border);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Technical Specifications Table */
.specs-table-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.spec-entry-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--mf-border);
  font-size: 13.5px;
}
.spec-entry-label {
  color: var(--mf-text-muted);
  font-weight: 500;
}
.spec-entry-value {
  color: #ffffff;
  font-weight: 600;
  text-align: right;
  font-feature-settings: "tnum";
}

/* Download Actions Container */
.download-action-center {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.btn-primary-download {
  background: linear-gradient(135deg, var(--mf-emerald), #059669);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
  transition: all 0.2s ease;
}
.btn-primary-download:hover {
  background: linear-gradient(135deg, #059669, #047857);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
  transform: translateY(-1px);
}
.btn-vip-instant-download {
  background: var(--mf-bg-surface-elevated);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fbbf24;
  border-radius: var(--radius-md);
  padding: 12px 18px;
  font-size: 13.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.15s ease;
}
.btn-vip-instant-download:hover {
  background: rgba(245, 158, 11, 0.12);
  border-color: #fbbf24;
}

/* What's In The Box Checklist */
.whats-included-box {
  background: var(--mf-bg-surface-elevated);
  border: 1px solid var(--mf-border);
  border-radius: var(--radius-lg);
  padding: 18px;
}
.included-heading {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--mf-text-muted);
  margin-bottom: 14px;
}
.included-items-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.included-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--mf-text-secondary);
}
.included-item-icon {
  flex-shrink: 0;
}

/* Contextual Workflow Guide Card */
.detail-guide-box {
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: var(--radius-lg);
  padding: 18px;
}
.guide-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}
.guide-snippet-text {
  font-size: 12.5px;
  color: var(--mf-text-secondary);
  line-height: 1.5;
  margin-bottom: 8px;
}
.guide-read-link {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--mf-brand-cyan);
}
.guide-read-link:hover {
  text-decoration: underline;
}

/* Related Templates Section */
.detail-related-section {
  max-width: var(--container-max-width);
  margin: 48px auto 0;
  padding-top: 36px;
  border-top: 1px solid var(--mf-border);
}

/* ==========================================================================
   DOWNLOAD COUNTDOWN MODAL (CLEAN ENGAGEMENT DOCK)
   ========================================================================== */
.modal-overlay-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9, 13, 22, 0.75);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 500;
  padding: 20px;
}
.modal-overlay-backdrop.active {
  display: flex;
}
.modal-window-dialog {
  background: var(--mf-bg-surface);
  border: 1px solid var(--mf-border);
  border-radius: var(--radius-xl);
  max-width: 460px;
  width: 100%;
  padding: 36px 28px;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.modal-dismiss-btn {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--mf-text-muted);
  transition: color 0.15s;
}
.modal-dismiss-btn:hover {
  color: #ffffff;
}
.modal-timer-wheel {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 4px solid var(--mf-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 28px;
  font-weight: 900;
  color: #ffffff;
  font-feature-settings: "tnum";
}
.modal-status-heading {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}
.modal-desc-sub {
  font-size: 13px;
  color: var(--mf-text-secondary);
  margin-bottom: 24px;
}
.modal-ready-link {
  display: none;
  background: var(--mf-emerald);
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  padding: 13px 26px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
  transition: background 0.15s ease;
}
.modal-ready-link:hover {
  background: var(--mf-emerald-hover);
}
.modal-vip-upsell-bar {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--mf-border);
  font-size: 12.5px;
  color: var(--mf-text-muted);
}
.modal-vip-upsell-bar a {
  color: #fbbf24;
  font-weight: 700;
  text-decoration: underline;
}

/* ==========================================================================
   PAGINATION COMPONENT
   ========================================================================== */
.pagination-nav-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}
.page-nav-btn {
  background: var(--mf-bg-surface);
  border: 1px solid var(--mf-border);
  color: var(--mf-text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.15s ease;
}
.page-nav-btn:hover {
  background: var(--mf-bg-surface-elevated);
  color: #ffffff;
  border-color: var(--mf-border-subtle);
}
.page-nav-btn.active {
  background: var(--mf-brand-blue);
  color: #ffffff;
  border-color: var(--mf-brand-blue);
}

/* ==========================================================================
   FOOTER (MOTIONFLY CREATIVE ECOSYSTEM)
   ========================================================================== */
.site-footer {
  background: #070a11;
  border-top: 1px solid var(--mf-border);
  margin-top: auto;
  padding: 48px 20px 24px;
}
.footer-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}
.footer-brand-col h3 {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
}
.footer-brand-col p {
  font-size: 13px;
  color: var(--mf-text-secondary);
  line-height: 1.6;
  max-width: 360px;
}
.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #ffffff;
  margin-bottom: 14px;
}
.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer-links-list a {
  font-size: 13px;
  color: var(--mf-text-muted);
  transition: color 0.15s ease;
}
.footer-links-list a:hover {
  color: #ffffff;
}
.footer-legal-bar {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--mf-text-dim);
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE-FIRST POLISH)
   ========================================================================== */
@media (max-width: 1024px) {
  .detail-showcase-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .detail-decision-column {
    position: static;
  }
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 28px;
  }
  .hero-subtitle {
    font-size: 14.5px;
  }
  .top-utility-ribbon {
    display: none;
  }
  .header-nav-container {
    height: 58px;
  }
  .nav-links-menu {
    display: none;
  }
  .footer-container {
    grid-template-columns: 1fr;
  }
  .template-cards-grid {
    grid-template-columns: 1fr;
  }
  .detail-main-title {
    font-size: 22px;
  }
}
