/* ===================== GOOGLE FONTS & RESET ===================== */
/* Fonts are loaded via high-performance <link rel="preconnect"> in HTML <head> */

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

:root {
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  --purple: #7C3AED;
  --purple-light: #8B5CF6;
  --purple-pale: rgba(124, 58, 237, 0.15);
  --purple-bg: rgba(124, 58, 237, 0.08);
  --pink: #EC4899;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --border: rgba(255, 255, 255, 0.1);
  --white: #ffffff;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.4);

  /* Dark Background */
  --bg-dark: #0d0b18;
  --bg-card: #ffffff;
  --bg-nav: rgba(13, 11, 24, 0.92);
  --bg-catbar: rgba(13, 11, 24, 0.95);

  /* Glassmorphism Tokens */
  --glass-bg: rgba(255, 255, 255, 0.07);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

html {
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  color: var(--text);
  background: radial-gradient(ellipse at 50% -10%, #1f1640 0%, #0d0a1c 55%, #07050f 100%);
  background-attachment: fixed;
  line-height: 1.55;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

h1, h2, h3, .detail-title, .section-title, .hero-title, .guide-title, .navbar-logo span {
  font-family: var(--font-heading);
  letter-spacing: -0.025em;
}

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

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

button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: inherit;
}

ul {
  list-style: none;
}

/* ===================== NAVBAR ===================== */
.navbar {
  max-width: 1240px;
  margin: 14px auto 0;
  border-radius: 20px;
  background: #140f28;
  border: 1px solid rgba(168, 85, 247, 0.22);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  height: 56px;
  gap: 16px;
  transition: all 0.25s ease;
}

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

.navbar-logo a {
  display: flex;
  align-items: center;
}

.navbar-logo img {
  height: 25px;
  width: auto;
  object-fit: contain;
  display: block;
}

.navbar-logo span {
  font-size: 18px;
  font-weight: 800;
}

.navbar-logo .dot-in {
  color: var(--purple);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
  padding: 7px 14px;
  border-radius: 12px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a:hover {
  color: #ffffff;
  background: rgba(139, 92, 246, 0.18);
  transform: translateY(-1px);
}

.nav-links a.active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.4), rgba(168, 85, 247, 0.3));
  border: 1px solid rgba(168, 85, 247, 0.4);
  box-shadow: 0 2px 10px rgba(124, 58, 237, 0.25);
}

.nav-links li {
  position: relative;
}

.nav-links .has-arrow::after {
  content: '▾';
  font-size: 11px;
  margin-left: 2px;
}

/* Header Dropdown Menu */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 220px;
  max-height: 440px;
  overflow-y: auto;
  background: #181427;
  border: 1px solid rgba(168, 85, 247, 0.28);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 20px rgba(124, 58, 237, 0.15);
  backdrop-filter: blur(16px);
  z-index: 1000;
  display: none;
  list-style: none;
  animation: navDropFade 0.18s ease-out forwards;
}

@keyframes navDropFade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.nav-links li:hover > .nav-dropdown,
.nav-links li:focus-within > .nav-dropdown {
  display: block;
}

