@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Thai:wght@400;500;600;700&display=swap');

/* Editor CSS sets body{overflow:hidden} — allow scroll on homepage */
html:has(.iposter-home-root),
body:has(.iposter-home-root) {
  overflow: auto !important;
  height: auto !important;
}

body:has(.iposter-home-root) #root {
  overflow: visible !important;
  height: auto !important;
  min-height: 100vh;
}

html.iposter-home-page,
body.iposter-home-page {
  overflow: auto !important;
  height: auto !important;
}

body.iposter-home-page #root {
  overflow: visible !important;
  height: auto !important;
  min-height: 100vh;
}

.iposter-home-root {
  min-height: 100vh;
  width: 100%;
}

.iposter-home {
  --ip-purple: #7c3aed;
  --ip-purple-dark: #6d28d9;
  --ip-purple-soft: #f3e8ff;
  --ip-text: #1e293b;
  --ip-muted: #64748b;
  --ip-border: #e2e8f0;
  --ip-bg: #f8fafc;
  font-family: 'IBM Plex Sans Thai', 'Segoe UI', sans-serif;
  color: var(--ip-text);
  background: #fff;
}

.iposter-home * {
  box-sizing: border-box;
}

.iposter-home a {
  color: inherit;
  text-decoration: none;
}

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

.iposter-home .ip-container {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
}

/* Header */
.iposter-home .ip-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--ip-border);
  backdrop-filter: blur(8px);
}

.iposter-home .ip-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
  min-height: 64px;
}

.iposter-home .ip-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.35rem;
  white-space: nowrap;
  text-decoration: none;
  color: inherit;
}

.iposter-home .ip-brand-logo-img,
.iposter-home .ip-logo .ip-brand-logo-img {
  display: block;
  height: 52px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}

.iposter-home .ip-logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}

.iposter-home .ip-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.iposter-home .ip-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  color: #475569;
  transition: background 0.15s, color 0.15s;
}

.iposter-home .ip-nav a:hover,
.iposter-home .ip-nav a.is-active {
  background: var(--ip-purple-soft);
  color: var(--ip-purple-dark);
}

.iposter-home .ip-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.iposter-home .ip-lang {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--ip-border);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ip-muted);
}

.iposter-home .ip-link {
  font-weight: 500;
  color: var(--ip-text);
}

.iposter-home .ip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  padding: 10px 20px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.iposter-home .ip-btn:hover {
  transform: translateY(-1px);
}

.iposter-home .ip-btn-primary {
  background: var(--ip-purple);
  color: #fff;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.28);
}

.iposter-home .ip-btn-primary:hover {
  background: var(--ip-purple-dark);
}

.iposter-home .ip-btn-secondary {
  background: #fff;
  color: #475569;
  border: 1px solid #cbd5e1;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.iposter-home .ip-btn-secondary:hover {
  background: #f8fafc;
  color: #334155;
}

.iposter-home .ip-btn-white {
  background: #fff;
  color: var(--ip-purple-dark);
}

.iposter-home .ip-btn-signup {
  padding: 9px 18px;
  font-size: 0.88rem;
  border-radius: 10px;
}

.iposter-home .ip-user-menu {
  position: relative;
}

.iposter-home .ip-user-menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--ip-border);
  background: #fff;
  border-radius: 999px;
  padding: 4px 12px 4px 4px;
  font: inherit;
  cursor: pointer;
  color: var(--ip-text);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.iposter-home .ip-user-menu-trigger:hover,
.iposter-home .ip-user-menu.is-open .ip-user-menu-trigger {
  border-color: rgba(124, 58, 237, 0.35);
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.12);
}

.iposter-home .ip-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--ip-purple), #ec4899);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  flex-shrink: 0;
}

.iposter-home .ip-user-name {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.88rem;
  font-weight: 600;
}

.iposter-home .ip-user-caret {
  font-size: 0.72rem;
  color: var(--ip-muted);
}

.iposter-home .ip-user-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(320px, calc(100vw - 24px));
  background: #fff;
  border: 1px solid var(--ip-border);
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.14);
  z-index: 120;
  overflow: hidden;
}

.iposter-home .ip-user-menu-head {
  padding: 16px 16px 12px;
  border-bottom: 1px solid #f1f5f9;
}

.iposter-home .ip-user-menu-head strong {
  display: block;
  font-size: 0.98rem;
  color: var(--ip-text);
}

.iposter-home .ip-user-menu-head span {
  display: block;
  margin-top: 4px;
  font-size: 0.82rem;
  color: var(--ip-muted);
  word-break: break-all;
}

.iposter-home .ip-user-menu-body {
  padding: 12px 16px;
  display: grid;
  gap: 10px;
}

.iposter-home .ip-user-menu-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.84rem;
}

.iposter-home .ip-user-menu-label {
  color: var(--ip-muted);
}

.iposter-home .ip-user-menu-value {
  font-weight: 600;
  color: var(--ip-text);
  text-align: right;
}

.iposter-home .ip-user-menu-foot {
  padding: 12px 16px 16px;
  display: grid;
  gap: 8px;
  border-top: 1px solid #f1f5f9;
}

.iposter-home .ip-user-menu-link {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  color: #334155;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.iposter-home .ip-user-menu-link:hover {
  background: #f8fafc;
  color: #0f172a;
}

.iposter-home .ip-user-editor-link {
  text-decoration: none;
  justify-content: center;
}

