:root {
  --bg-dark: #0b0e14;
  --bg-dark-2: #121826;
  --purple: #7c3aed;
  --purple-2: #a855f7;
  --green: #10b981;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --white: #ffffff;
  --card: #ffffff;
  --header-bg: rgba(11, 14, 20, 0.85);
  --hero-text: #ffffff;
  --section-bg: #ffffff;
  --panel-share: linear-gradient(135deg, #6d28d9, #7c3aed 55%, #9333ea);
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
  --brand-logo-height: 64px;
  --brand-logo-height-footer: 72px;
  --brand-logo-height-on-light: 60px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--section-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

body.light-header .site-header {
  background: rgba(255, 255, 255, 0.95);
  border-bottom-color: var(--border);
}
body.light-header .site-header .logo,
body.light-header .nav-link,
body.light-header .icon-btn,
body.light-header .menu-btn { color: var(--text); }
body.light-header .btn-login {
  color: var(--text);
  border-color: #cbd5e1;
}
body.light-header .dropdown {
  background: #fff;
  border-color: #e2e8f0;
}
body.light-header .dropdown a { color: #334155; }
body.light-header .dropdown a:hover {
  background: #f8fafc;
  color: #7c3aed;
}

.container {
  width: min(1580px, calc(100% - 80px));
  max-width: 1580px;
  margin: 0 auto;
  padding-left: 0;
  padding-right: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #0b0e14;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 0;
  padding: 6px 0;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 18px;
  flex-shrink: 0;
}
.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #7c3aed 0%, #6366f1 55%, #3b82f6 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}
.header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-left: auto;
}
.nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-item {
  position: relative;
}
.nav-link {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  padding: 6px 8px;
  border-radius: 8px;
}
.nav-link:hover,
.nav-item.open > .nav-link {
  color: #e9d5ff;
  background: rgba(255, 255, 255, 0.06);
}
.caret {
  font-size: 9px;
  opacity: 0.75;
  line-height: 1;
  margin-top: 1px;
  transition: transform 0.2s ease;
}
.nav-item.open .caret {
  transform: rotate(180deg);
}
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: #121826;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  display: none;
  z-index: 60;
}
.nav-item.open > .dropdown {
  display: grid;
  gap: 2px;
}
.dropdown a {
  color: #e2e8f0;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 12px;
  border-radius: 8px;
  white-space: nowrap;
}
.dropdown a:hover {
  background: rgba(124, 58, 237, 0.2);
  color: #fff;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.icon-btn,
.menu-btn {
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
}
.icon-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}
.menu-btn { display: none; }
.btn-login {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 10px;
  padding: 7px 14px;
  font-weight: 600;
  box-shadow: none;
}
.btn-login:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: none;
}
.btn-start {
  border-radius: 10px;
  padding: 7px 14px;
  white-space: nowrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  border: 0;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--purple), var(--purple-2));
  color: #fff;
  box-shadow: 0 10px 24px rgba(124, 58, 237, 0.35);
}
.btn-dark {
  background: #1e293b;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.btn-green {
  background: var(--green);
  color: #fff;
  box-shadow: 0 10px 24px rgba(16, 185, 129, 0.3);
}
.btn-white {
  background: #fff;
  color: var(--purple);
}
.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
}
.btn-lg { padding: 14px 22px; font-size: 15px; }
.btn-wide { width: 100%; margin-top: 12px; padding: 14px 18px; }