.nav-dropdown li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-dropdown a {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  color: #cbd5e1 !important;
  border-radius: 9px !important;
  text-decoration: none !important;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.nav-dropdown a:hover {
  background: rgba(147, 51, 234, 0.18) !important;
  color: #ffffff !important;
  transform: translateX(3px) !important;
}

.nav-dropdown::-webkit-scrollbar {
  width: 5px;
}
.nav-dropdown::-webkit-scrollbar-thumb {
  background: rgba(168, 85, 247, 0.3);
  border-radius: 10px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-search-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.nav-search-btn:hover {
  background: rgba(124, 58, 237, 0.25);
  border-color: rgba(168, 85, 247, 0.4);
  color: #c4b5fd;
  transform: scale(1.05);
}

.btn-get-app {
  background: linear-gradient(135deg, #7C3AED 0%, #EC4899 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 18px;
  border-radius: 50px;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.35);
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.2px;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-get-app:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.5);
  filter: brightness(1.08);
}

/* ===================== HERO SECTION ===================== */
.hero {
  max-width: 1240px;
  margin: 0 auto;
  background: transparent;
  padding: 40px 24px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  overflow: hidden;
  position: relative;
}

.hero-left {
  max-width: 480px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(124, 58, 237, 0.2);
  color: #c4b5fd;
  border: 1px solid rgba(124, 58, 237, 0.3);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 18px;
}

.hero-badge span {
  font-size: 13px;
}

.hero h1 {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 8px;
  color: #ffffff;
}

.hero h1 .accent {
  background: linear-gradient(135deg, #a78bfa 0%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 24px;
  max-width: 400px;
}

.hero-search {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 28px;
  padding: 6px 6px 6px 18px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  margin-bottom: 18px;
  max-width: 440px;
}

.hero-search input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  background: transparent;
}

.hero-search input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.hero-search button {
  background: var(--purple);
  color: #fff;
  border-radius: 22px;
  padding: 9px 18px;
  font-size: 16px;
  display: flex;
  align-items: center;
}

.hero-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  cursor: pointer;
  padding: 6px 14px;
  border-radius: 20px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.hero-tag .tag-img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.hero-tag:hover {
  color: #c4b5fd;
  border-color: rgba(167, 139, 250, 0.5);
  background: rgba(124, 58, 237, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.25);
}

.hero-tag:active,
.hero-tag.active {
  background: rgba(124, 58, 237, 0.3);
  border-color: #7c3aed;
  color: #c4b5fd;
  transform: scale(0.98);
}

.hero-right {
  flex-shrink: 0;
  position: relative;
}

.hero-right img {
  width: 340px;
  border-radius: 20px;
  object-fit: cover;
}

/* ===================== CATEGORY BAR (PIXEL MATCH REFERENCE) ===================== */
.category-bar {
  max-width: 1240px;
  margin: 16px auto 0;
  padding: 14px 18px;
  background: #120d26;
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 24px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.category-scroll {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  padding: 4px 2px;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 860px) {
  .category-scroll {
    justify-content: center;
  }
}

.category-scroll::-webkit-scrollbar {
  display: none;
}

.cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 84px;
  min-width: 84px;
  height: 98px;
  padding: 8px 6px;
  box-sizing: border-box;
  border-radius: 18px;
  cursor: pointer;
  transition: all 0.24s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  background: #191333;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  user-select: none;
  flex-shrink: 0;
  text-decoration: none;
}

.cat-item:hover {
  background: #231b46;
  transform: translateY(-3px);
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.3);
}

.cat-item:hover .cat-icon {
  transform: scale(1.08);
}

.cat-item.active {
  background: linear-gradient(180deg, #2e1e57 0%, #1c123b 100%);
  border: 1.5px solid #a855f7;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.4), 0 4px 14px rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
}

.cat-icon {
  width: 42px;
  height: 42px;
  object-fit: contain;
  display: block;
  margin-bottom: 5px;
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.cat-icon-svg {
  font-size: 28px;
  line-height: 42px;
  text-align: center;
}

.cat-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1px;
  width: 100%;
}

.cat-label {
  font-size: 12px;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.15;
  transition: color 0.2s ease;
}

.cat-sub {
  font-size: 10px;
  font-weight: 500;
  color: #a78bfa;
  line-height: 1.15;
  transition: color 0.2s ease;
}

.cat-sub.bold {
  font-weight: 700;
  color: #c4b5fd;
}

.cat-item.active .cat-label {
  color: #ffffff;
}

.cat-item.active .cat-sub {
  color: #e9d5ff;
}

@media (max-width: 600px) {
  .category-bar {
    padding: 10px 14px;
  }

  .category-scroll {
    gap: 10px;
    padding: 2px 0;
  }

  .cat-item {
    width: 74px;
    min-width: 74px;
    height: 92px;
    padding: 6px 4px;
    border-radius: 16px;
  }

  .cat-icon {
    width: 38px;
    height: 38px;
    margin-bottom: 4px;
  }

  .cat-label {
    font-size: 11.5px;
  }

  .cat-sub {
    font-size: 9.5px;
  }
}

/* ===================== SECTION HEADER ===================== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-title {
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #ffffff;
}

.section-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 2px;
}

.view-all {
  font-size: 14px;
  font-weight: 600;
  color: var(--purple);
  display: flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}

.view-all:hover {
  text-decoration: underline;
}

/* ===================== MASONRY GRID ===================== */
.section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 24px;
}