.iposter-home .ip-btn-logout {
  width: 100%;
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 0.88rem;
}

/* Hero — full-width banner */
.iposter-home .ip-hero {
  position: relative;
  min-height: 600px;
  padding: 48px 0 56px;
  overflow: hidden;
}

.iposter-home .ip-hero-card-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 32px;
  z-index: 4;
  pointer-events: none;
}

.iposter-home .ip-hero-card-bar .ip-container {
  display: flex;
  justify-content: flex-start;
  padding-bottom: 0;
}

.iposter-home .ip-hero-card-bar-panel {
  pointer-events: auto;
  width: min(100%, 480px);
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  box-shadow:
    0 6px 20px rgba(15, 23, 42, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  overflow: hidden;
  backdrop-filter: blur(16px) saturate(1.05);
  -webkit-backdrop-filter: blur(16px) saturate(1.05);
}

.iposter-home .ip-hero-card-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.iposter-home .ip-hero-card-stat {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 1px;
  padding: 1px 2px;
}

.iposter-home .ip-hero-card-features {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  padding: 8px 10px 10px;
  background: transparent;
}

.iposter-home .ip-hero-card-feature {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 3px;
  padding: 0 1px;
}

.iposter-home .ip-hero-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: rgba(237, 233, 254, 0.38);
  color: #7c3aed;
}

.iposter-home .ip-hero-card-icon svg {
  width: 12px;
  height: 12px;
}

.iposter-home .ip-hero-card-stat-value {
  font-size: 0.78rem;
  line-height: 1.1;
  color: #1e293b;
  font-weight: 800;
  text-shadow: 0 1px 8px rgba(255, 255, 255, 0.65);
}

.iposter-home .ip-hero-card-stat-label {
  font-size: 0.56rem;
  line-height: 1.25;
  color: #334155;
  text-shadow: 0 1px 6px rgba(255, 255, 255, 0.75);
}

.iposter-home .ip-hero-card-feature-title {
  font-size: 0.62rem;
  line-height: 1.15;
  color: #1e293b;
  font-weight: 700;
  text-shadow: 0 1px 8px rgba(255, 255, 255, 0.65);
}

.iposter-home .ip-hero-card-feature-desc {
  font-size: 0.52rem;
  line-height: 1.2;
  color: #475569;
  text-shadow: 0 1px 6px rgba(255, 255, 255, 0.7);
}

.iposter-home .ip-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.iposter-home .ip-hero-bg-stack {
  position: absolute;
  inset: 0;
}

.iposter-home .ip-hero-bg-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity var(--hero-feed-transition, 1.2s) ease;
  will-change: opacity;
}

.iposter-home .ip-hero-bg-layer.is-visible {
  opacity: 1;
}

.iposter-home .ip-hero-feed-dots {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
}

.iposter-home .ip-hero-feed-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.25);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.iposter-home .ip-hero-feed-dot.is-active {
  background: #fff;
  transform: scale(1.2);
}

.iposter-home .ip-hero-bg[data-default-url],
.iposter-home .ip-hero-bg-layer {
  filter: brightness(0.88) contrast(1.14) saturate(1.22);
}

.iposter-home .ip-hero--no-clouds .ip-hero-clouds {
  display: none !important;
}

.iposter-home .ip-hero--no-flare .ip-hero-flare {
  display: none !important;
}

.iposter-home .ip-hero--no-glow .ip-hero-bg::before {
  display: none !important;
}

.iposter-home .ip-hero--no-overlay .ip-hero-bg::after {
  display: none !important;
}

.iposter-home .ip-hero--no-floats .ip-hero-floats {
  display: none !important;
}

.iposter-home .ip-hero--no-floats .ip-hero-big-card,
.iposter-home .ip-hero--no-floats .ip-hero-mid-cards {
  display: none !important;
}

.iposter-home .ip-hero-bg::before {
  content: '';
  position: absolute;
  inset: -30% -10%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    112deg,
    transparent 40%,
    rgba(255, 248, 230, 0.04) 46%,
    rgba(255, 236, 190, 0.14) 50%,
    rgba(255, 248, 230, 0.04) 54%,
    transparent 60%
  );
  animation: ip-hero-glow-run 16s ease-in-out infinite;
}

.iposter-home .ip-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.94) 0%,
    rgba(255, 255, 255, 0.72) 36%,
    rgba(255, 255, 255, 0.18) 58%,
    rgba(15, 23, 42, 0.08) 100%
  );
  z-index: 1;
}