.hero {
  background:
    radial-gradient(circle at 80% 20%, rgba(124, 58, 237, 0.28), transparent 35%),
    radial-gradient(circle at 15% 80%, rgba(168, 85, 247, 0.18), transparent 30%),
    linear-gradient(180deg, #0b0e14 0%, #111827 100%);
  color: var(--hero-text);
  padding: 72px 0 90px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  color: #cbd5e1;
  margin-bottom: 22px;
}
.stars { color: #fbbf24; letter-spacing: 1px; }
.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.gradient-text {
  background: linear-gradient(90deg, #c084fc, #7c3aed 45%, #ec4899);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  margin: 0 0 22px;
  color: #94a3b8;
  font-size: 17px;
  max-width: 520px;
}
.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}
.feature-tags span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  color: #e2e8f0;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}
.social-proof {
  display: flex;
  align-items: center;
  gap: 14px;
}
.avatars {
  display: flex;
}
.avatars img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid #0b0e14;
  margin-left: -8px;
  object-fit: cover;
  background: #334155;
}
.avatars img:first-child { margin-left: 0; }
.social-proof strong {
  display: block;
  font-size: 15px;
}
.social-proof span {
  color: #94a3b8;
  font-size: 13px;
}

.hero-visual {
  position: relative;
  min-height: 420px;
}
.hero-slider {
  position: relative;
  width: 100%;
  min-height: 420px;
}
.hero-slides {
  position: relative;
  min-height: 420px;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(24px);
  transition: opacity 0.45s ease, transform 0.45s ease, visibility 0.45s;
  pointer-events: none;
}
.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
  z-index: 1;
}
.hero-slide .mock-phone {
  position: absolute;
  right: 0;
  bottom: 10px;
}
.hero-nav {
  position: absolute;
  top: 42%;
  z-index: 4;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(15, 23, 42, 0.75);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  backdrop-filter: blur(6px);
}
.hero-nav:hover {
  background: #7c3aed;
  border-color: #7c3aed;
}
.hero-nav.prev { left: -6px; }
.hero-nav.next { right: -6px; }
.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 4;
}
.hero-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 0;
  background: rgba(148, 163, 184, 0.55);
  cursor: pointer;
  padding: 0;
}
.hero-dots button.is-active {
  background: #7c3aed;
  width: 22px;
  border-radius: 999px;
}
.mock-laptop {
  width: 100%;
  max-width: 640px;
  margin-left: auto;
  background: #1f2937;
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.mock-screen {
  background: #0f172a;
  border-radius: 10px;
  overflow: hidden;
  min-height: 300px;
}
.mock-site { padding: 18px; }
.mock-nav {
  font-size: 13px;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 18px;
}
.mock-hero-mini {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}
.mock-photo,
.phone-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: #334155;
  border: 3px solid rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}
.mock-hero-mini h3 {
  margin: 0 0 4px;
  font-size: 18px;
}
.mock-hero-mini p {
  margin: 0;
  color: #94a3b8;
  font-size: 13px;
}
.mock-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.mock-cards img {
  display: block;
  width: 100%;
  height: 78px;
  object-fit: cover;
  object-position: top center;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: #1e293b;
}
.mock-phone {
  width: 150px;
  background: #020617;
  border-radius: 24px;
  padding: 10px;
  border: 3px solid #334155;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}
.phone-notch {
  width: 54px;
  height: 8px;
  border-radius: 999px;
  background: #1e293b;
  margin: 4px auto 10px;
}
.phone-body {
  background: #0f172a;
  border-radius: 16px;
  padding: 16px 12px 20px;
  text-align: center;
}
.phone-photo {
  width: 70px;
  height: 70px;
  margin: 0 auto 10px;
}
.phone-body strong {
  display: block;
  font-size: 12px;
}
.phone-body small {
  color: #94a3b8;
  font-size: 11px;
}

.features {
  padding: 88px 0;
  text-align: center;
}
.section-kicker {
  margin: 0 0 10px;
  color: var(--purple);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.section-kicker.dark { color: var(--purple); }
.features h2,
.testimonials h2 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.02em;
}
.section-lead {
  margin: 0 auto 40px;
  max-width: 560px;
  color: var(--muted);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  text-align: left;
}
.feature-grid article {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow);
}
.feature-grid h3 {
  margin: 0 0 8px;
  font-size: 18px;
}
.feature-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  font-weight: 800;
  font-size: 14px;
}
.icon.purple { background: #ede9fe; color: #6d28d9; }
.icon.blue { background: #dbeafe; color: #2563eb; }
.icon.pink { background: #fce7f3; color: #db2777; }
.icon.orange { background: #ffedd5; color: #ea580c; }
.icon.teal { background: #ccfbf1; color: #0d9488; }
.icon.green { background: #d1fae5; color: #059669; }

.home-templates {
  background: #f5f7fb;
  padding: 72px 0 64px;
  overflow: hidden;
}
.home-templates .templates-wrap {
  text-align: center;
}
.home-templates .home-tpl-head {
  text-align: left;
  margin: 28px 0 20px;
}
.home-templates .home-tpl-head h3 {
  margin: 0;
  font-size: 22px;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.home-tpl-carousel {
  overflow: hidden;
  width: 100%;
  margin-bottom: 24px;
}
.home-tpl-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: homeTplScroll 30s linear infinite;
  will-change: transform;
}
.home-tpl-carousel:hover .home-tpl-track {
  animation-play-state: paused;
}
.home-tpl-track .tpl-card {
  flex: 0 0 360px;
  width: 360px;
}
.home-templates .tpl-thumb {
  height: 240px;
}
@keyframes homeTplScroll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

.how-it-works {
  padding: 80px 0;
  background: #fff;
  text-align: center;
}
.how-it-works h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.02em;
  color: #0f172a;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 40px;
  text-align: left;
}
.step-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 24px 20px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(124, 58, 237, 0.12);
}
.step-num {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 14px;
}
.step-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  color: #0f172a;
}
.step-card p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.65;
}

@media (max-width: 980px) {
  .steps-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
}

.free-plan {
  padding: 80px 0;
  background: #0b0e14;
  color: #fff;
  text-align: center;
}
.free-plan .section-kicker {
  color: #c4b5fd;
}
.free-plan h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.02em;
}
.free-plan .section-lead {
  color: #94a3b8;
  max-width: 680px;
}
.free-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 40px;
  text-align: left;
}
.free-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 24px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.free-card:hover {
  transform: translateY(-4px);
  border-color: rgba(168, 85, 247, 0.45);
  background: rgba(124, 58, 237, 0.12);
}
.free-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 14px;
}
.free-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  color: #fff;
}
.free-card p {
  margin: 0;
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.65;
}
.free-cta {
  margin-top: 36px;
}