.masonry-grid {
  columns: 5;
  column-gap: 10px;
}

.pin {
  display: block;
  break-inside: avoid;
  margin-bottom: 12px;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  background: #151221;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.22s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.22s;
}

.pin:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(124, 58, 237, 0.35);
  border-color: rgba(124, 58, 237, 0.5);
}

.pin-img {
  width: 100%;
  display: block;
  overflow: hidden;
  position: relative;
}

.pin-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.pin:hover .pin-img img {
  transform: scale(1.05);
}

.pin-badge {
  position: absolute;
  top: 9px;
  left: 9px;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  color: #fff;
  letter-spacing: 0.3px;
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  background: rgba(17, 24, 39, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
  pointer-events: none;
  line-height: 1.4;
  z-index: 2;
}

.badge-pinned {
  background: rgba(220, 38, 38, 0.72);
  border-color: rgba(254, 202, 202, 0.45);
}

.badge-new {
  background: rgba(16, 185, 129, 0.72);
  border-color: rgba(167, 243, 208, 0.45);
}

.badge-template {
  background: rgba(124, 58, 237, 0.75);
  border-color: rgba(221, 214, 254, 0.45);
}

/* Fallback Card & Badge Classes */
.card {
  display: block;
  break-inside: avoid;
  margin-bottom: 12px;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  background: #151221;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.55), 0 0 20px rgba(124, 58, 237, 0.2);
}
.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.badge-card {
  position: absolute;
  top: 9px;
  left: 9px;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  color: #fff;
  letter-spacing: 0.3px;
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  background: rgba(17, 24, 39, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
  pointer-events: none;
  line-height: 1.4;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

@media (max-width: 1100px) {
  .masonry-grid {
    columns: 4;
  }
}

@media (max-width: 800px) {
  .masonry-grid {
    columns: 3;
  }
}

@media (max-width: 540px) {
  .masonry-grid {
    columns: 2;
    column-gap: 8px;
  }

  .pin {
    margin-bottom: 8px;
  }
}

/* ===================== GLASSMORHIC PAGINATION ===================== */
.pagination-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 36px 0 24px;
  padding: 0 16px;
}

.pagination-glass {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: #151221;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 50px;
  box-shadow: 0 12px 36px -4px rgba(0, 0, 0, 0.4), 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-btn {
  min-width: 38px;
  height: 38px;
  padding: 0 8px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  text-decoration: none;
}

.page-btn:hover:not(:disabled):not(.disabled):not(.active) {
  background: rgba(124, 58, 237, 0.1);
  color: var(--purple);
  border-color: rgba(124, 58, 237, 0.3);
  transform: translateY(-2px);
}

.page-btn.active {
  background: linear-gradient(135deg, #7C3AED 0%, #EC4899 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.45);
  transform: scale(1.05);
}

.page-btn:disabled,
.page-btn.disabled {
  opacity: 0.38;
  cursor: not-allowed;
  pointer-events: none;
}

.page-btn.nav-btn {
  padding: 0 14px;
  gap: 5px;
}

.page-dots {
  color: #9ca3af;
  font-weight: 700;
  padding: 0 4px;
  user-select: none;
}

@media (max-width: 520px) {
  .pagination-glass {
    padding: 6px 10px;
    gap: 4px;
  }

  .page-btn {
    min-width: 34px;
    height: 34px;
    font-size: 12.5px;
  }

  .page-btn.nav-btn {
    padding: 0 10px;
    font-size: 12px;
  }
}

/* ===================== FOOTER ===================== */
footer {
  background: #090714;
  border-top: 1px solid rgba(168, 85, 247, 0.12);
  color: #94a3b8;
  padding: 36px 20px;
  margin-top: 40px;
  text-align: center;
  font-size: 13px;
}

footer a {
  color: #a78bfa;
  font-weight: 600;
  transition: color 0.2s ease;
}

footer a:hover {
  color: #c4b5fd;
  text-decoration: underline;
}

/* ===================== PROMPT / TEMPLATE PAGE ===================== */
.page-layout {
  max-width: 1240px;
  margin: 18px auto 40px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  min-height: 100vh;
}

.page-main {
  padding: 0;
  border-right: none;
}

.page-sidebar {
  padding: 0;
}

.breadcrumb {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--purple);
}

.breadcrumb span {
  color: #bbb;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 20px;
  padding: 6px 0;
  cursor: pointer;
}

.back-btn:hover {
  color: var(--purple);
}

/* Breadcrumb */
.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 24px;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 18px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.02);
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.18s ease;
}

.breadcrumb a:hover {
  color: var(--purple);
}

.breadcrumb span {
  color: #cbd5e1;
  font-weight: 600;
}

.breadcrumb .active-crumb {
  color: var(--text);
  font-weight: 600;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 22px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  user-select: none;
  width: fit-content;
}

.back-btn:hover {
  color: #c4b5fd;
  border-color: rgba(124, 58, 237, 0.5);
  transform: translateX(-3px);
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.2);
}