.iposter-home .ip-hero-clouds {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.iposter-home .ip-hero-cloud {
  position: absolute;
  display: block;
  background: rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  filter: blur(1px);
  opacity: 0.55;
  will-change: transform;
}

.iposter-home .ip-hero-cloud::before,
.iposter-home .ip-hero-cloud::after {
  content: '';
  position: absolute;
  background: inherit;
  border-radius: 50%;
}

.iposter-home .ip-hero-cloud--1 {
  top: 14%;
  left: 58%;
  width: 72px;
  height: 22px;
  animation: ip-cloud-drift-a 38s linear infinite;
}

.iposter-home .ip-hero-cloud--1::before {
  width: 34px;
  height: 34px;
  top: -16px;
  left: 10px;
}

.iposter-home .ip-hero-cloud--1::after {
  width: 42px;
  height: 42px;
  top: -20px;
  right: 8px;
}

.iposter-home .ip-hero-cloud--2 {
  top: 28%;
  left: 72%;
  width: 96px;
  height: 26px;
  opacity: 0.38;
  animation: ip-cloud-drift-b 52s linear infinite;
}

.iposter-home .ip-hero-cloud--2::before {
  width: 40px;
  height: 40px;
  top: -18px;
  left: 14px;
}

.iposter-home .ip-hero-cloud--2::after {
  width: 48px;
  height: 48px;
  top: -24px;
  right: 12px;
}

.iposter-home .ip-hero-cloud--3 {
  top: 8%;
  left: 82%;
  width: 58px;
  height: 18px;
  opacity: 0.32;
  animation: ip-cloud-drift-c 44s linear infinite reverse;
}

.iposter-home .ip-hero-cloud--3::before {
  width: 26px;
  height: 26px;
  top: -12px;
  left: 8px;
}

.iposter-home .ip-hero-cloud--3::after {
  width: 30px;
  height: 30px;
  top: -14px;
  right: 6px;
}

.iposter-home .ip-hero-cloud--4 {
  top: 42%;
  left: 64%;
  width: 110px;
  height: 28px;
  opacity: 0.28;
  animation: ip-cloud-drift-d 64s linear infinite;
}

.iposter-home .ip-hero-cloud--4::before {
  width: 44px;
  height: 44px;
  top: -20px;
  left: 18px;
}

.iposter-home .ip-hero-cloud--4::after {
  width: 52px;
  height: 52px;
  top: -26px;
  right: 16px;
}

@keyframes ip-cloud-drift-a {
  0% { transform: translateX(0); }
  100% { transform: translateX(-120px); }
}

@keyframes ip-cloud-drift-b {
  0% { transform: translateX(40px); }
  100% { transform: translateX(-160px); }
}

@keyframes ip-cloud-drift-c {
  0% { transform: translateX(-30px); }
  100% { transform: translateX(90px); }
}

@keyframes ip-cloud-drift-d {
  0% { transform: translateX(20px); }
  100% { transform: translateX(-140px); }
}

@media (prefers-reduced-motion: reduce) {
  .iposter-home .ip-hero-cloud {
    animation: none !important;
  }
  .iposter-home .ip-hero-flare-glow,
  .iposter-home .ip-hero-flare-orb {
    animation: none !important;
  }
  .iposter-home .ip-hero-bg::before {
    animation: none !important;
  }
  .iposter-home .ip-hero-float-card {
    animation: none !important;
  }
  .iposter-home .ip-hero-bg-layer {
    transition: none !important;
  }
}

.iposter-home .ip-hero-flare {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.iposter-home .ip-hero-flare-glow {
  position: absolute;
  top: 6%;
  right: 10%;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 236, 180, 0.28) 0%,
    rgba(255, 200, 120, 0.1) 38%,
    transparent 72%
  );
  filter: blur(10px);
  mix-blend-mode: screen;
  animation: ip-flare-pulse 9s ease-in-out infinite;
}

.iposter-home .ip-hero-flare-streak {
  position: absolute;
  top: 20%;
  right: 4%;
  width: min(52%, 420px);
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 240, 200, 0.08) 18%,
    rgba(255, 220, 160, 0.22) 42%,
    rgba(255, 200, 130, 0.1) 62%,
    transparent 100%
  );
  transform: rotate(-7deg);
  filter: blur(0.5px);
  opacity: 0.55;
  mix-blend-mode: screen;
}

.iposter-home .ip-hero-flare-orb {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.35) 0%,
    rgba(255, 210, 140, 0.12) 45%,
    transparent 72%
  );
  filter: blur(1.5px);
  mix-blend-mode: screen;
  opacity: 0.45;
}

.iposter-home .ip-hero-flare-orb--1 {
  top: 24%;
  right: 28%;
  width: 14px;
  height: 14px;
  animation: ip-flare-pulse 11s ease-in-out infinite 0.6s;
}

.iposter-home .ip-hero-flare-orb--2 {
  top: 31%;
  right: 18%;
  width: 9px;
  height: 9px;
  opacity: 0.32;
  animation: ip-flare-pulse 13s ease-in-out infinite 1.2s;
}

.iposter-home .ip-hero-flare-orb--3 {
  top: 18%;
  right: 14%;
  width: 6px;
  height: 6px;
  opacity: 0.28;
  animation: ip-flare-pulse 10s ease-in-out infinite 0.3s;
}

@keyframes ip-flare-pulse {
  0%, 100% { opacity: 0.42; transform: scale(1); }
  50% { opacity: 0.62; transform: scale(1.06); }
}

@keyframes ip-hero-glow-run {
  0%, 100% {
    transform: translateX(-14%) translateY(0);
    opacity: 0.45;
  }
  50% {
    transform: translateX(14%) translateY(-1.5%);
    opacity: 0.9;
  }
}

@keyframes ip-hero-float {
  0%, 100% {
    transform: translateY(0) rotate(var(--float-rotate, 0deg));
    box-shadow:
      0 14px 30px rgba(15, 23, 42, 0.18),
      0 4px 10px rgba(15, 23, 42, 0.08);
  }
  50% {
    transform: translateY(-16px) rotate(calc(var(--float-rotate, 0deg) + 2deg));
    box-shadow:
      0 26px 44px rgba(15, 23, 42, 0.24),
      0 10px 20px rgba(124, 58, 237, 0.14);
  }
}