@media (max-width: 980px) {
  .free-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .free-grid {
    grid-template-columns: 1fr;
  }
}

.profile-steps {
  padding: 80px 0;
  background: #fff;
  text-align: center;
}
.profile-steps h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 40px);
  color: #0f172a;
  letter-spacing: -0.02em;
}
.profile-steps .section-lead {
  max-width: 720px;
  margin-bottom: 20px;
}
.flow-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  text-align: left;
  padding: 56px 0;
  border-top: 1px solid #eef2f7;
}
.flow-row:first-of-type {
  border-top: 0;
  margin-top: 20px;
}
.flow-row.reverse .flow-copy {
  order: 2;
}
.flow-row.reverse .flow-visual {
  order: 1;
}
.flow-copy h3 {
  margin: 0 0 22px;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.2;
  color: #0f172a;
}
.flow-lead {
  margin: -8px 0 20px;
  color: #64748b;
  font-size: 15px;
  line-height: 1.7;
}
.flow-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 18px;
}
.flow-list li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
}
.flow-ico {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #f3f4f6;
  color: #334155;
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 700;
}
.flow-list strong {
  display: block;
  margin-bottom: 4px;
  color: #0f172a;
  font-size: 16px;
}
.flow-list p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
}
.flow-btn {
  border-radius: 999px;
  padding: 12px 22px;
}
.flow-visual {
  min-height: 320px;
}
.flow-mock {
  position: relative;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  min-height: 320px;
  overflow: hidden;
}
.flow-mock.editor {
  display: grid;
  grid-template-columns: 110px 1fr;
  background: #111827;
  border: 0;
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.2);
}
.flow-mock.editor aside {
  padding: 16px 12px;
  display: grid;
  gap: 10px;
  align-content: start;
  background: #0b1220;
}
.flow-mock.editor aside b {
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}
.flow-canvas {
  position: relative;
  padding: 16px;
}
.flow-canvas > img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: top center;
  border-radius: 12px;
  display: block;
}
.flow-person {
  position: absolute;
  left: 28px;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 23, 42, 0.82);
  color: #fff;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.flow-person img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}