/* ===================== DETAIL PAGE (HERO CARD & CENTERED IMAGE) ===================== */
.detail-top {
  display: flex;
  gap: 32px;
  align-items: center;
  margin-bottom: 24px;
  background: #140f28;
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 24px;
  padding: 26px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.detail-cover {
  position: relative;
  width: 260px;
  min-width: 260px;
  aspect-ratio: 9/16;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 36px -6px rgba(124, 58, 237, 0.35), 0 2px 10px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(168, 85, 247, 0.25);
  flex-shrink: 0;
  background: #0e0a1c;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.detail-cover:hover img {
  transform: scale(1.03);
}

.detail-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.detail-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(124, 58, 237, 0.2);
  border: 1px solid rgba(168, 85, 247, 0.35);
  color: #c4b5fd;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
  width: fit-content;
}

.detail-category-badge svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.capcut-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
  width: fit-content;
}

.capcut-badge svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.detail-title {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.detail-stats {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #94a3b8;
}

.stat-chip svg {
  width: 14px;
  height: 14px;
  fill: #94a3b8;
}

.detail-desc {
  font-size: 13.5px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 18px;
}

/* ===================== SOCIAL SHARE CLUSTER (MATCHING IMAGE 1 & 2) ===================== */
.share-btns-cluster {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 360px;
  margin-bottom: 16px;
}

.share-btns-row {
  display: flex;
  gap: 10px;
  width: 100%;
}

.share-btns-row.center {
  justify-content: flex-start;
}

.share-btns-row.center .share-btn {
  flex: 0 1 auto;
  min-width: 160px;
}

.share-btn {
  flex: 1 1 0;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.2px;
  user-select: none;
  white-space: nowrap;
  font-family: var(--font-heading);
}

.share-btn .share-icon,
.share-btn svg {
  width: 16px;
  height: 16px;
  display: block;
  flex-shrink: 0;
  fill: currentColor;
}

.share-btn:hover {
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.08);
}

.share-btn:active {
  transform: scale(0.97);
}

.btn-instagram {
  background: linear-gradient(135deg, #fa7022 0%, #e1306c 60%, #c13584 100%);
  box-shadow: 0 6px 20px -2px rgba(225, 48, 108, 0.45);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  box-shadow: 0 6px 20px -2px rgba(37, 211, 102, 0.45);
}

.btn-telegram {
  background: linear-gradient(135deg, #29B6F6 0%, #0288D1 100%);
  box-shadow: 0 6px 20px -2px rgba(41, 182, 246, 0.45);
}

/* ===================== CAPCUT TEMPLATE CTA (MATCHING IMAGE 2) ===================== */
.btn-use-template {
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  color: #ffffff;
  font-size: 15.5px;
  font-weight: 800;
  padding: 14px 24px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  width: 100%;
  max-width: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 8px 24px -2px rgba(124, 58, 237, 0.4);
  transition: all 0.24s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.2px;
  text-decoration: none;
  font-family: var(--font-heading);
}

.btn-use-template svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.btn-use-template:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(124, 58, 237, 0.5);
  filter: brightness(1.08);
}

.btn-use-template:active {
  transform: scale(0.98);
}

.cta-subtitle {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 8px;
  font-weight: 500;
}

/* ===================== PROMPT BOX (MATCHING IMAGE 1) ===================== */
.prompt-box {
  background: #140f28;
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 20px;
  padding: 20px 22px;
  margin-bottom: 22px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.prompt-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.prompt-box-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #ffffff;
}

.prompt-box-title svg {
  width: 16px;
  height: 16px;
  fill: var(--purple);
}

.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
  transition: all 0.2s ease;
}