@keyframes ip-hero-float-spin {
  0% {
    transform: translateY(0) rotate(var(--float-rotate, 0deg));
    box-shadow:
      0 14px 30px rgba(15, 23, 42, 0.18),
      0 4px 10px rgba(15, 23, 42, 0.08);
  }
  25% {
    transform: translateY(-12px) rotate(calc(var(--float-rotate, 0deg) + 90deg));
  }
  50% {
    transform: translateY(-16px) rotate(calc(var(--float-rotate, 0deg) + 180deg));
    box-shadow:
      0 26px 44px rgba(15, 23, 42, 0.24),
      0 10px 20px rgba(37, 99, 235, 0.16);
  }
  75% {
    transform: translateY(-12px) rotate(calc(var(--float-rotate, 0deg) + 270deg));
  }
  100% {
    transform: translateY(0) rotate(calc(var(--float-rotate, 0deg) + 360deg));
    box-shadow:
      0 14px 30px rgba(15, 23, 42, 0.18),
      0 4px 10px rgba(15, 23, 42, 0.08);
  }
}

.iposter-home .ip-hero-floats {
  position: absolute;
  left: 36%;
  right: 30%;
  top: 10%;
  bottom: 10%;
  z-index: 2;
  pointer-events: none;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 36px;
}

.iposter-home .ip-hero-float-card {
  position: relative;
  top: auto;
  right: auto;
  left: auto;
  width: 128px;
  height: 192px;
  border-radius: 14px;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.92);
  background: #fff;
  flex-shrink: 0;
  animation: ip-hero-float 8s ease-in-out infinite;
  will-change: transform, box-shadow;
  pointer-events: auto;
  text-decoration: none;
  color: inherit;
  display: block;
}

.iposter-home .ip-hero-float-card-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.iposter-home .ip-hero-float-card.has-thumb .ip-hero-float-card-art {
  background: #e2e8f0;
}

.iposter-home .ip-hero-float-card-art {
  position: absolute;
  inset: 0;
}

.iposter-home .ip-hero-float-card-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(15, 23, 42, 0.42) 100%);
}

.iposter-home .ip-hero-float-card-label {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 12px;
  z-index: 1;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.25;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.iposter-home .ip-hero-float-card--1 {
  --float-rotate: -5deg;
  z-index: 1;
  margin-top: 0;
  animation-delay: 0s;
}

.iposter-home .ip-hero-float-card--1 .ip-hero-float-card-art {
  background: linear-gradient(160deg, #7c3aed 0%, #ec4899 55%, #f97316 100%);
}

.iposter-home .ip-hero-float-card--2 {
  --float-rotate: 4deg;
  z-index: 2;
  margin-top: 32px;
  animation: ip-hero-float-spin 32s ease-in-out infinite;
  animation-delay: -2.6s;
}

.iposter-home .ip-hero-float-card--2 .ip-hero-float-card-art {
  background: linear-gradient(155deg, #2563eb 0%, #7c3aed 50%, #06b6d4 100%);
}

.iposter-home .ip-hero-float-card--3 {
  --float-rotate: -2deg;
  z-index: 4;
  width: 112px;
  height: 168px;
  margin-top: 0;
  opacity: 1;
  animation-delay: -5.2s;
}

.iposter-home .ip-hero-float-card--3 .ip-hero-float-card-art {
  background: linear-gradient(150deg, #059669 0%, #34d399 45%, #fbbf24 100%);
}

.iposter-home .ip-hero-mid-cards {
  position: absolute;
  left: max(520px, calc((100vw - min(1280px, 100vw - 48px)) / 2 + min(480px, 100%) + 20px));
  bottom: clamp(64px, 10%, 128px);
  z-index: 3;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}

.iposter-home .ip-hero-mid-card {
  pointer-events: auto;
  display: block;
  width: 200px;
  height: 80px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.92);
  background: #fff;
  box-shadow:
    0 12px 28px rgba(15, 23, 42, 0.18),
    0 4px 10px rgba(15, 23, 42, 0.08);
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.iposter-home .ip-hero-mid-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.iposter-home .ip-hero-mid-card--promo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: linear-gradient(135deg, #7c3aed 0%, #6366f1 55%, #4f46e5 100%);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.95);
}

.iposter-home .ip-hero-mid-card--upload {
  background: linear-gradient(135deg, #0891b2 0%, #06b6d4 55%, #0284c7 100%);
}

.iposter-home .ip-hero-mid-card-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.18);
}

.iposter-home .ip-hero-mid-card-icon svg {
  width: 18px;
  height: 18px;
}

.iposter-home .ip-hero-mid-card-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.iposter-home .ip-hero-mid-card-title {
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.iposter-home .ip-hero-mid-card-desc {
  font-size: 0.62rem;
  font-weight: 500;
  line-height: 1.25;
  opacity: 0.95;
}

.iposter-home .ip-hero-mid-card:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow:
    0 16px 34px rgba(15, 23, 42, 0.22),
    0 6px 14px rgba(124, 58, 237, 0.12);
}

.iposter-home .ip-hero-big-card {
  position: absolute;
  right: clamp(12px, 3.5vw, 52px);
  bottom: clamp(64px, 10%, 128px);
  z-index: 3;
  width: clamp(168px, 16vw, 248px);
  border-radius: 16px;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.92);
  background: #fff;
  box-shadow:
    0 18px 40px rgba(15, 23, 42, 0.22),
    0 6px 14px rgba(15, 23, 42, 0.1);
  pointer-events: auto;
  text-decoration: none;
  color: inherit;
  transform: rotate(3deg);
  animation: ip-hero-float 9s ease-in-out infinite;
  animation-delay: -3.5s;
  will-change: transform, box-shadow;
  display: block;
}

.iposter-home .ip-hero-big-card-art {
  position: relative;
}

.iposter-home .ip-hero-big-card-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(15, 23, 42, 0.55) 100%);
  pointer-events: none;
}

