    /* Scope all styling to this page wrapper */
    .aipe-page {
      /* Theme fallbacks (aligns with app.css / video.css variables if present) */
      --aipe-bg: var(--vfs-bg-dark, var(--bs-body-bg, #070d19));
      --aipe-card: var(--vfs-bg-card, #0c1427);
      --aipe-elevated: var(--vfs-bg-elevated, #101d35);
      --aipe-input: var(--vfs-bg-input, #0a1222);
      --aipe-border: var(--vfs-border, var(--bs-border-color, #172340));
      --aipe-border-light: var(--vfs-border-light, rgba(30, 58, 95, 1));
      --aipe-text: var(--vfs-text, var(--bs-body-color, #d0d6e1));
      --aipe-muted: var(--vfs-text-muted, rgba(121, 135, 161, 1));

      --aipe-primary: var(--vfs-primary, var(--bs-primary, #6571ff));
      --aipe-primary-soft: var(--vfs-primary-soft, rgba(101, 113, 255, 0.15));
      --aipe-primary-glow: var(--vfs-primary-glow, rgba(101, 113, 255, 0.4));

      --aipe-accent: #8b5cf6;
      --aipe-gradient: linear-gradient(135deg, var(--aipe-primary) 0%, var(--aipe-accent) 100%);

      --aipe-radius-xl: 28px;
      --aipe-radius-lg: 22px;
      --aipe-radius-md: 16px;
      --aipe-radius-sm: 12px;

      position: relative;
      min-height: 100vh;
      padding: 2.25rem 1rem 4rem;
      overflow: hidden;
      color: var(--aipe-text);
      background:
        radial-gradient(900px 450px at 50% -10%, rgba(101, 113, 255, 0.12) 0%, transparent 60%),
        radial-gradient(700px 380px at 10% 30%, rgba(139, 92, 246, 0.10) 0%, transparent 60%),
        radial-gradient(650px 420px at 95% 70%, rgba(101, 113, 255, 0.08) 0%, transparent 65%);
      margin-top: -22px;
    }

    /* Ambient background “light effects” (matches screenshot vibe) */
    .aipe-bg-glow {
      position: fixed;
      inset: 0;
      pointer-events: none;
      z-index: 0;
      overflow: hidden;
    }

    .aipe-bg-glow::before,
    .aipe-bg-glow::after {
      content: "";
      position: absolute;
      width: 520px;
      height: 520px;
      border-radius: 50%;
      filter: blur(0);
      opacity: 1;
      transform: translateZ(0);
    }

    .aipe-bg-glow::before {
      top: -220px;
      left: -180px;
      background: radial-gradient(circle, rgba(101, 113, 255, 0.18) 0%, rgba(101, 113, 255, 0.05) 45%, transparent 72%);
      animation: aipeGlowDrift1 14s ease-in-out 2 alternate;
    }

    .aipe-bg-glow::after {
      bottom: -240px;
      right: -210px;
      background: radial-gradient(circle, rgba(139, 92, 246, 0.16) 0%, rgba(101, 113, 255, 0.04) 48%, transparent 75%);
      animation: aipeGlowDrift2 16s ease-in-out 2 alternate;
    }

    .aipe-bg-center {
      position: fixed;
      left: 50%;
      top: 26%;
      transform: translateX(-50%);
      width: 860px;
      height: 420px;
      background: radial-gradient(ellipse, rgba(101, 113, 255, 0.07) 0%, transparent 62%);
      pointer-events: none;
      z-index: 0;
      opacity: 0.9;
    }

    @keyframes aipeGlowDrift1 {
      0% { transform: translate(0, 0) scale(1); }
      100% { transform: translate(90px, 70px) scale(1.18); }
    }
    @keyframes aipeGlowDrift2 {
      0% { transform: translate(0, 0) scale(1); }
      100% { transform: translate(-70px, -50px) scale(1.12); }
    }

    /* Header */
    .aipe-header {
      text-align: center;
      position: relative;
      z-index: 1;
      margin-bottom: 2.25rem;
    }

    .aipe-header h1 {
      margin: 0 0 0.5rem;
      font-size: 2rem;
      font-weight: 800;
      letter-spacing: -0.03em;
      color: #fff;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0.65rem;
    }

    .aipe-title-star {
      width: 28px;
      height: 28px;
      color: rgba(255, 255, 255, 0.92);
      filter: drop-shadow(0 10px 20px rgba(101, 113, 255, 0.35));
      flex-shrink: 0;
    }

    .aipe-header p {
      margin: 0;
      font-size: 1rem;
      color: rgba(255, 255, 255, 0.72);
    }

    /* Main glass card */
    .aipe-card {
      position: relative;
      z-index: 1;
      max-width: 1120px;
      margin: 0 auto;
      border-radius: var(--aipe-radius-xl);
      border: 1px solid rgba(255, 255, 255, 0.08);
      background: linear-gradient(180deg, rgba(12, 20, 39, 0.76) 0%, rgba(12, 20, 39, 0.60) 100%);
      box-shadow:
        0 18px 80px rgba(0, 0, 0, 0.42),
        0 0 0 1px rgba(101, 113, 255, 0.05) inset;
      overflow: hidden;
    }

    .aipe-card-inner {
      display: grid;
      grid-template-columns: 380px 1fr;
      grid-template-areas: "left right";
      min-height: 610px;
    }

    @media (max-width: 992px) {
      .aipe-card-inner { grid-template-columns: 1fr; grid-template-areas: "right" "left"; min-height: auto; }
    }

    /* Left panel */
    .aipe-left {
      padding: 1.9rem 1.9rem 2rem;
      grid-area: left;
      border-right: 1px solid rgba(255, 255, 255, 0.06);
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, transparent 55%);
    }

    @media (max-width: 992px) {
      .aipe-left { border-right: none; border-bottom: none; border-top: 1px solid rgba(255, 255, 255, 0.06); }
    }

    .aipe-left-title {
      margin: 0 0 1rem;
      color: #fff;
      font-weight: 700;
      font-size: 1.05rem;
    }

    /* Upload box */
    .aipe-upload {
      position: relative;
      border-radius: var(--aipe-radius-lg);
      border: 2px dashed rgba(255, 255, 255, 0.14);
      background: rgba(255, 255, 255, 0.03);
      overflow: hidden;
      transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
      user-select: none;
    }

    .aipe-upload:hover {
      border-color: rgba(101, 113, 255, 0.42);
      background: rgba(101, 113, 255, 0.04);
    }

    .aipe-upload.is-dragover {
      border-color: rgba(101, 113, 255, 0.75);
      background: rgba(101, 113, 255, 0.08);
      transform: scale(1.005);
    }

    .aipe-upload-empty {
      min-height: 220px;
      padding: 1.65rem 1.35rem;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      gap: 0.7rem;
      cursor: pointer;
    }

    .aipe-upload-empty .aipe-upload-icon {
      width: 56px;
      height: 56px;
      border-radius: 14px;
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid rgba(255, 255, 255, 0.10);
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 0.25rem;
      position: relative;
      will-change: transform;
    }

    .aipe-upload-empty .aipe-upload-icon .aipe-upload-icon-img {
      width: 28px;
      height: 28px;
      color: rgba(255, 255, 255, 0.86);
      transform: translateX(-5px);
    }

    .aipe-upload-empty .aipe-upload-icon .aipe-upload-icon-plus {
      width: 16px;
      height: 16px;
      position: absolute;
      right: 2px;
      top: 50%;
      transform: translateY(-50%);
      color: rgba(255, 255, 255, 0.92);
      opacity: 0.9;
    }

    @keyframes aipeBounce {
      0%   { transform: translateY(0); animation-timing-function: cubic-bezier(0.33, 0, 0.66, 0); }
      12%  { transform: translateY(16px); animation-timing-function: cubic-bezier(0.34, 1, 0.64, 1); }
      24%  { transform: translateY(0); animation-timing-function: cubic-bezier(0.33, 0, 0.66, 0); }
      36%  { transform: translateY(10px); animation-timing-function: cubic-bezier(0.34, 1, 0.64, 1); }
      48%  { transform: translateY(0); animation-timing-function: cubic-bezier(0.33, 0, 0.66, 0); }
      57%  { transform: translateY(5px); animation-timing-function: cubic-bezier(0.34, 1, 0.64, 1); }
      66%  { transform: translateY(0); animation-timing-function: cubic-bezier(0.33, 0, 0.66, 0); }
      73%  { transform: translateY(2px); animation-timing-function: cubic-bezier(0.34, 1, 0.64, 1); }
      80%  { transform: translateY(0); }
      100% { transform: translateY(0); }
    }

    @media (prefers-reduced-motion: no-preference) {
      .aipe-upload-empty .aipe-upload-icon {
        animation: aipeBounce 2.4s ease-in-out 2;
      }
    }

    .aipe-upload-empty .aipe-upload-title {
      font-size: 1.05rem;
      font-weight: 700;
      color: #fff;
      letter-spacing: -0.01em;
    }

    .aipe-upload-empty .aipe-upload-sub {
      font-size: 0.82rem;
      color: rgba(255, 255, 255, 0.65);
    }

    .aipe-upload-empty .aipe-upload-sub strong {
      color: rgba(255, 255, 255, 0.9);
      font-weight: 700;
    }

    .aipe-kbd {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 0.14rem 0.5rem;
      border-radius: 9px;
      border: 1px solid rgba(255, 255, 255, 0.14);
      background: rgba(255, 255, 255, 0.07);
      font-size: 0.78rem;
      font-weight: 700;
      color: rgba(255, 255, 255, 0.86);
      margin: 0 0.1rem;
      line-height: 1.2;
    }

    /* Split mode (after first image) */
    .aipe-upload-split {
      display: none;
      grid-template-columns: 1fr 1fr;
      min-height: 220px;
    }

    .aipe-upload.has-first .aipe-upload-empty { display: none; }
    .aipe-upload.has-first .aipe-upload-split { display: grid; }

    .aipe-upload-slot {
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 220px;
      cursor: pointer;
      overflow: hidden;
    }

    .aipe-upload-slot + .aipe-upload-slot {
      border-left: 1px dashed rgba(255, 255, 255, 0.12);
    }

    .aipe-upload-slot img {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .aipe-slot-plus {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.6rem;
      text-align: center;
      padding: 1.25rem;
      z-index: 1;
    }

    .aipe-plus-circle {
      width: 56px;
      height: 56px;
      border-radius: 50%;
      border: 2px dashed rgba(255, 255, 255, 0.16);
      background: rgba(255, 255, 255, 0.04);
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.25s ease;
    }

    .aipe-upload-slot:hover .aipe-plus-circle {
      border-color: rgba(101, 113, 255, 0.55);
      background: rgba(101, 113, 255, 0.08);
      box-shadow: 0 10px 26px rgba(101, 113, 255, 0.14);
      transform: translateY(-1px);
    }

    .aipe-plus-circle svg {
      width: 24px;
      height: 24px;
      color: rgba(255, 255, 255, 0.65);
      transition: color 0.25s ease;
    }

    .aipe-upload-slot:hover .aipe-plus-circle svg {
      color: rgba(255, 255, 255, 0.92);
    }

    .aipe-slot-hint {
      font-size: 0.8rem;
      color: rgba(255, 255, 255, 0.6);
    }

    /* Remove button on previews */
    .aipe-remove {
      position: absolute;
      top: 10px;
      right: 10px;
      width: 30px;
      height: 30px;
      border-radius: 50%;
      border: 1px solid rgba(255, 255, 255, 0.18);
      background: rgba(0, 0, 0, 0.55);
      backdrop-filter: blur(6px);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 2;
      opacity: 0;
      transition: opacity 0.2s ease, background 0.2s ease;
    }

    .aipe-upload-slot:hover .aipe-remove { opacity: 1; }
    .aipe-remove:hover { background: rgba(255, 51, 102, 0.75); }

    .aipe-remove svg { width: 14px; height: 14px; color: #fff; }

    /* Inputs */
    .aipe-textarea {
      width: 100%;
      margin-top: 1rem;
      min-height: 132px;
      padding: 0.9rem 1rem;
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid rgba(255, 255, 255, 0.10);
      border-radius: var(--aipe-radius-sm);
      color: rgba(255, 255, 255, 0.86);
      font-size: 0.92rem;
      line-height: 1.5;
      resize: vertical;
      transition: border-color 0.25s ease, box-shadow 0.25s ease;
    }

    .aipe-textarea::placeholder { color: rgba(255, 255, 255, 0.42); }
    .aipe-textarea:focus {
      outline: none;
      border-color: rgba(101, 113, 255, 0.65);
      box-shadow: 0 0 0 4px rgba(101, 113, 255, 0.16);
    }


    /* Optional toggle */
    .aipe-option {
      margin-top: 0.85rem;
      padding: 0.7rem 0.85rem;
      border-radius: 14px;
      border: 1px solid rgba(255, 255, 255, 0.08);
      background: rgba(0, 0, 0, 0.14);
    }

    .aipe-option-label {
      display: flex;
      align-items: center;
      gap: 0.6rem;
      margin: 0;
      cursor: pointer;
      user-select: none;
    }

    .aipe-option-label input[type="checkbox"] {
      width: 18px;
      height: 18px;
      accent-color: var(--aipe-primary);
      cursor: pointer;
      flex-shrink: 0;
    }

    .aipe-option-text {
      font-size: 0.88rem;
      font-weight: 700;
      color: rgba(255, 255, 255, 0.86);
    }

    .aipe-option-tag {
      margin-left: auto;
      font-size: 0.72rem;
      font-weight: 800;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      padding: 0.18rem 0.55rem;
      border-radius: 999px;
      border: 1px solid rgba(255, 255, 255, 0.14);
      background: rgba(255, 255, 255, 0.06);
      color: rgba(255, 255, 255, 0.65);
    }

    /* Model selector */
    .aipe-models {
      margin-top: 1.25rem;
    }

    .aipe-models-label {
      font-size: 1.05rem;
      font-weight: 700;
      color: #fff;
      margin-bottom: 0.75rem;
    }

    .aipe-model-pills {
      display: flex;
      gap: 0.55rem;
      padding: 0.45rem;
      border-radius: 16px;
      border: 1px solid rgba(255, 255, 255, 0.10);
      background: rgba(255, 255, 255, 0.03);
    }

    .aipe-model-pill {
      flex: 1;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0.45rem;
      padding: 0.55rem 0.8rem;
      border-radius: 12px;
      border: 1px solid rgba(255, 255, 255, 0.10);
      background: transparent;
      color: rgba(255, 255, 255, 0.72);
      font-weight: 700;
      font-size: 0.88rem;
      cursor: pointer;
      transition: all 0.22s ease;
      user-select: none;
    }

    .aipe-model-pill:hover {
      border-color: rgba(101, 113, 255, 0.35);
      color: #fff;
      transform: translateY(-1px);
    }

    .aipe-model-pill.active {
      background: var(--aipe-gradient);
      border-color: rgba(101, 113, 255, 0.55);
      color: #fff;
      box-shadow: 0 10px 26px rgba(101, 113, 255, 0.22);
      transform: translateY(-1px);
    }

    .aipe-model-pill svg {
      width: 14px;
      height: 14px;
      opacity: 0.85;
    }

    .aipe-model-pill.locked {
      opacity: 0.55;
      cursor: not-allowed;
    }
    .aipe-model-pill.locked:hover { transform: none; border-color: rgba(255,255,255,0.10); }

    /* Generate button */
    .aipe-generate-btn {
      width: 100%;
      margin-top: 1.25rem;
      padding: 0.9rem 1.1rem;
      border-radius: 16px;
      border: none;
      background: var(--aipe-gradient);
      color: #fff;
      font-size: 1rem;
      font-weight: 800;
      letter-spacing: 0.01em;
      cursor: pointer;
      transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
      box-shadow: 0 10px 28px rgba(101, 113, 255, 0.25);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0.6rem;
    }

    .aipe-generate-btn:hover:not(:disabled) {
      transform: translateY(-2px);
      box-shadow: 0 14px 34px rgba(101, 113, 255, 0.32);
    }

    .aipe-generate-btn:disabled {
      opacity: 0.38;
      cursor: not-allowed;
      transform: none;
      box-shadow: none;
    }

    /* Tiny spinner (used inside buttons) */
    .aipe-spinner {
      width: 20px;
      height: 20px;
      border-radius: 50%;
      border: 2px solid rgba(255, 255, 255, 0.25);
      border-top-color: rgba(255, 255, 255, 0.9);
      animation: aipeSpin 0.9s linear infinite;
    }

    @keyframes aipeSpin { to { transform: rotate(360deg); } }

    /* Pro tip text (matches screenshot placement) */
    .aipe-tip {
      margin: 1.1rem 0 0;
      font-size: 0.78rem;
      color: rgba(255, 255, 255, 0.55);
      line-height: 1.6;
      text-align: center;
    }
    .aipe-tip strong { color: rgba(255, 255, 255, 0.75); }

    /* Consent row (kept, but visually lightweight) */
    .aipe-consent {
      margin-top: 1rem;
      padding: 0.75rem 0.85rem;
      border-radius: 14px;
      border: 1px solid rgba(255, 255, 255, 0.08);
      background: rgba(0, 0, 0, 0.18);
      display: flex;
      gap: 0.6rem;
      align-items: flex-start;
      color: rgba(255, 255, 255, 0.62);
      font-size: 0.78rem;
      line-height: 1.5;
    }
    .aipe-consent input[type="checkbox"] {
      margin-top: 3px;
      width: 16px;
      height: 16px;
      accent-color: var(--aipe-primary);
      flex-shrink: 0;
      cursor: pointer;
    }

    /* Right panel */
    .aipe-right {
      padding: 1.9rem;
      grid-area: right;
      position: relative;
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(0, 0, 0, 0.05) 100%);
      display: flex;
      flex-direction: column;
    }


    /* Showcase (video placeholder + example uses) */
    .aipe-showcase {
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 1rem;
      min-height: 520px;
    }

    /* On mobile, show the video first and keep it compact so it's visible without scrolling */
    @media (max-width: 992px) {
      .aipe-showcase { min-height: auto; }
      .aipe-feature-video-wrap { min-height: 280px; }
    }

    @media (max-width: 520px) {
      .aipe-feature-video-wrap { min-height: 240px; }
    }

    .aipe-feature-card {
      flex: 1;
      border-radius: 22px;
      overflow: hidden;
      border: 1px solid rgba(255, 255, 255, 0.10);
      background: rgba(0, 0, 0, 0.30);
      box-shadow: 0 14px 55px rgba(0, 0, 0, 0.45);
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 0.9rem;
    }

    .aipe-feature-video-wrap {
      position: relative;
      width: 100%;
      height: 100%;
      min-height: 360px;
      border-radius: 18px;
      overflow: hidden;
      border: 1px solid rgba(255, 255, 255, 0.10);
      background:
        radial-gradient(800px 420px at 50% -10%, rgba(101, 113, 255, 0.14) 0%, transparent 60%),
        radial-gradient(700px 380px at 12% 85%, rgba(139, 92, 246, 0.12) 0%, transparent 62%),
        rgba(0, 0, 0, 0.40);
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .aipe-feature-video {
      height: 100%;
      width: auto;
      max-width: 100%;
      object-fit: cover;
      border-radius: 14px;
      box-shadow: 0 20px 50px rgba(0, 0, 0, 0.40);
      background: rgba(0, 0, 0, 0.20);
    }

    .aipe-feature-fallback {
      position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 1rem;
      background: rgba(0, 0, 0, 0.28);
      backdrop-filter: blur(4px);
      transition: opacity 0.25s ease;
    }

    .aipe-feature-video-wrap.is-ready .aipe-feature-fallback {
      opacity: 0;
      pointer-events: none;
    }

    /* Replay button (shows after the showcase finishes) */
    .aipe-video-replay {
      position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      border: 0;
      padding: 0;
      background: rgba(0, 0, 0, 0.24);
      backdrop-filter: blur(2px);
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.25s ease;
      z-index: 3;
    }

    .aipe-video-replay.is-visible {
      opacity: 1;
      pointer-events: auto;
      cursor: pointer;
    }

    .aipe-video-replay-circle {
      width: 62px;
      height: 62px;
      border-radius: 999px;
      border: 1px solid rgba(255, 255, 255, 0.18);
      background: rgba(0, 0, 0, 0.55);
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
      transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    }

    .aipe-video-replay:hover .aipe-video-replay-circle {
      transform: scale(1.06);
      background: rgba(101, 113, 255, 0.22);
      border-color: rgba(101, 113, 255, 0.35);
    }

    .aipe-video-replay svg {
      width: 22px;
      height: 22px;
      color: rgba(255, 255, 255, 0.92);
      margin-left: 2px;
    }

    @media (prefers-reduced-motion: reduce) {
      .aipe-video-replay { transition: none; }
      .aipe-video-replay-circle { transition: none; }
    }

    .aipe-feature-fallback-inner {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.6rem;
      text-align: center;
      color: rgba(255, 255, 255, 0.78);
    }

    .aipe-feature-fallback-inner svg {
      width: 34px;
      height: 34px;
      color: rgba(255, 255, 255, 0.78);
    }

    .aipe-feature-fallback-title {
      font-size: 0.95rem;
      font-weight: 800;
      color: #fff;
    }

    .aipe-examples-card {
      border-radius: 18px;
      border: 1px solid rgba(255, 255, 255, 0.10);
      background: rgba(0, 0, 0, 0.18);
      padding: 1rem;
    }

    .aipe-examples-head {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 1rem;
      margin-bottom: 0.85rem;
    }

    .aipe-examples-title {
      font-weight: 900;
      color: #fff;
      font-size: 0.98rem;
      letter-spacing: -0.01em;
    }

    .aipe-examples-sub {
      color: rgba(255, 255, 255, 0.62);
      font-size: 0.82rem;
      font-weight: 700;
    }

    .aipe-examples-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 0.75rem;
    }

    @media (max-width: 520px) {
      .aipe-examples-grid { grid-template-columns: 1fr; }
    }

    .aipe-example-item {
      display: flex;
      gap: 0.75rem;
      padding: 0.75rem;
      border-radius: 16px;
      border: 1px solid rgba(255, 255, 255, 0.10);
      background: rgba(255, 255, 255, 0.04);
      transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
    }

    .aipe-example-item:hover {
      transform: translateY(-2px);
      border-color: rgba(101, 113, 255, 0.35);
      background: rgba(101, 113, 255, 0.08);
    }

    .aipe-example-img {
      width: 108px;
      height: 108px;
      border-radius: 14px;
      overflow: hidden;
      flex-shrink: 0;
      border: 1px solid rgba(255, 255, 255, 0.10);
      background: rgba(0, 0, 0, 0.25);
    }

    .aipe-example-img img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .aipe-example-text { min-width: 0; }

    .aipe-example-name {
      font-weight: 900;
      color: #fff;
      font-size: 0.9rem;
      margin-bottom: 0.15rem;
      letter-spacing: -0.01em;
    }

    .aipe-example-prompt {
      font-size: 0.78rem;
      color: rgba(255, 255, 255, 0.62);
      line-height: 1.35;
    }

    .aipe-demo-card {
      position: relative;
      border-radius: 22px;
      overflow: hidden;
      border: 1px solid rgba(255, 255, 255, 0.10);
      background: #000;
      box-shadow: 0 14px 55px rgba(0, 0, 0, 0.45);
      flex: 1;
      min-height: 520px;
    }

    .aipe-demo-split {
      position: absolute;
      inset: 0;
      display: grid;
      grid-template-columns: 1fr 1fr;
    }

    .aipe-demo-pane {
      position: relative;
      overflow: hidden;
    }

    .aipe-demo-pane img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      filter: contrast(1.02);
    }

    .aipe-demo-pane + .aipe-demo-pane {
      border-left: 1px solid rgba(255, 255, 255, 0.08);
    }

    .aipe-demo-label {
      position: absolute;
      top: 18px;
      padding: 0.45rem 1.15rem;
      border-radius: 999px;
      border: 1px solid rgba(255, 255, 255, 0.55);
      color: #fff;
      background: rgba(0, 0, 0, 0.35);
      backdrop-filter: blur(6px);
      font-weight: 800;
      font-size: 0.95rem;
      letter-spacing: -0.01em;
      z-index: 2;
    }

    .aipe-demo-pane:first-child .aipe-demo-label { left: 18px; }
    .aipe-demo-pane:last-child .aipe-demo-label { right: 18px; }

    /* Floating “combine” chip + dashed arrow (approx like screenshot) */
    .aipe-demo-float {
      position: absolute;
      left: 16%;
      bottom: 38px;
      transform: translateX(-50%);
      z-index: 3;
      display: flex;
      align-items: center;
      gap: 0.7rem;
      padding: 0.55rem 0.75rem;
      border-radius: 16px;
      background: rgba(255, 255, 255, 0.92);
      box-shadow: 0 18px 40px rgba(0,0,0,0.35);
    }

    .aipe-demo-thumb {
      width: 44px;
      height: 44px;
      border-radius: 12px;
      background: rgba(101, 113, 255, 0.15);
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      border: 1px solid rgba(0, 0, 0, 0.08);
    }

    .aipe-demo-thumb svg { width: 22px; height: 22px; color: rgba(0,0,0,0.65); }

    .aipe-demo-plus {
      font-weight: 900;
      color: rgba(0,0,0,0.55);
      font-size: 1.1rem;
      line-height: 1;
    }

    .aipe-demo-arrow {
      position: absolute;
      left: 26%;
      bottom: 0;
      width: 52%;
      height: 180px;
      pointer-events: none;
      z-index: 2;
      opacity: 0.85;
    }

    /* Result area (shown after generation starts) */
    .aipe-result-area { display: none; }
    .aipe-result-area.visible { display: block; animation: aipeFadeIn 0.35s ease; }

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

    .aipe-status-box {
      min-height: 520px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      gap: 1rem;
      padding: 2rem 1rem;
    }

    .aipe-status-text {
      font-size: 0.95rem;
      color: rgba(255, 255, 255, 0.82);
      line-height: 1.6;
      max-width: 520px;
    }

    .aipe-progress-track {
      width: 100%;
      max-width: 320px;
      height: 6px;
      border-radius: 999px;
      overflow: hidden;
      background: rgba(255, 255, 255, 0.12);
      margin: 0.9rem auto 0.35rem;
    }

    .aipe-progress-fill {
      height: 100%;
      width: 0%;
      border-radius: 999px;
      background: var(--aipe-gradient);
      transition: width 0.4s ease;
      position: relative;
    }

    .aipe-progress-fill::after {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
      animation: aipeShimmer 1.4s infinite linear;
    }

    @keyframes aipeShimmer {
      from { transform: translateX(-100%); }
      to { transform: translateX(100%); }
    }

    .aipe-progress-pct {
      font-size: 0.78rem;
      font-weight: 800;
      color: rgba(255, 255, 255, 0.6);
    }

    .aipe-error-box {
      padding: 1.15rem;
      background: rgba(255, 51, 102, 0.10);
      border: 1px solid rgba(255, 51, 102, 0.28);
      border-radius: 14px;
      color: rgba(255, 51, 102, 0.95);
      font-size: 0.92rem;
      line-height: 1.6;
    }
    .aipe-error-box b { color: #fff; }

    .aipe-result-image-wrap {
      border-radius: 18px;
      overflow: hidden;
      border: 1px solid rgba(255, 255, 255, 0.10);
      background: rgba(0,0,0,0.25);
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    }

    .aipe-result-image-wrap img {
      width: 100%;
      height: auto;
      display: block;
      cursor: pointer;
      transition: transform 0.28s ease;
    }
    .aipe-result-image-wrap img:hover { transform: scale(1.015); }

    .aipe-result-actions {
      display: flex;
      flex-direction: column;
      gap: 0.7rem;
      margin-top: 1.2rem;
      align-items: stretch;
    }

    .aipe-download-btn,
    .aipe-secondary-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0.55rem;
      padding: 0.8rem 1rem;
      border-radius: 16px;
      text-decoration: none;
      font-weight: 800;
      border: 1px solid rgba(255, 255, 255, 0.10);
      transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
    }

    .aipe-download-btn {
      background: var(--aipe-gradient);
      color: #fff;
      box-shadow: 0 14px 30px rgba(101, 113, 255, 0.22);
      border-color: rgba(101, 113, 255, 0.35);
    }
    .aipe-download-btn:hover {
      color: #fff;
      transform: translateY(-2px);
      box-shadow: 0 18px 40px rgba(101, 113, 255, 0.30);
      text-decoration: none;
    }

    .aipe-secondary-btn {
      background: rgba(255, 255, 255, 0.05);
      color: rgba(255, 255, 255, 0.86);
    }
    .aipe-secondary-btn:hover {
      color: #fff;
      transform: translateY(-2px);
      border-color: rgba(101, 113, 255, 0.35);
      background: rgba(101, 113, 255, 0.10);
    }

    .aipe-result-notice {
      margin: 0.2rem 0 0;
      text-align: center;
      font-size: 0.78rem;
      color: rgba(255, 255, 255, 0.55);
      line-height: 1.5;
    }

    .aipe-result-notice u { color: rgba(251, 188, 6, 0.95); }

    /* Guest alert container spacing */
    .aipe-guest-alert {
      max-width: 1120px;
      margin: 0 auto 1.25rem;
      position: relative;
      z-index: 2;
    }

    /* My creations strip (below the main feature card) */
    .aipe-creations-section {
      max-width: 1120px;
      margin: 1.35rem auto 0;
      position: relative;
      z-index: 1;
      border-radius: var(--aipe-radius-xl);
      border: 1px solid rgba(255, 255, 255, 0.08);
      background: linear-gradient(180deg, rgba(12, 20, 39, 0.60) 0%, rgba(12, 20, 39, 0.40) 100%);
      box-shadow:
        0 18px 70px rgba(0, 0, 0, 0.30),
        0 0 0 1px rgba(101, 113, 255, 0.04) inset;
      padding: 1.1rem 1.2rem 1.2rem;
      overflow: hidden;
    }

    /* Hidden until the first creation exists (so the page stays clean for new users) */
    .aipe-creations-section.is-hidden { display: none; }

    .aipe-creations-section::before {
      content: "";
      position: absolute;
      inset: 0;
      background: radial-gradient(ellipse at top left, rgba(101, 113, 255, 0.10) 0%, transparent 55%);
      pointer-events: none;
      opacity: 0.9;
    }

    .aipe-creations-header {
      position: relative;
      z-index: 1;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
      margin-bottom: 0.9rem;
    }

    .aipe-creations-title {
      display: flex;
      align-items: center;
      gap: 0.55rem;
      font-size: 1.05rem;
      font-weight: 900;
      color: #fff;
      letter-spacing: -0.01em;
      margin: 0;
    }

    .aipe-creations-title svg {
      width: 18px;
      height: 18px;
      color: rgba(255, 255, 255, 0.85);
      opacity: 0.9;
    }

    .aipe-view-all {
      position: relative;
      z-index: 1;
      display: inline-flex;
      align-items: center;
      gap: 0.45rem;
      padding: 0.5rem 0.8rem;
      border-radius: 14px;
      border: 1px solid rgba(255, 255, 255, 0.12);
      background: rgba(255, 255, 255, 0.04);
      color: rgba(255, 255, 255, 0.82);
      font-weight: 900;
      font-size: 0.82rem;
      text-decoration: none;
      transition: all 0.25s ease;
      white-space: nowrap;
    }

    .aipe-view-all:hover {
      color: #fff;
      background: rgba(101, 113, 255, 0.10);
      border-color: rgba(101, 113, 255, 0.35);
      transform: translateY(-1px);
      text-decoration: none;
    }

    .aipe-creations-strip {
      position: relative;
      z-index: 1;
      display: grid;
      grid-auto-flow: column;
      grid-auto-columns: 98px;
      grid-template-rows: repeat(1, 98px);
      gap: 0.75rem;
      overflow-x: auto;
      overflow-y: hidden;
      padding-bottom: 0.35rem;
      scroll-snap-type: x mandatory;
      -webkit-overflow-scrolling: touch;
      align-content: start;
    }

    .aipe-creations-strip::-webkit-scrollbar { height: 8px; }
    .aipe-creations-strip::-webkit-scrollbar-track { background: rgba(255,255,255,0.06); border-radius: 999px; }
    .aipe-creations-strip::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.16); border-radius: 999px; }
    .aipe-creations-strip::-webkit-scrollbar-thumb:hover { background: rgba(101,113,255,0.35); }

    .aipe-creation-tile {
      width: 98px;
      height: 98px;
      flex: 0 0 auto;
      border-radius: 18px;
      overflow: hidden;
      border: 1px solid rgba(255, 255, 255, 0.10);
      background: rgba(0, 0, 0, 0.28);
      position: relative;
      scroll-snap-align: start;
      transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    }

    .aipe-creation-tile:hover {
      transform: translateY(-2px);
      border-color: rgba(101, 113, 255, 0.35);
      box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
    }

    .aipe-creation-open {
      width: 100%;
      height: 100%;
      border: 0;
      padding: 0;
      margin: 0;
      background: transparent;
      display: block;
      cursor: pointer;
    }
    .aipe-creation-open:focus { outline: none; }
    .aipe-creation-open:focus-visible {
      box-shadow: 0 0 0 4px rgba(101, 113, 255, 0.22);
      border-radius: 18px;
    }

    .aipe-creation-tile img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .aipe-creation-processing {
      width: 100%;
      height: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 0.55rem;
      text-align: center;
      color: rgba(255, 255, 255, 0.66);
      font-weight: 900;
      font-size: 0.72rem;
      letter-spacing: 0.10em;
      text-transform: uppercase;
      background:
        repeating-linear-gradient(
          -45deg,
          rgba(101, 113, 255, 0.06),
          rgba(101, 113, 255, 0.06) 10px,
          rgba(255, 255, 255, 0.02) 10px,
          rgba(255, 255, 255, 0.02) 20px
        );
    }

    .aipe-creation-processing .dot {
      width: 28px;
      height: 28px;
      border-radius: 50%;
      border: 3px solid rgba(255, 255, 255, 0.18);
      border-top-color: rgba(255, 255, 255, 0.75);
      animation: aipeSpin 0.9s linear infinite;
    }

    /* ──────────────────────────────────────────────────────────────
       Small credit cost label (auth only)
       ────────────────────────────────────────────────────────────── */
    .aipe-credit-cost {
      display: flex;
      align-items: center;
      gap: 0.55rem;
      margin: 0.85rem 0 0.85rem;
      padding: 0.6rem 0.75rem;
      border-radius: 14px;
      border: 1px solid rgba(255, 255, 255, 0.10);
      background: rgba(255, 255, 255, 0.04);
      color: rgba(255, 255, 255, 0.72);
      font-size: 0.82rem;
      line-height: 1.25;
    }
    .aipe-credit-cost svg {
      width: 18px;
      height: 18px;
      flex: 0 0 auto;
      opacity: 0.9;
    }
    .aipe-credit-cost strong {
      color: #fff;
      font-weight: 900;
    }

    /* ──────────────────────────────────────────────────────────────
       SEO / Informational content (guest only)
       ────────────────────────────────────────────────────────────── */
    .aipe-seo-section {
      max-width: 1120px;
      margin: 2.5rem auto 0;
      position: relative;
      z-index: 1;
    }
    .aipe-seo-card {
      border-radius: var(--aipe-radius-xl);
      border: 1px solid rgba(255, 255, 255, 0.08);
      background: linear-gradient(180deg, rgba(12, 20, 39, 0.70) 0%, rgba(12, 20, 39, 0.52) 100%);
      box-shadow: 0 18px 80px rgba(0, 0, 0, 0.35);
      overflow: hidden;
    }
    .aipe-seo-title {
      margin: 0 0 0.9rem;
      font-size: 1.65rem;
      font-weight: 900;
      letter-spacing: -0.03em;
      color: #fff;
    }
    .aipe-seo-lead {
      margin: 0;
      color: rgba(255, 255, 255, 0.75);
      font-size: 0.98rem;
      line-height: 1.75;
    }
    .aipe-seo-nav {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
      margin: 1.25rem 0 1.4rem;
    }
    .aipe-seo-nav .btn {
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid rgba(255, 255, 255, 0.10);
      color: rgba(255, 255, 255, 0.86);
      padding: 0.45rem 0.75rem;
      border-radius: 999px;
      font-weight: 800;
      font-size: 0.82rem;
      line-height: 1;
      text-decoration: none;
    }
    .aipe-seo-nav .btn:hover {
      border-color: rgba(101, 113, 255, 0.36);
      background: rgba(101, 113, 255, 0.06);
      color: #fff;
    }
    .aipe-seo-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1rem;
      margin-bottom: 1.2rem;
    }
    @media (max-width: 992px) {
      .aipe-seo-grid { grid-template-columns: 1fr; }
    }
    .aipe-seo-feature {
      padding: 1.05rem 1.05rem;
      border-radius: var(--aipe-radius-md);
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid rgba(255, 255, 255, 0.08);
    }
    .aipe-seo-feature h3 {
      margin: 0 0 0.5rem;
      color: #fff;
      font-weight: 900;
      font-size: 1.05rem;
      letter-spacing: -0.02em;
    }
    .aipe-seo-feature p {
      margin: 0;
      color: rgba(255, 255, 255, 0.73);
      font-size: 0.94rem;
      line-height: 1.7;
    }
    .aipe-seo-divider {
      border-color: rgba(255, 255, 255, 0.10);
      margin: 1.6rem 0;
    }
    .aipe-seo-subtitle {
      margin: 0 0 0.75rem;
      color: #fff;
      font-weight: 900;
      font-size: 1.25rem;
      letter-spacing: -0.02em;
      scroll-margin-top: 60px;
    }
    .aipe-seo-list {
      margin: 0 0 0;
      padding-left: 1.25rem;
      color: rgba(255, 255, 255, 0.75);
      line-height: 1.75;
    }
    .aipe-seo-list li { margin-bottom: 0.45rem; }
    .aipe-seo-tip {
      margin-top: 1rem;
      padding: 0.95rem 1rem;
      border-radius: var(--aipe-radius-md);
      background: rgba(101, 113, 255, 0.08);
      border: 1px solid rgba(101, 113, 255, 0.18);
      color: rgba(255, 255, 255, 0.80);
      line-height: 1.7;
    }
    .aipe-seo-tip strong { color: #fff; }
    .aipe-seo-faq details {
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: var(--aipe-radius-md);
      padding: 0.9rem 1rem;
    }
    .aipe-seo-faq details + details { margin-top: 0.75rem; }
    .aipe-seo-faq summary {
      cursor: pointer;
      color: #fff;
      font-weight: 900;
      list-style: none;
    }
    .aipe-seo-faq summary::-webkit-details-marker { display: none; }
    .aipe-seo-faq .aipe-seo-faq-answer {
      margin-top: 0.6rem;
      color: rgba(255, 255, 255, 0.72);
      line-height: 1.7;
    }
    .aipe-seo-responsible {
      padding: 1rem;
      border-radius: var(--aipe-radius-md);
      border: 1px solid rgba(255, 255, 255, 0.10);
      background: rgba(0, 0, 0, 0.14);
      color: rgba(255, 255, 255, 0.74);
      line-height: 1.75;
    }
    .aipe-seo-responsible h3 {
      margin: 0 0 0.6rem;
      color: #fff;
      font-weight: 900;
      font-size: 1.1rem;
    }
    .aipe-seo-responsible ul { margin: 0.65rem 0 0; padding-left: 1.25rem; }
    .aipe-seo-responsible li { margin-bottom: 0.35rem; }

    .swal2-confirm,
    .swal2-cancel {
      border: none !important;
    }