.flow-mock.share {
  background: #eef2ff;
  padding: 24px;
  display: grid;
  place-items: center;
}
.flow-tablet {
  width: 78%;
  height: 280px;
  object-fit: cover;
  object-position: top center;
  border-radius: 18px;
  border: 10px solid #111827;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.2);
}
.flow-menu {
  position: absolute;
  top: 28px;
  right: 28px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.16);
  padding: 8px;
  min-width: 140px;
  display: grid;
  gap: 4px;
}
.flow-menu span {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
}
.flow-menu span.on {
  background: #f3e8ff;
  color: #7c3aed;
}
.flow-mock.print {
  background: #ecfeff;
  padding: 22px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 14px;
  align-items: center;
}
.flow-print-sheet {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: top center;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.12);
}
.flow-ship {
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
  display: grid;
  gap: 8px;
}
.flow-ship h4 {
  margin: 0 0 4px;
  font-size: 14px;
  color: #0f172a;
}
.flow-ship label {
  font-size: 12px;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 6px;
}
.flow-ship input[type="text"] {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  font-size: 12px;
}
.flow-ship .btn {
  margin-top: 4px;
  border-radius: 999px;
  padding: 9px 12px;
  font-size: 13px;
}

@media (max-width: 900px) {
  .flow-row,
  .flow-row.reverse {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 36px 0;
  }
  .flow-row.reverse .flow-copy,
  .flow-row.reverse .flow-visual {
    order: initial;
  }
  .flow-mock.print {
    grid-template-columns: 1fr;
  }
  .flow-tablet {
    width: 100%;
    height: 220px;
  }
}
.templates-wrap h2 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.02em;
  color: #0f172a;
}
.templates-carousel {
  margin: 28px 0 22px;
  overflow: hidden;
  width: 100%;
}
.templates-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: templateScroll 35s linear infinite;
  will-change: transform;
}
.templates-carousel:hover .templates-track {
  animation-play-state: paused;
}
@keyframes templateScroll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}
.site-card {
  flex: 0 0 320px;
  width: 320px;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
  text-align: left;
  backface-visibility: hidden;
  transform: translateZ(0);
  position: relative;
}
.site-card > .badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
}
.badge-free {
  background: #10b981;
  color: #fff;
}
.badge-prime {
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: #fff;
}
.site-preview {
  display: flex;
  flex-direction: column;
  background: #0f172a;
  min-height: 0;
}
.sp-hero {
  background: linear-gradient(160deg, #0b1220 0%, #1e1b4b 55%, #312e81 100%);
  padding: 16px;
  min-height: 230px;
}
.sp-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.sp-logo {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #7c3aed;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}
.sp-top nav {
  display: flex;
  gap: 5px;
}
.sp-top nav i {
  width: 14px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  display: block;
}
.sp-body {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.sp-copy {
  flex: 1;
  min-width: 0;
}
.sp-copy small,
.sp-copy em {
  display: block;
  color: #c4b5fd;
  font-size: 11px;
  font-style: normal;
}
.sp-copy strong {
  display: block;
  color: #fff;
  font-size: 17px;
  line-height: 1.2;
  margin: 6px 0;
}
.sp-btn {
  display: inline-flex;
  margin-top: 12px;
  border-radius: 8px;
  background: #7c3aed;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 8px 12px;
}
.sp-profile {
  width: 120px;
  height: 148px;
  min-width: 120px;
  min-height: 148px;
  flex-shrink: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 3px solid #fff;
  background-color: #94a3b8;
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
  position: relative;
  z-index: 2;
}
.sp-profile img {
  width: 120px;
  height: 148px;
  max-width: none;
  object-fit: cover;
  object-position: top center;
  display: block;
  position: relative;
  z-index: 1;
}
.templates-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
}
.text-link {
  color: var(--purple);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}
.share-visual {
  margin-top: 16px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  max-width: 280px;
}
.share-visual img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.blocks { padding: 20px 0 70px; }
.blocks-stack {
  display: grid;
  gap: 20px;
}
.panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  border-radius: 22px;
  padding: 28px;
  align-items: center;
}
.share-panel {
  background: var(--panel-share);
  color: #fff;
}
.domain-panel {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #064e3b;
}
.panel h3 {
  margin: 0 0 14px;
  font-size: 28px;
}
.panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.panel li {
  margin-bottom: 8px;
  font-size: 15px;
}
.panel-form label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
}
.share-panel .panel-form label { color: #ede9fe; }
.input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}
.input-row input,
.news-form input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  outline: none;
}
.share-panel .input-row input {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.domain-panel .input-row input,
.news-form input {
  background: #fff;
  border-color: #a7f3d0;
  color: #064e3b;
}
.hint {
  min-height: 20px;
  margin: 8px 0 0;
  font-size: 13px;
  opacity: 0.9;
}

.stats {
  background: #0b0e14;
  color: #fff;
  padding: 36px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  text-align: center;
}
.stats strong {
  display: block;
  font-size: 32px;
  margin-bottom: 4px;
  background: linear-gradient(90deg, #c084fc, #fff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stats span {
  color: #94a3b8;
  font-size: 14px;
}

.testimonials {
  padding: 80px 0;
  text-align: center;
}
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 34px;
  text-align: left;
}
.testimonial-grid article {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow);
}
.testimonial-grid p {
  color: #334155;
  font-size: 15px;
  min-height: 96px;
}
.person {
  display: flex;
  align-items: center;
  gap: 12px;
}
.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: #e2e8f0;
}
.person strong { display: block; font-size: 14px; }
.person small { color: var(--muted); font-size: 12px; }