.iposter-home .ip-hero-big-card-art img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
}

.iposter-home .ip-hero-big-card-label {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 14px;
  z-index: 1;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
  line-height: 1.25;
}

.iposter-home .ip-hero-big-card-label strong {
  display: block;
  font-size: clamp(0.95rem, 1.2vw, 1.15rem);
  font-weight: 800;
  letter-spacing: 0.01em;
}

.iposter-home .ip-hero-big-card-label span {
  display: block;
  margin-top: 2px;
  font-size: clamp(0.68rem, 0.85vw, 0.78rem);
  font-weight: 600;
  opacity: 0.96;
}

.iposter-home .ip-hero-big-card:hover {
  transform: rotate(3deg) translateY(-4px) scale(1.02);
  box-shadow:
    0 22px 48px rgba(15, 23, 42, 0.26),
    0 8px 18px rgba(15, 23, 42, 0.12);
}

.iposter-home .ip-hero-inner {
  position: relative;
  z-index: 3;
}

.iposter-home .ip-hero-copy {
  max-width: 560px;
}

.iposter-home .ip-hero h1 {
  font-size: clamp(1.85rem, 3.2vw, 2.65rem);
  line-height: 1.15;
  font-weight: 700;
  margin: 0 0 14px;
  color: #1e293b;
}

.iposter-home .ip-hero-accent {
  color: var(--ip-purple);
}

.iposter-home .ip-hero-lead {
  margin: 0 0 22px;
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.65;
  max-width: 480px;
}

.iposter-home .ip-search {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: 520px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 5px 5px 5px 16px;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
}

.iposter-home .ip-search-icon {
  display: flex;
  color: #94a3b8;
  margin-right: 8px;
  flex-shrink: 0;
}

.iposter-home .ip-search input {
  flex: 1;
  border: none;
  outline: none;
  font: inherit;
  font-size: 0.9rem;
  min-width: 0;
  background: transparent;
  color: #334155;
}

.iposter-home .ip-search input::placeholder {
  color: #94a3b8;
}

.iposter-home .ip-search-btn {
  flex-shrink: 0;
  padding: 10px 22px;
  font-size: 0.88rem;
  border-radius: 999px;
}

.iposter-home .ip-popular-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.iposter-home .ip-popular-label {
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 500;
}

.iposter-home .ip-tag {
  border: none;
  background: rgba(255, 255, 255, 0.85);
  color: #64748b;
  font: inherit;
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}

.iposter-home .ip-tag:hover {
  color: var(--ip-purple);
  background: var(--ip-purple-soft);
}

/* legacy hero collage — unused */
.iposter-home .ip-hero-grid {
  display: none;
}

/* Categories bar */
.iposter-home .ip-categories {
  padding: 0;
  margin-top: -22px;
  position: relative;
  z-index: 5;
  scroll-margin-top: 88px;
}

.iposter-home .ip-categories .ip-container {
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--ip-border);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(6px);
}

.iposter-home .ip-cat-banner-grid--sections {
  flex-wrap: wrap;
  gap: 10px;
}

.iposter-home .ip-cat-banner-grid--types {
  flex-wrap: nowrap;
  gap: 10px;
  padding-bottom: 4px;
}

.iposter-home .ip-cat-type-card {
  position: relative;
  flex: 0 0 168px;
  width: 168px;
  height: 88px;
}

.iposter-home .ip-cat-type-card--sub {
  flex: 0 0 148px;
  width: 148px;
  height: 82px;
}

.iposter-home .ip-cat-type-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.08) 0%, rgba(15, 23, 42, 0.72) 100%);
  pointer-events: none;
}

.iposter-home .ip-cat-type-overlay {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 7px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 1px;
  pointer-events: none;
}

.iposter-home .ip-cat-type-label {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 1px 4px rgba(15, 23, 42, 0.45);
}

.iposter-home .ip-cat-type-count {
  font-size: 0.62rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 3px rgba(15, 23, 42, 0.4);
}

.iposter-home .ip-cat-type-overlay--sub .ip-cat-type-label {
  font-size: 0.66rem;
  -webkit-line-clamp: 2;
}

.iposter-home .ip-cat-section-card {
  flex: 0 0 168px;
  width: 168px;
  height: 80px;
}

.iposter-home .ip-cat-section-card .ip-cat-banner-fallback-label {
  font-size: 0.72rem;
  -webkit-line-clamp: 3;
}

.iposter-home .ip-cat-section--main {
  margin-bottom: 0;
}

.iposter-home .ip-cat-section--all {
  margin-bottom: 4px;
}

.iposter-home .ip-cat-section--grouped {
  padding-top: 10px;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
}