.btn-copy svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.btn-copy:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.prompt-text {
  font-family: var(--font-main);
  font-size: 13.5px;
  line-height: 1.7;
  color: #e2e8f0;
  background: #0e0a1c;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(168, 85, 247, 0.2);
  white-space: pre-wrap;
  word-break: break-word;
}

.best-with-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.best-with-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}

.best-with-pill svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

.best-with-also {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 500;
}

/* ===================== QUICK DETAILS CARD (MATCHING IMAGE 1 & 2) ===================== */
.quick-details-card {
  background: #140f28;
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 20px;
  padding: 20px 22px;
  margin-bottom: 24px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.quick-details-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 14px;
}

.quick-details-title svg {
  width: 18px;
  height: 18px;
  fill: #a78bfa;
}

.quick-table {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
  background: #0e0a1c;
}

.quick-row {
  display: flex;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13.5px;
  transition: background 0.15s ease;
}

.quick-row:last-child {
  border-bottom: none;
}

.quick-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

.quick-row-label {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 38%;
  font-weight: 700;
  color: #f1f5f9;
}

.quick-row-label svg {
  width: 16px;
  height: 16px;
  fill: #a78bfa;
  flex-shrink: 0;
}

.quick-row-val {
  width: 62%;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
}

/* ===================== HOW TO USE PROMPT (STEPPER - MATCHING IMAGE 1) ===================== */
.stepper-card {
  background: #140f28;
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 20px;
  padding: 22px 24px;
  margin-bottom: 24px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.stepper-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 24px;
}

.stepper-title svg {
  width: 18px;
  height: 18px;
  fill: #a78bfa;
}

.horizontal-stepper {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  position: relative;
}

.horizontal-stepper::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, #7c3aed, #a855f7);
  z-index: 1;
  opacity: 0.4;
}

.stepper-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 2;
  gap: 8px;
}

.stepper-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #9333ea);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 14px rgba(124, 58, 237, 0.45);
  border: 2px solid #140f28;
}

.stepper-text {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.35;
}

/* ===================== HOW TO USE TEMPLATE (MATCHING IMAGE 2) ===================== */
.template-steps-card {
  background: #140f28;
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 20px;
  padding: 22px 24px;
  margin-bottom: 24px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.template-steps-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 18px;
}

.template-steps-title svg {
  width: 18px;
  height: 18px;
  fill: #a78bfa;
}

.template-steps-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.template-step-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: #191333;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  transition: all 0.24s cubic-bezier(0.4, 0, 0.2, 1);
}

.template-step-item:hover {
  background: #231b46;
  border-color: rgba(168, 85, 247, 0.45);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.22);
}

.template-step-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #9333ea);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.4);
}

.template-step-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #120d26;
  border: 1px solid rgba(168, 85, 247, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.template-step-icon svg {
  width: 18px;
  height: 18px;
  fill: #c4b5fd;
}

.template-step-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.template-step-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  font-family: var(--font-heading);
}

.template-step-desc {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.35;
}


/* ===================== SIDEBAR SECTIONS ===================== */
.sidebar-section {
  background: #140f28;
  border-radius: 20px;
  padding: 18px 20px;
  margin-bottom: 20px;
  border: 1px solid rgba(168, 85, 247, 0.2);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.sidebar-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 14px;
}

.sidebar-section-title a {
  font-size: 12.5px;
  font-weight: 600;
  color: #a78bfa;
  text-decoration: none;
  transition: color 0.2s ease;
}