.final-cta { padding: 20px 0 80px; }
.cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(135deg, #6d28d9, #7c3aed 50%, #a855f7);
  color: #fff;
  border-radius: 24px;
  padding: 36px;
  box-shadow: 0 24px 60px rgba(124, 58, 237, 0.35);
}
.cta-banner h2 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3vw, 34px);
}
.cta-banner p {
  margin: 0;
  color: #ede9fe;
}
.cta-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.site-footer {
  background: #0b0e14;
  color: #cbd5e1;
  padding: 60px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 0.8fr) 1.2fr;
  gap: 24px;
  margin-bottom: 36px;
}
.footer-brand p {
  color: #94a3b8;
  font-size: 14px;
  max-width: 260px;
}
.site-footer h4 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 14px;
}
.site-footer a {
  display: block;
  color: #94a3b8;
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 8px;
}
.site-footer a:hover { color: #fff; }
.newsletter p {
  margin: 0 0 12px;
  color: #94a3b8;
  font-size: 14px;
}
.news-form {
  display: grid;
  gap: 8px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 18px;
}
.footer-bottom p {
  margin: 0;
  font-size: 13px;
  color: #64748b;
}
.footer-socials {
  display: flex;
  gap: 10px;
}
.footer-socials a {
  margin: 0;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
}

.header-right.open {
  display: flex;
  position: absolute;
  top: 58px;
  left: 20px;
  right: 20px;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  background: #111827;
  padding: 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 70;
}
.header-right.open .nav {
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
}
.header-right.open .header-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
}
.header-right.open .dropdown {
  position: static;
  right: auto;
  margin-top: 4px;
  box-shadow: none;
}

@media (max-width: 980px) {
  .header-right { display: none; }
  .menu-btn { display: inline-flex; }
  .header-right.open { display: flex; }
  .hero-grid,
  .feature-grid,
  .panel,
  .stats-grid,
  .testimonial-grid,
  .footer-grid,
  .cta-banner {
    grid-template-columns: 1fr;
    display: grid;
  }
  .site-card {
    flex-basis: 280px;
    width: 280px;
  }
  .sp-profile,
  .sp-profile img {
    width: 100px;
    height: 124px;
    min-width: 100px;
    min-height: 124px;
  }
  .cta-banner { text-align: center; }
  .cta-actions { justify-content: center; }
  .hero-visual { min-height: 360px; }
  .hero-slider,
  .hero-slides { min-height: 360px; }
  .hero-nav.prev { left: 0; }
  .hero-nav.next { right: 0; }
  .mock-phone { right: 12px; }
  .footer-bottom { flex-direction: column; }
  .page-card-grid,
  .pricing-grid,
  .resource-grid {
    grid-template-columns: 1fr;
  }
}