.iposter-home .ip-cat-section--grouped:first-of-type {
  border-top: none;
  padding-top: 0;
}

.iposter-home .ip-cat-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.iposter-home .ip-cat-section-count {
  font-size: 0.78rem;
  color: var(--ip-muted);
  white-space: nowrap;
}

.iposter-home .ip-cat-banner-grid--subs {
  flex-wrap: nowrap;
}

.iposter-home .ip-cat-banner-grid--subs .ip-cat-group-card {
  flex: 0 0 148px;
  width: 148px;
  height: 82px;
}

.iposter-home .ip-categories-sections {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.iposter-home .ip-cat-section-more {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ip-purple);
  white-space: nowrap;
  text-decoration: none;
}

.iposter-home .ip-cat-section-more:hover {
  text-decoration: underline;
}

.iposter-home .ip-cat-section-link {
  color: inherit;
  text-decoration: none;
}

.iposter-home .ip-cat-section-link:hover {
  color: var(--ip-purple);
}

.iposter-home a.ip-cat-banner-card {
  text-decoration: none;
  color: inherit;
}

.iposter-home .ip-category-group-page {
  min-height: 100vh;
  background: var(--ip-bg, #f8fafc);
}

.iposter-home .ip-category-group-hero {
  padding-bottom: 8px;
}

.iposter-home .ip-category-group-hero-banner {
  width: 100%;
  max-width: 720px;
  height: 140px;
  margin: 12px 0 16px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.iposter-home .ip-category-group-hero-banner img,
.iposter-home .ip-category-group-hero-banner .ip-cat-section-hero-fallback {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.iposter-home .ip-category-group-section {
  padding-top: 4px;
  padding-bottom: 48px;
}

.iposter-home .ip-category-asset-strip-section {
  padding: 4px 0 20px;
}

.iposter-home .ip-category-asset-strip-title {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 700;
}

.iposter-home .ip-category-asset-strip-sub {
  margin: 0 0 12px;
  font-size: 0.82rem;
  color: var(--ip-muted);
}

.iposter-home .ip-category-asset-strip {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.iposter-home .ip-category-asset-block-title {
  margin: 0 0 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ip-muted);
}

.iposter-home .ip-category-asset-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.iposter-home .ip-category-asset-thumb {
  margin: 0;
  flex: 0 0 148px;
  width: 148px;
}

.iposter-home .ip-category-asset-thumb img {
  display: block;
  width: 100%;
  height: 92px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--ip-border);
  background: #f1f5f9;
}

.iposter-home .ip-category-asset-thumb--element img {
  height: 92px;
  object-fit: contain;
  background: #fff;
}

.iposter-home .ip-category-asset-thumb figcaption {
  margin-top: 4px;
  font-size: 0.68rem;
  color: var(--ip-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.iposter-home .ip-category-section-page {
  min-height: 100vh;
  background: var(--ip-bg, #f8fafc);
}

.iposter-home .ip-category-section-hero {
  padding-bottom: 8px;
}

.iposter-home .ip-category-section-hero-banner {
  width: 100%;
  max-width: 720px;
  height: 140px;
  margin: 12px 0 16px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.iposter-home .ip-category-section-hero-banner img,
.iposter-home .ip-cat-section-hero-fallback {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.iposter-home .ip-category-subs-section {
  padding: 8px 0 48px;
}

.iposter-home .ip-category-subs-title {
  margin: 0 0 14px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ip-text, #0f172a);
}

.iposter-home .ip-cat-subs-page-grid {
  flex-wrap: wrap;
  gap: 12px;
  overflow-x: visible;
  padding-bottom: 8px;
}

.iposter-home .ip-cat-subs-page-grid .ip-cat-type-card--sub {
  flex: 0 0 168px;
  width: 168px;
  height: 88px;
}

.iposter-home .ip-categories--detail .ip-categories-sections {
  max-height: min(72vh, 720px);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
  scrollbar-width: thin;
}

.iposter-home .ip-cat-section-title {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ip-muted);
  letter-spacing: 0.01em;
}

.iposter-home .ip-cat-banner-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 6px;
  text-align: center;
}

.iposter-home .ip-cat-banner-fallback-label {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  text-shadow: 0 1px 3px rgba(15, 23, 42, 0.35);
}

.iposter-home .ip-cat-all-fallback {
  background: linear-gradient(160deg, #64748b, #475569);
}

.iposter-home .ip-cat-group-card .ip-cat-banner-fallback-label {
  font-size: 0.64rem;
}

.iposter-home .ip-cat-banner-grid {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding-bottom: 2px;
}

.iposter-home .ip-cat-banner-grid::-webkit-scrollbar {
  height: 5px;
}

.iposter-home .ip-cat-banner-grid::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.45);
  border-radius: 999px;
}

.iposter-home .ip-cat-banner-card {
  position: relative;
  flex: 0 0 128px;
  display: block;
  width: 128px;
  height: 72px;
  padding: 0;
  border: 1.5px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  background: #f1f5f9;
  cursor: pointer;
  scroll-snap-align: start;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.iposter-home .ip-cat-banner-card:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.1);
}

.iposter-home .ip-cat-banner-card.is-active {
  border-color: var(--ip-purple);
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.14), 0 6px 16px rgba(124, 58, 237, 0.12);
}

.iposter-home .ip-cat-banner-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
}

.iposter-home .ip-cat-banner-card .ip-cat-banner-bg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.iposter-home .ip-cat-banner-card .ip-cat-banner-element {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 34%;
  max-width: 44px;
  height: auto;
  max-height: 52%;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(15, 23, 42, 0.35));
  pointer-events: none;
  z-index: 2;
}