.sidebar-section-title a:hover {
  color: #c4b5fd;
  text-decoration: underline;
}

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

.popular-card {
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  background: #191333;
}

.popular-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.25);
  border-color: rgba(168, 85, 247, 0.45);
}

.popular-card-img {
  width: 100%;
  aspect-ratio: 1/1;
  background: #0e0a1c;
  border-radius: 10px 10px 0 0;
  overflow: hidden;
}

.popular-card-title {
  font-size: 11.5px;
  font-weight: 700;
  color: #f1f5f9;
  padding: 7px 10px 2px;
  line-height: 1.3;
}

.popular-card-sub {
  font-size: 10.5px;
  color: #a78bfa;
  padding: 2px 10px 7px;
  font-weight: 500;
}

.explore-cats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.explore-cat {
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #191333;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.explore-cat:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.22);
  border-color: rgba(168, 85, 247, 0.45);
}

.explore-cat-img {
  width: 100%;
  aspect-ratio: 1/1;
  background: #0e0a1c;
  overflow: hidden;
}

.explore-cat-name {
  font-size: 11px;
  font-weight: 700;
  color: #f1f5f9;
  padding: 5px 4px 1px;
  line-height: 1.2;
}

.explore-cat-count {
  font-size: 9.5px;
  color: #a78bfa;
  padding: 1px 4px 5px;
  font-weight: 500;
}

/* ===================== TOAST NOTIFICATION ===================== */
.toast-notification {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  opacity: 0;
  pointer-events: none;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 9999;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-family: var(--font-main);
}

.toast-notification.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.toast-notification svg {
  width: 18px;
  height: 18px;
  fill: #10b981;
}

@media (max-width: 768px) {
  .detail-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 22px 18px;
    gap: 20px;
  }

  .detail-cover {
    width: 250px;
    max-width: 90%;
    margin: 0 auto;
  }

  .detail-info {
    align-items: center;
    text-align: center;
  }

  .detail-category-badge,
  .capcut-badge {
    margin: 0 auto 12px;
  }

  .detail-stats {
    justify-content: center;
  }

  .share-btns-cluster {
    margin: 14px auto 18px;
  }

  .share-btns-row.center {
    justify-content: center;
  }

  .btn-use-template {
    margin: 0 auto;
  }

  .cta-subtitle {
    text-align: center;
  }

  .quick-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 10px 14px;
  }

  .quick-row-label {
    width: 100%;
  }

  .quick-row-val {
    width: 100%;
    padding-left: 26px;
  }

  .horizontal-stepper {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .horizontal-stepper::before {
    display: none;
  }

  .stepper-step {
    flex-direction: row;
    text-align: left;
    gap: 12px;
  }
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1280px) {
  .navbar,
  .category-bar,
  .hero,
  .section,
  .page-layout {
    margin-left: 16px;
    margin-right: 16px;
  }
}

@media (max-width: 1024px) {
  .page-layout {
    grid-template-columns: 1fr 280px;
  }
}

@media (max-width: 768px) {
  .navbar {
    margin: 8px 10px 0;
    padding: 0 14px;
    height: 52px;
    border-radius: 16px;
    gap: 10px;
  }

  .navbar-logo img {
    height: 23px;
  }

  .nav-right {
    gap: 8px;
  }

  .nav-search-btn {
    width: 32px;
    height: 32px;
  }

  .nav-search-btn svg {
    width: 15px;
    height: 15px;
  }

  .btn-get-app {
    padding: 6px 14px;
    font-size: 12px;
    border-radius: 20px;
    white-space: nowrap;
  }

  .category-bar {
    margin: 8px 10px 0;
    padding: 8px 10px;
    border-radius: 16px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    flex-direction: column;
    padding: 24px 16px;
  }

  .hero-right {
    display: none;
  }

  .section {
    padding: 20px 16px;
  }

  .page-layout {
    grid-template-columns: 1fr;
  }

  .page-sidebar {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
  }

  .detail-top {
    flex-direction: column;
  }

  .detail-cover {
    width: 160px;
  }

  .steps {
    gap: 6px;
  }
}