/* Inner pages */
.page-hero {
  background:
    radial-gradient(circle at 80% 20%, rgba(124, 58, 237, 0.28), transparent 35%),
    linear-gradient(180deg, #0b0e14 0%, #111827 100%);
  color: #fff;
  padding: 36px 0 56px;
  text-align: center;
}
.page-hero .section-kicker {
  color: #c4b5fd;
}
.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.02em;
}
.page-lead {
  margin: 0 auto 22px;
  max-width: 640px;
  color: #94a3b8;
  font-size: 17px;
}
.page-section {
  padding: 56px 0;
}
.page-section.soft {
  background: #f8fafc;
}
.page-subtitle {
  margin: 0 0 24px;
  font-size: 28px;
}
.page-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.page-card-grid .site-card {
  flex: none;
  width: 100%;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.price-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 28px;
  box-shadow: var(--shadow);
  position: relative;
}
.price-card.featured {
  border-color: #7c3aed;
  box-shadow: 0 18px 50px rgba(124, 58, 237, 0.18);
}
.price-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
}
.price-card .price {
  margin: 0 0 18px;
}
.price-card .price strong {
  font-size: 40px;
  color: #0f172a;
}
.price-card .price span {
  color: #64748b;
  margin-left: 4px;
}
.price-card ul {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
}
.price-card li {
  margin-bottom: 8px;
  color: #334155;
  font-size: 14px;
}
.btn-login.dark {
  color: #0f172a;
  border-color: #cbd5e1;
  width: 100%;
}
.price-card .btn-primary {
  width: 100%;
}
.price-card .badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}
.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.resource-grid article {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.resource-grid h3 {
  margin: 0 0 8px;
  font-size: 18px;
}
.resource-grid p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
}
.page-cta {
  margin-top: 32px;
  text-align: center;
}

/* Custom domain page */
.domain-flow-intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 28px;
}
.domain-flow-intro .section-kicker {
  color: #7c3aed;
}
.domain-flow-lead {
  margin: 0;
  color: #64748b;
  font-size: 16px;
  line-height: 1.65;
}
.domain-steps .step-card code {
  background: #eef2ff;
  color: #4338ca;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 13px;
}
.domain-dns-box {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 16px;
  padding: 18px;
  margin: 20px 0 24px;
}
.domain-dns-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.domain-dns-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.domain-dns-label {
  color: #94a3b8;
  font-size: 13px;
  font-weight: 600;
}
.domain-dns-row code {
  color: #e2e8f0;
  font-size: 14px;
  word-break: break-all;
}
.domain-dns-note {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
}
.domain-dns-note code {
  color: #c4b5fd;
  font-size: 12px;
}
.domain-tips {
  margin-bottom: 22px;
}
.domain-mock {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
  min-height: 360px;
  padding: 0;
}
.domain-mock-header,
.domain-mock-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}
.domain-mock-footer {
  border-bottom: 0;
  border-top: 1px solid #e2e8f0;
  justify-content: flex-end;
}
.domain-mock-header span:first-child {
  font-weight: 700;
  color: #0f172a;
}
.domain-mock-badge {
  padding: 4px 10px;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  font-size: 12px;
  font-weight: 700;
}
.domain-mock-body {
  padding: 18px;
}
.domain-mock-body label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}
.domain-mock-input {
  padding: 11px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  margin-bottom: 14px;
}
.domain-mock-btn {
  width: 100%;
}
.domain-mock-dns {
  margin: 0 18px 18px;
  padding: 14px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
}
.domain-mock-dns p {
  margin: 0 0 8px;
  color: #64748b;
  font-size: 13px;
}
.domain-mock-dns code {
  color: #4338ca;
  font-size: 14px;
  word-break: break-all;
}
.domain-faq {
  margin-top: 36px;
}
.domain-faq h3 {
  margin: 0 0 18px;
  font-size: 24px;
  color: #0f172a;
}
.domain-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.domain-faq-grid article {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
}
.domain-faq-grid h4 {
  margin: 0 0 8px;
  font-size: 16px;
  color: #0f172a;
}
.domain-faq-grid p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.65;
}
.domain-faq-grid code {
  background: #eef2ff;
  color: #4338ca;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 12px;
}
@media (max-width: 760px) {
  .domain-dns-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .domain-faq-grid {
    grid-template-columns: 1fr;
  }
}