.iposter-home .ip-category-group-actions {
  margin: 10px 0 0;
}

.iposter-home .ip-btn-sm {
  padding: 8px 14px;
  font-size: 0.8125rem;
}

.iposter-home .ip-cat-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--ip-border);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  scrollbar-width: thin;
}

.iposter-home .ip-cat-item {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 72px;
  padding: 8px 10px;
  border: none;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  transition: background 0.15s;
}

.iposter-home .ip-cat-item:hover,
.iposter-home .ip-cat-item.is-active {
  background: #f5f3ff;
}

.iposter-home .ip-cat-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1rem;
  background: color-mix(in srgb, var(--cat-color, #94a3b8) 14%, white);
  color: var(--cat-color, #64748b);
}

.iposter-home .ip-cat-label {
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.25;
  color: #475569;
  white-space: nowrap;
}

.iposter-home .ip-cat-item.is-active .ip-cat-label {
  color: var(--ip-purple-dark);
}

/* Sections */
.iposter-home .ip-section {
  padding: 36px 0;
}

.iposter-home .ip-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.iposter-home .ip-section-head h2 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 700;
}

.iposter-home .ip-view-all {
  color: var(--ip-purple);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}

.iposter-home .ip-card-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

.iposter-home .ip-template-card {
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--ip-border);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  transition: transform 0.15s, box-shadow 0.15s;
  cursor: pointer;
}

.iposter-home .ip-template-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.1);
}

.iposter-home .ip-template-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #e2e8f0;
}

.iposter-home .ip-thumb-placeholder {
  width: 100%;
  aspect-ratio: 3 / 4;
  display: block;
  background: #e2e8f0;
}

.iposter-home .ip-template-card-body {
  padding: 12px 14px 14px;
}

.iposter-home .ip-template-card-body strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.iposter-home .ip-template-card-body span {
  color: var(--ip-muted);
  font-size: 0.82rem;
}

.iposter-home .ip-section-head-stack {
  align-items: flex-end;
}

.iposter-home .ip-section-sub {
  margin: 6px 0 0;
  color: var(--ip-muted);
  font-size: 0.92rem;
}

.iposter-home .ip-festival-section {
  padding-top: 28px;
}

/* Poster row — 183×278 cards, horizontal scroll */
.iposter-home .ip-poster-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

/* Templates browse page — full grid */
.iposter-home .ip-poster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 183px);
  gap: 16px;
  justify-content: flex-start;
}

.iposter-home .ip-poster-grid .ip-member-loading,
.iposter-home .ip-poster-grid .ip-member-empty {
  grid-column: 1 / -1;
}

.iposter-home .ip-templates-page {
  background: #f8fafc;
  min-height: 100vh;
}

.iposter-home .ip-templates-hero {
  padding: 24px 0 8px;
  background: #fff;
  border-bottom: 1px solid var(--ip-border);
}

.iposter-home .ip-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--ip-muted);
  margin-bottom: 14px;
}

.iposter-home .ip-breadcrumb a {
  color: var(--ip-purple);
  font-weight: 500;
}

.iposter-home .ip-breadcrumb a:hover {
  text-decoration: underline;
}

.iposter-home .ip-breadcrumb-sep {
  color: #cbd5e1;
}

.iposter-home .ip-templates-head h1 {
  margin: 0 0 6px;
  font-size: 1.65rem;
  font-weight: 700;
}

.iposter-home .ip-templates-sub {
  margin: 0 0 18px;
  color: var(--ip-muted);
  font-size: 0.92rem;
}

.iposter-home .ip-templates-search {
  max-width: 520px;
}

.iposter-home .ip-templates-categories {
  margin-top: 0;
  padding: 16px 0 0;
  background: #f8fafc;
}

/* ---- หน้าแรงบันดาลใจ ---- */

.iposter-home .ip-inspiration-page {
  background: #f8fafc;
  min-height: 100vh;
}

.iposter-home .ip-inspiration-hero {
  padding-bottom: 20px;
}

.iposter-home .ip-inspiration-intro {
  margin: 0 0 16px;
  max-width: 640px;
  color: var(--ip-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.iposter-home .ip-inspiration-intro strong {
  color: #059669;
  font-weight: 600;
}

.iposter-home .ip-inspiration-prompts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.iposter-home .ip-inspiration-prompts-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ip-muted);
  white-space: nowrap;
}

.iposter-home .ip-inspiration-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.iposter-home .ip-inspiration-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  color: #6366f1;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.22);
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}

.iposter-home .ip-inspiration-chip:hover {
  background: rgba(99, 102, 241, 0.14);
  border-color: rgba(99, 102, 241, 0.35);
}

.iposter-home .ip-inspiration-section {
  padding-top: 8px;
}

.iposter-home .ip-inspiration-card {
  display: flex;
  flex-direction: column;
}

.iposter-home .ip-inspiration-card-meta {
  padding: 8px 10px 10px;
  border-top: 1px solid var(--ip-border);
  background: #fff;
}

.iposter-home .ip-inspiration-card-author {
  display: block;
  font-size: 0.78rem;
  color: var(--ip-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.iposter-home .ip-inspiration-card-author::before {
  content: 'โดย ';
  opacity: 0.85;
}

.iposter-home .ip-templates-section {
  padding-top: 20px;
  padding-bottom: 56px;
}

.iposter-home .ip-poster-card {
  flex: 0 0 183px;
  width: 183px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s;
}

.iposter-home .ip-poster-card:hover {
  transform: translateY(-4px);
}

.iposter-home .ip-poster-thumb {
  width: 183px;
  height: 278px;
  border-radius: 12px;
  overflow: hidden;
  background: #f1f5f9;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.iposter-home .ip-poster-thumb img,
.iposter-home .ip-poster-placeholder {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
  background: #f8fafc;
}

.iposter-home .ip-poster-placeholder {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px;
  background: #e2e8f0;
}

.iposter-home .ip-poster-fallback-title {
  position: relative;
  z-index: 1;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 6px rgba(15, 23, 42, 0.35);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.iposter-home .ip-member-loading,
.iposter-home .ip-member-empty {
  flex: 1 1 100%;
  width: 100%;
  text-align: center;
  padding: 36px 16px;
  color: var(--ip-muted);
}

.iposter-home .ip-member-empty p {
  margin: 0 0 16px;
}

.iposter-home .ip-member-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.iposter-home .ip-btn-outline {
  background: #fff;
  color: var(--ip-text);
  border: 1px solid var(--ip-border);
}

.iposter-home .ip-popular-grid .ip-template-card {
  border: none;
  box-shadow: none;
  background: transparent;
}

.iposter-home .ip-popular-grid .ip-template-card img {
  border-radius: 14px;
  border: 1px solid var(--ip-border);
}

/* CTA */
.iposter-home .ip-cta {
  padding: 24px 0 48px;
}

.iposter-home .ip-cta-inner {
  border-radius: 24px;
  padding: 36px 40px;
  background: linear-gradient(90deg, #7c3aed 0%, #6366f1 55%, #4f46e5 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 20px 40px rgba(79, 70, 229, 0.25);
}

.iposter-home .ip-cta-inner h3 {
  margin: 0 0 8px;
  font-size: 1.5rem;
}

.iposter-home .ip-cta-inner p {
  margin: 0;
  opacity: 0.92;
  font-size: 1rem;
}

/* Features */
.iposter-home .ip-features {
  padding: 20px 0 56px;
  background: var(--ip-bg);
  border-top: 1px solid var(--ip-border);
}

.iposter-home .ip-features-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.iposter-home .ip-feature {
  text-align: center;
  padding: 8px 12px;
}

.iposter-home .ip-feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 16px;
  background: var(--ip-purple-soft);
  color: var(--ip-purple);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
}

.iposter-home .ip-feature strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
}

.iposter-home .ip-feature span {
  color: var(--ip-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

@media (max-width: 1100px) {
  .iposter-home .ip-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .iposter-home .ip-member-grid {
    grid-template-columns: repeat(auto-fill, minmax(183px, 183px));
    justify-content: center;
  }
  .iposter-home .ip-features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .iposter-home .ip-header-inner {
    flex-wrap: wrap;
    justify-content: center;
    height: auto;
    min-height: 64px;
    padding: 8px 0;
  }
  .iposter-home .ip-nav {
    order: 3;
    width: 100%;
  }
  .iposter-home .ip-hero {
    min-height: 300px;
    padding: 36px 0 48px;
  }
  .iposter-home .ip-hero-card-bar {
    position: relative;
    margin-top: 20px;
  }
  .iposter-home .ip-hero-card-bar .ip-container {
    padding-bottom: 0;
  }
  .iposter-home .ip-hero-card-bar-panel {
    width: 100%;
    border-radius: 14px;
  }
  .iposter-home .ip-hero-card-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 12px 14px;
  }
  .iposter-home .ip-hero-card-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 12px 14px 14px;
  }
  .iposter-home .ip-hero-bg {
    background-position: 70% center;
    filter: brightness(0.86) contrast(1.12) saturate(1.18);
  }
  .iposter-home .ip-hero-bg::after {
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.92) 0%,
      rgba(255, 255, 255, 0.62) 48%,
      rgba(255, 255, 255, 0.12) 100%
    );
  }
  .iposter-home .ip-hero-floats {
    display: none;
  }
  .iposter-home .ip-hero-big-card,
  .iposter-home .ip-hero-mid-cards {
    display: none;
  }
  .iposter-home .ip-categories {
    margin-top: -12px;
  }
  .iposter-home .ip-categories .ip-container {
    padding: 8px 10px;
  }
  .iposter-home .ip-cat-banner-card {
    flex-basis: 116px;
    width: 116px;
    height: 66px;
  }
  .iposter-home .ip-cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .iposter-home .ip-container {
    width: min(1200px, calc(100% - 24px));
  }
  .iposter-home .ip-poster-row {
    gap: 12px;
  }
  .iposter-home .ip-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .iposter-home .ip-features-grid {
    grid-template-columns: 1fr;
  }
  .iposter-home .ip-cat-banner-card {
    flex-basis: 108px;
    width: 108px;
    height: 62px;
  }
  .iposter-home .ip-header-actions .ip-link {
    display: none;
  }
  .iposter-home .ip-user-name {
    display: none;
  }
  .iposter-home .ip-user-menu-trigger {
    padding-right: 8px;
  }
}