/* Blog */
.blog-listing {
  padding-top: 48px;
}
body.blog-page .container {
  width: min(1580px, calc(100% - 32px));
  max-width: 100%;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.blog-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.blog-card-media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0f172a;
}
.blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}
.blog-card:hover .blog-card-media img {
  transform: scale(1.04);
}
.blog-card-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 42px;
  font-weight: 800;
  color: #c4b5fd;
  background: linear-gradient(135deg, #1e293b, #312e81);
}
.blog-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-card-meta {
  display: flex;
  gap: 12px;
  color: #64748b;
  font-size: 12px;
  margin-bottom: 10px;
}
.blog-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.35;
}
.blog-card h3 a {
  color: #0f172a;
  text-decoration: none;
}
.blog-card h3 a:hover {
  color: #7c3aed;
}
.blog-card p {
  margin: 0 0 16px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.65;
  flex: 1;
}
.blog-read-more {
  color: #7c3aed;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}
.blog-read-more:hover {
  text-decoration: underline;
}
.blog-pagination {
  margin-top: 32px;
}
.blog-empty {
  text-align: center;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 48px 24px;
}
.blog-empty h3 {
  margin: 0 0 8px;
}
.blog-empty p {
  margin: 0;
  color: #64748b;
}
@media (max-width: 1100px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

/* Blog article layout */
.blog-post-section {
  padding-top: 48px;
  padding-bottom: 64px;
  overflow: visible;
}
body.blog-page {
  overflow-x: clip;
}
body.blog-page main {
  overflow-x: clip;
}
.blog-post-hero h1 {
  max-width: 900px;
  margin: 0 auto 14px;
}
.blog-post-meta,
.portfolio-blog-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  color: #94a3b8;
  font-size: 14px;
}
.blog-post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
  gap: 32px;
  align-items: start;
  width: 100%;
  max-width: 100%;
}
.blog-post {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  overflow: visible;
  box-shadow: var(--shadow);
  min-width: 0;
  max-width: 100%;
}
.blog-post-cover {
  border-radius: 18px 18px 0 0;
  overflow: visible;
}
.blog-post-cover img,
.blog-featured-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  background: #0f172a;
}
.blog-post-content {
  padding: 28px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  overflow-wrap: break-word;
  word-break: break-word;
}
.blog-post-footer {
  padding: 0 28px 28px;
  text-align: center;
}
.blog-post-footer .btn-login.dark {
  min-width: 180px;
}
.blog-post-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}
.blog-sidebar {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 96px;
  min-width: 0;
  max-width: 100%;
}
.blog-sidebar h3 {
  margin: 0 0 14px;
  font-size: 18px;
}
.blog-sidebar-item {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid #e2e8f0;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.blog-sidebar-item:last-child { border-bottom: 0; }
.blog-sidebar-item strong {
  display: block;
  color: #0f172a;
  font-size: 14px;
  margin-bottom: 4px;
  overflow-wrap: anywhere;
}
.blog-sidebar-item span {
  color: #64748b;
  font-size: 12px;
}
@media (max-width: 980px) {
  .blog-post-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .blog-sidebar {
    position: static;
    width: 100%;
  }
}

/* Rich HTML blog content — see public/css/blog-content.css */
.footer-bottom.only {
  border-top: 0;
  padding: 24px 0;
  justify-content: space-between;
}
.footer-bottom.only a {
  color: #c4b5fd;
  text-decoration: none;
  margin: 0;
}

/* Templates list page */
.templates-page {
  background: #f5f7fb;
}
.templates-page .tpl-main {
  padding-bottom: 40px;
}
.tpl-section {
  padding: 36px 0 12px;
}
.templates-page .tpl-category-filters {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  margin-bottom: 28px;
  padding: 4px 2px 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.templates-page .tpl-category-pill,
.templates-page a.tpl-category-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid #d7deea;
  background: #fff;
  color: #334155 !important;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none !important;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.templates-page .tpl-category-pill:hover,
.templates-page a.tpl-category-pill:hover {
  border-color: #7c3aed;
  color: #7c3aed !important;
  background: #faf5ff;
}
.templates-page .tpl-category-pill.active,
.templates-page a.tpl-category-pill.active {
  background: #111827;
  border-color: #111827;
  color: #fff !important;
  box-shadow: 0 6px 16px rgba(17, 24, 39, 0.18);
}
.tpl-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.tpl-section-head h2 {
  margin: 0;
  font-size: 24px;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.tpl-section-head a {
  color: #7c3aed;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}
.tpl-section-head .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.tpl-section-head .dot.free {
  background: #7c3aed;
}
.tpl-section-head .crown {
  color: #f59e0b;
  font-size: 18px;
  line-height: 1;
}
.tpl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.tpl-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #e8edf5;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
}
.tpl-thumb {
  position: relative;
  height: 280px;
  background: #0f172a;
  overflow: hidden;
}
.tpl-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.25s ease;
}
.tpl-thumb-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.82);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.tpl-card:hover .tpl-thumb-overlay,
.tpl-card:focus-within .tpl-thumb-overlay {
  opacity: 1;
}
.tpl-card:hover .tpl-thumb img {
  transform: scale(1.03);
}
.tpl-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
}
.tpl-badge.free {
  background: #10b981;
}
.tpl-badge.premium {
  background: linear-gradient(135deg, #f59e0b, #f97316);
  max-width: calc(100% - 24px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tpl-meta {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.tpl-meta-sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #cbd5e1;
  flex-shrink: 0;
}
.tpl-discount-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.tpl-price-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.tpl-price-old {
  color: #94a3b8;
  font-size: 13px;
  font-weight: 600;
  text-decoration: line-through;
  white-space: nowrap;
}
.tpl-price {
  color: #ea580c;
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
}
.tpl-body {
  padding: 18px 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.tpl-title-row h3 {
  margin: 0;
  font-size: 18px;
  color: #0f172a;
}
.tpl-rating {
  color: #f59e0b;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.tpl-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.tpl-rating small {
  color: #64748b;
  font-weight: 500;
}
.tpl-thumb-overlay .tpl-demo,
.tpl-thumb-overlay .tpl-use {
  min-width: 180px;
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  box-shadow: none;
  transform: none;
}
.tpl-thumb-overlay .tpl-demo {
  background: #111;
  color: #fff;
  border: 1px solid #111;
}
.tpl-thumb-overlay .tpl-demo:hover {
  background: #222;
  color: #fff;
  transform: none;
}
.tpl-thumb-overlay .tpl-use {
  background: #fff;
  color: #111;
  border: 1px solid #111;
}
.tpl-thumb-overlay .tpl-use:hover {
  background: #f8fafc;
  color: #111;
  transform: none;
}
@media (hover: none) {
  .tpl-thumb-overlay {
    opacity: 1;
    background: rgba(255, 255, 255, 0.9);
  }
}
.tpl-pagination {
  margin-top: 28px;
}
.tpl-pager {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.tpl-pager-summary {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  font-weight: 500;
}
.tpl-pager-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tpl-pager-list li {
  list-style: none;
}
.tpl-pager-list a,
.tpl-pager-list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #d0d7e2;
  border-radius: 10px;
  color: #0f172a;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  background: #fff;
}
.tpl-pager-list li.active span {
  background: #7c3aed;
  border-color: #7c3aed;
  color: #fff;
}
.tpl-pager-list li.disabled span {
  color: #94a3b8;
  background: #f8fafc;
}
.tpl-pager-list a:hover {
  background: #f8fafc;
  border-color: #7c3aed;
  color: #7c3aed;
}

@media (max-width: 1100px) {
  .tpl-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .tpl-grid {
    grid-template-columns: 1fr;
  }
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
  flex-shrink: 0;
}
.brand-logo img {
  width: auto;
  display: block;
  object-fit: contain;
}
.site-brand-logo img,
.auth-brand-logo img {
  height: var(--brand-logo-height);
  max-width: none;
}
.footer-brand-logo img {
  height: var(--brand-logo-height-footer);
  max-width: 280px;
}
.brand-logo-on-light img {
  height: var(--brand-logo-height-on-light);
  max-width: none;
}
.brand-logo-on-light {
  background: linear-gradient(135deg, #0b0e14 0%, #1e293b 100%);
  border-radius: 12px;
  padding: 6px 10px;
}

@media (max-width: 900px) {
  .site-brand-logo img,
  .auth-brand-logo img {
    height: 52px;
  }
}

@media (max-width: 560px) {
  .site-brand-logo img,
  .auth-brand-logo img {
    height: 46px;
  }
  .footer-brand-logo img {
    height: 56px;
  }
  .header-inner {
    padding: 4px 0;
  }
}
