/* ======================================================
   PROMPTGENLAB — text-generators.css  v4 PREMIUM
   ✦ Ambient header glow  
   ✦ Top progress bar  
   ✦ Skeleton loading  
   ✦ Zero jitter / glitch  
   ✦ Compositor-only transitions (transform, opacity, filter)
   ✦ GPU layers via translateZ(0) + will-change declared upfront
   ====================================================== */

/* ══════════════════════════════════════
   VARIABLES
══════════════════════════════════════ */
:root {
  --bg-main:         #070508;
  --card-bg:         #1A1414;
  --card-hover:      #2A2020;
  --accent:          #FF9F1C;
  --accent2:         #FF2E63;
  --accent3:         #FFD166;
  --accent-gradient: linear-gradient(135deg, #FF9F1C, #FF2E63);
  --text-main:       #FFF6EB;
  --text-muted:      #94a3b8;
  --border-soft:     rgba(255, 159, 28, 0.08);
  --glow1:           #FF9F1C;
  --glow2:           #FF2E63;
  --glow3:           #FFD166;

  /* Skeleton */
  --sk-base:         rgba(255,255,255,0.045);
  --sk-shine:        rgba(255,255,255,0.09);
  --sk-radius:       10px;

  /* Progress bar */
  --pb-height:       3px;
  --pb-duration:     2.6s;
}

/* ══════════════════════════════════════
   RESET & BASE
══════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html { scroll-behavior: smooth }

body {
  background: var(--bg-main);
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  padding-top: 80px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.bg-main { background: transparent }

::selection { background: rgba(255,159,28,.25); color: var(--text-main) }

.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ══════════════════════════════════════
   PAGE PROGRESS BAR — #pageProgress
   Fixed top strip, compositor-only (transform)
══════════════════════════════════════ */
#pageProgress {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: var(--pb-height);
  z-index: 99999;
  pointer-events: none;
  overflow: hidden;

  /* GPU layer */
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* The running fill */
#pageProgress .pb-fill {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg,
    var(--accent),
    var(--accent2),
    var(--accent3),
    var(--accent));
  background-size: 300% 100%;

  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: width, background-position;

  /* Smooth fill on page load — JS drives width or use animation below */
  transition: width .35s cubic-bezier(.22,.61,.36,1);
  animation: pbGradientSlide 2.4s linear infinite;
}

/* Shine tip */
#pageProgress .pb-fill::after {
  content: "";
  position: absolute;
  right: 0; top: 0;
  width: 80px; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55));
  pointer-events: none;
}

/* Auto-run shimmer when class .loading is on body / #pageProgress */
#pageProgress.loading .pb-fill {
  animation:
    pbAutoFill var(--pb-duration) cubic-bezier(.1,.6,.4,1) forwards,
    pbGradientSlide 2.4s linear infinite;
}
/* Complete state */
#pageProgress.done .pb-fill {
  width: 100% !important;
  transition: width .22s ease;
  opacity: 1;
  animation: pbFadeOut .55s .3s ease forwards, pbGradientSlide 2.4s linear infinite;
}

/* ══════════════════════════════════════
   AMBIENT LAYERS — fixed, GPU-promoted
══════════════════════════════════════ */
#ambient-bg,
#ambient-color,
#ambient-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: 100%;
}
#ambient-bg {
  background: #070508;
  z-index: -3;
}
#ambient-color {
  filter: blur(140px);
  opacity: .75;
  z-index: -2;
  transition: background .6s ease;
  will-change: background;
}
#ambient-overlay {
  z-index: -1;
  background:
    radial-gradient(circle at center,
      rgba(0,0,0,0)    40%,
      rgba(0,0,0,.35)  75%,
      rgba(0,0,0,.65) 100%),
    linear-gradient(180deg,
      rgba(0,0,0,.25)  0%,
      rgba(0,0,0,.05) 35%,
      rgba(0,0,0,.15) 100%);
}

/* ══════════════════════════════════════
   NAVBAR — .glass-nav
══════════════════════════════════════ */
.glass-nav {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 9999;
  padding: 14px 0;
  overflow: hidden;

  background: linear-gradient(180deg,
    rgba(10,8,14,.96) 0%,
    rgba(10,8,14,.88) 100%);

  /* Desktop blur */
  backdrop-filter: blur(32px) saturate(180%);
  -webkit-backdrop-filter: blur(32px) saturate(180%);

  border-bottom: 1px solid rgba(255,159,28,.18);

  box-shadow:
    0 10px 50px rgba(0,0,0,.6),
    0 0 60px rgba(255,159,28,.07),
    inset 0 1px 0 rgba(255,255,255,.05);

  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: transform;

  transition:
    transform .4s cubic-bezier(.22,.61,.36,1),
    box-shadow .35s ease,
    border-color .35s ease;

  contain: layout style;
}

.glass-nav.scrolled {
  background: linear-gradient(180deg,
    rgba(7,5,8,.98) 0%,
    rgba(7,5,8,.94) 100%);

  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);

  border-bottom-color: rgba(255,159,28,.25);

  box-shadow:
    0 18px 70px rgba(0,0,0,.75),
    0 0 80px rgba(255,159,28,.1),
    inset 0 1px 0 rgba(255,255,255,.07);
}

/* =====================================
   MOBILE OVERRIDE (MUST BE AFTER ABOVE)
===================================== */

@media (max-width:768px){

  .glass-nav{
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
  }

  .glass-nav.scrolled{
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
  }

}

.glass-nav.hidden {
  transform: translateY(-100%) translateZ(0);
}

/* Shimmer sweep */
.glass-nav::after {
  content: "";
  position: absolute;
  top: 0; left: -50%;
  width: 60%; height: 100%;
  background: linear-gradient(105deg,
    transparent 20%,
    rgba(255,255,255,.055) 50%,
    transparent 80%);
  transform: skewX(-18deg);
  transition: left 1.1s cubic-bezier(.22,.61,.36,1);
  pointer-events: none;
  will-change: left;
}
.glass-nav:hover::after { left: 100% }

/* Bottom glow line */
.glass-nav::before {
  content: "";
  position: absolute;
  bottom: -1px; left: 0;
  width: 100%; height: 1px;
  background: linear-gradient(90deg,
    transparent  0%,
    var(--glow1) 30%,
    var(--glow2) 70%,
    transparent  100%);
  opacity: .3;
  filter: blur(2px);
  pointer-events: none;
  transition: opacity .35s ease;
  will-change: opacity;
}
.glass-nav:hover::before,
.glass-nav.scrolled::before { opacity: .55 }

/* ── Brand logo ── */
.brand-logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  padding: 4px 0;
  isolation: isolate;
  contain: layout style;
}

.brand-logo::before {
  content: "";
  position: absolute;
  left: -14px; top: 50%;
  width: 110px; height: 64px;
  background: radial-gradient(ellipse,
    rgba(255,159,28,.38),
    rgba(255,46,99,.22),
    transparent 70%);
  filter: blur(22px);
  opacity: .65;
  z-index: -1;
  pointer-events: none;
  transform: translateY(-50%) translateZ(0);
  animation: brandGlow 5s ease-in-out infinite;
  will-change: opacity;
}
.brand-logo:hover::after {
  content: "";
  position: absolute;
  width: 5px; height: 5px;
  background: #FFD166; border-radius: 50%;
  left: 22px; top: 8px;
  pointer-events: none;
  box-shadow: 0 0 8px #FFD166, 0 0 16px #FF9F1C;
  animation: sparkleMove .55s ease forwards;
}

.brand-logo img {
  height: 36px; width: auto; display: block;
  filter:
    drop-shadow(0 0 10px rgba(255,159,28,.6))
    drop-shadow(0 2px 5px rgba(0,0,0,.4));
  transform: translateZ(0);
  backface-visibility: hidden;
  transition: transform .35s cubic-bezier(.22,.61,.36,1), filter .35s ease;
  will-change: transform;
}
.brand-logo:hover img {
  transform: translateY(-2px) scale(1.07) translateZ(0);
  filter:
    drop-shadow(0 0 18px rgba(255,159,28,.9))
    drop-shadow(0 4px 8px rgba(0,0,0,.5));
}

.brand-logo span {
  font-size: 22px; font-weight: 700;
  letter-spacing: -.5px; line-height: 1;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.brand-logo:hover span {
  background: linear-gradient(135deg, #FFB84D, #FF4D8F);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ══════════════════════════════════════
   HEADER  — header.container.mt-5.mb-4.text-center
   ✦ Full ambient-light treatment added here
══════════════════════════════════════ */
header {
  position: relative;
  z-index: 1;
  isolation: isolate;
  padding-bottom: 12px;
}

/* ── Ambient radial glow behind header ── */
header::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: min(780px, 120vw);
  height: 260px;
  background: radial-gradient(ellipse at center,
    rgba(255,159,28,.22)  0%,
    rgba(255,46,99,.14)   40%,
    rgba(255,209,102,.06) 70%,
    transparent           100%);
  filter: blur(52px);
  pointer-events: none;
  z-index: -1;
  transform: translate(-50%, -50%) translateZ(0);
  backface-visibility: hidden;
  animation: headerAmbientPulse 7s ease-in-out infinite;
  will-change: opacity, transform;
}

/* ── Decorative scanline / noise vignette ── */
header::after {
  content: "";
  position: absolute;
  inset: -20px;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 3px,
      rgba(255,159,28,.018) 3px,
      rgba(255,159,28,.018) 4px
    );
  pointer-events: none;
  z-index: -1;
  opacity: .45;
  border-radius: 24px;
}

header h2 {
  font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  letter-spacing: -.3px;
  line-height: 1.2;

  /* Entrance */
  opacity: 0;
  transform: translateY(18px) translateZ(0);
  animation: headerSlideUp .65s .1s cubic-bezier(.22,.61,.36,1) forwards;
}

header h5 {
  color: var(--accent3);
  margin-top: 6px;
  font-size: clamp(.85rem, 2vw, 1rem);

  opacity: 0;
  transform: translateY(14px) translateZ(0);
  animation: headerSlideUp .65s .25s cubic-bezier(.22,.61,.36,1) forwards;
}

header p {
  color: var(--text-muted);
  margin-top: 8px;
  font-size: .95rem;

  opacity: 0;
  transform: translateY(12px) translateZ(0);
  animation: headerSlideUp .65s .38s cubic-bezier(.22,.61,.36,1) forwards;
}

/* ── Animated underline accent below h2 ── */
header h2 .text-gradient {
  position: relative;
  display: inline-block;
}
header h2 .text-gradient::after {
  content: "";
  position: absolute;
  left: 10%; bottom: -6px;
  width: 0%; height: 2px;
  background: var(--accent-gradient);
  border-radius: 2px;
  animation: headerUnderlineGrow .7s .7s cubic-bezier(.22,.61,.36,1) forwards;
  will-change: width;
}

/* ══════════════════════════════════════
   SKELETON LOADING CARDS
   Inserted by JS before real cards render
══════════════════════════════════════ */
.skeleton-card {
  background: #181818;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 16px;
  overflow: hidden;
  contain: layout style;
}

/* All skeleton bars share shimmer */
.skeleton-img,
.skeleton-line,
.skeleton-btn {
  background: var(--sk-base);
  border-radius: var(--sk-radius);
  position: relative;
  overflow: hidden;
}
.skeleton-img,
.skeleton-line,
.skeleton-btn {
  animation: skeletonPulse 1.7s ease-in-out infinite;
}

/* Travelling shine — compositor only */
.skeleton-img::after,
.skeleton-line::after,
.skeleton-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent    25%,
    var(--sk-shine) 50%,
    transparent    75%
  );
  background-size: 200% 100%;
  animation: skeletonShine 1.7s linear infinite;
  will-change: background-position;
}

.skeleton-img {
  height: 220px; width: 100%;
  border-radius: 0;
}
.skeleton-body {
  padding: 18px;
  background: var(--card-bg);
}
.skeleton-line {
  height: 14px; border-radius: 8px;
  margin-bottom: 10px;
}
.skeleton-line.w-80 { width: 80% }
.skeleton-line.w-55 { width: 55% }
.skeleton-line.w-40 { width: 40% }
.skeleton-btn {
  height: 46px; border-radius: 12px;
  margin-top: 16px;
}
.skeleton-row {
  display: flex; gap: 8px; margin-top: 8px;
}
.skeleton-row .skeleton-line {
  height: 13px; margin: 0;
}

/* ══════════════════════════════════════
   GENERATOR GRID CARDS  — .prompt-card
══════════════════════════════════════ */
.prompt-card {
  background: #181818;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  overflow: hidden;
  position: relative;

  /* Entrance */
  opacity: 0;
  transform: translateY(25px) translateZ(0);
  backface-visibility: hidden;

  transition:
    opacity      .45s ease,
    transform    .45s ease,
    background   .3s  ease,
    border-color .3s  ease,
    box-shadow   .3s  ease;

  contain: layout style;
}

.prompt-card.show {
  opacity: 1;
  transform: translateY(0) translateZ(0);
}

.prompt-card:hover {
  transform: translateY(-7px) translateZ(0);
  background: var(--card-hover);
  border-color: rgba(255,159,28,.18);
  box-shadow:
    0 14px 38px rgba(255,159,28,.18),
    0 0 42px rgba(255,46,99,.1);
}

/* Thumbnail */
.prompt-card .card-img-top {
  height: 220px;
  width: 100%;
  object-fit: cover;
  display: block;
  transform: translateZ(0);
  backface-visibility: hidden;
  transition: transform .35s ease;
  will-change: transform;
}
.prompt-card:hover .card-img-top {
  transform: scale(1.05) translateZ(0);
}

/* Card body */
.prompt-card .card-body {
  background: var(--card-bg);
  padding: 18px;
}

.prompt-card .card-body h6 {
  color: var(--text-main);
  font-size: 15px; font-weight: 700;
  margin-bottom: 6px; line-height: 1.4;
}

.prompt-card .card-body .text-muted.small {
  color: var(--text-muted) !important;
  font-size: 13px;
}
.prompt-card .card-body .text-muted.small .fa-heart {
  color: #ff4d6d;
}

/* ══════════════════════════════════════
   BUTTONS — .btn-action & .btn-action-share
══════════════════════════════════════ */
.btn-action {
  height: 46px;
  border-radius: 12px;
  border: none;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 14px; letter-spacing: .2px;
  background: linear-gradient(135deg, #FF9F1C, #FF2E63);
  color: #fff;
  cursor: pointer;
  transform: translateZ(0);
  backface-visibility: hidden;
  transition:
    transform  .15s ease,
    filter     .15s ease,
    box-shadow .15s ease;
}
.btn-action:hover {
  transform: translateY(-1px) translateZ(0);
  filter: brightness(1.06);
  box-shadow:
    0 6px 18px rgba(255,159,28,.35),
    0 0 24px rgba(255,46,99,.25);
}
.btn-action:active {
  transform: scale(.96) translateZ(0);
  transition-duration: .07s;
}
.btn-action i { font-size: 14px }

/* Share button */
.btn-action-share {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(255,159,28,.22);
  background: #14141a;
  color: var(--accent);
  font-size: 15px; cursor: pointer; outline: none;
  overflow: hidden; flex-shrink: 0;
  transform: translateZ(0);
  backface-visibility: hidden;
  transition:
    transform    .25s ease,
    box-shadow   .25s ease,
    border-color .25s ease,
    color        .25s ease;
}
.btn-action-share::before {
  content: "";
  position: absolute; inset: 0; border-radius: 12px;
  background: linear-gradient(135deg, rgba(255,159,28,.18), rgba(255,46,99,.12));
  opacity: 0;
  transition: opacity .25s ease;
  will-change: opacity;
}
.btn-action-share:hover {
  background: linear-gradient(135deg, #FF9F1C, #FF2E63);
  border-color: transparent; color: #fff;
  transform: translateY(-2px) scale(1.06) translateZ(0);
  box-shadow:
    0 6px 18px rgba(255,159,28,.4),
    0 0 0 3px rgba(255,159,28,.12);
}
.btn-action-share:hover::before { opacity: 1 }
.btn-action-share:hover i       { transform: rotate(20deg) scale(1.1) }
.btn-action-share:active {
  transform: scale(.95) translateZ(0);
  transition-duration: .07s;
}

.btn-action-share i {
  position: relative; z-index: 1; font-size: 14px;
  transition: transform .25s ease;
}

.btn-action-share.copied {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border-color: transparent; color: #fff;
  box-shadow: 0 6px 18px rgba(34,197,94,.4);
  pointer-events: none;
}
.btn-action-share.copied i { transform: scale(1.15) }

/* Tooltip */
.btn-action-share::after {
  content: "Share";
  position: absolute;
  bottom: calc(100% + 9px); left: 50%;
  transform: translateX(-50%) translateY(5px);
  background: #1A1414; color: #FFD166;
  font-size: 11px; font-weight: 600;
  padding: 4px 9px; border-radius: 6px;
  border: 1px solid rgba(255,159,28,.22);
  white-space: nowrap; opacity: 0;
  pointer-events: none; letter-spacing: .3px; z-index: 10;
  transition: opacity .2s ease, transform .2s ease;
  will-change: opacity, transform;
}
.btn-action-share:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.btn-action-share.copied::after {
  content: "Copied!";
  background: #052e16; color: #4ade80;
  border-color: rgba(34,197,94,.25);
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ══════════════════════════════════════
   GENERATOR OVERLAY — #generatorOverlay
══════════════════════════════════════ */
.generator-overlay {
  position: fixed; inset: 0;
  background: rgba(7,5,8,.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex; align-items: center; justify-content: center;
  z-index: 10000;
  opacity: 0; pointer-events: none;
  transition: opacity .28s ease;
  will-change: opacity;
}

.generator-overlay.active {
  opacity: 1; pointer-events: auto;
}

/* Overlay box */
.overlay-box {
  width: min(560px, 94%);
  max-height: 90vh; overflow-y: auto;
  background: var(--card-bg);
  border: 1px solid rgba(255,159,28,.14);
  border-radius: 20px;
  padding: 52px 28px 28px;
  position: relative;
  box-shadow:
    0 24px 60px rgba(0,0,0,.65),
    0 0 50px rgba(255,159,28,.18);
  transform: scale(.93) translateZ(0);
  backface-visibility: hidden; opacity: 0;
  transition:
    transform .3s cubic-bezier(.22,.61,.36,1),
    opacity   .3s ease;
  will-change: transform, opacity;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,159,28,.25) transparent;
}
.overlay-box::-webkit-scrollbar       { width: 4px }
.overlay-box::-webkit-scrollbar-thumb { background: rgba(255,159,28,.25); border-radius: 4px }

.generator-overlay.active .overlay-box {
  transform: scale(1) translateZ(0);
  opacity: 1;
}

/* Top accent bar */
.overlay-box::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: 20px 20px 0 0;
}

/* Glow on open */
.overlay-box.glow {
  animation: overlayGlow 1.1s ease;
}

/* Close button */
.close-btn {
  position: absolute;
  top: 14px; right: 14px;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  color: var(--text-muted);
  font-size: 22px; line-height: 1; cursor: pointer; z-index: 10;
  transform: translateZ(0);
  transition:
    background   .2s ease,
    color        .2s ease,
    border-color .2s ease,
    transform    .25s cubic-bezier(.22,.61,.36,1);
}
.close-btn:hover {
  color: #fff;
  background: rgba(255,46,99,.8);
  border-color: var(--accent2);
  transform: rotate(90deg) translateZ(0);
}

/* Generator title */
#generatorTitle {
  color: var(--text-main);
  font-size: 19px; font-weight: 700;
  margin-bottom: 18px; padding-right: 44px; line-height: 1.35;
}

/* Textarea */
#generatorInput.form-control {
  background: rgba(255,255,255,.06) !important;
  border: 1px solid rgba(255,159,28,.2) !important;
  color: var(--text-main) !important;
  border-radius: 12px !important;
  padding: 13px 15px !important;
  font-size: 15px; resize: vertical; min-height: 90px;
  transition:
    border-color .2s ease,
    background   .2s ease,
    box-shadow   .2s ease;
}
#generatorInput.form-control:focus {
  outline: none !important;
  border-color: rgba(255,159,28,.5) !important;
  background: rgba(255,255,255,.1) !important;
  box-shadow:
    0 0 0 3px rgba(255,159,28,.1),
    0 0 20px rgba(255,159,28,.14) !important;
  color: var(--text-main) !important;
}
#generatorInput.form-control::placeholder {
  color: var(--text-muted) !important; opacity: 1;
}

/* ===============================
   ULTRA SMOOTH GPU REVEAL
=============================== */


/* Smooth GPU cursor */
.typing-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--accent2);
  margin-left: 3px;
  animation: blink .8s infinite;
  box-shadow: 0 0 8px var(--accent2);
}
.output-box {
  position: relative;
  min-height: 140px;
  padding: 20px;
  border-radius: 14px;

  background: linear-gradient(
    145deg,
    rgba(255,255,255,.05),
    rgba(255,255,255,.02)
  );

  border: 1px solid rgba(255,159,28,.12);

  color: var(--text-main);
  line-height: 1.8;
  font-size: 15px;

  opacity: 0;
  backface-visibility: hidden;

  transition:
    opacity .45s ease,
    transform .45s cubic-bezier(.22,.61,.36,1),
    box-shadow .35s ease,
    border-color .35s ease;

  will-change: opacity, transform;
  overflow: hidden;
  white-space: pre-wrap;
   text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  transform: translateZ(0);
  will-change: contents;
}
@keyframes blink {
  0%,100% { opacity: 1 }
  50% { opacity: 0 }
}

/* Soft fade when typing starts */
.output-box.typing {
  opacity: 1 !important;
  transform: translateY(0) scale(1) translateZ(0);
  transition: opacity .3s ease;
}

/* Smooth Reveal */
.output-box.show {
  opacity: 1;
  transform: translateY(0) scale(1) translateZ(0);

  border-color: rgba(255,159,28,.25);

  box-shadow:
    0 0 30px rgba(255,159,28,.18),
    inset 0 0 25px rgba(255,46,99,.05);
}

/* =========================================
   GENERATING STATE (AI GLOW MODE)
========================================= */

.output-box.generating {
  border-color: rgba(255,159,28,.45);
  animation: aiEnergyPulse 1.6s ease-in-out infinite;
}

@keyframes aiEnergyPulse {
  0%,100% {
    box-shadow:
      0 0 25px rgba(255,159,28,.25),
      inset 0 0 20px rgba(255,46,99,.05);
  }
  50% {
    box-shadow:
      0 0 70px rgba(255,159,28,.65),
      inset 0 0 45px rgba(255,46,99,.18);
  }
}
.output-box.typing {
  animation: textSoftGlow 1.6s ease-in-out infinite;
}

@keyframes textSoftGlow {
  0%,100% { text-shadow: 0 0 0px rgba(255,159,28,0); }
  50% { text-shadow: 0 0 12px rgba(255,159,28,.25); }
}
/* =========================================
   SHIMMER SCAN EFFECT WHILE GENERATING
========================================= */

.output-box.generating::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 20%,
    rgba(255,255,255,.06) 50%,
    transparent 80%
  );
  background-size: 200% 100%;
  animation: shimmerScan 1.8s linear infinite;
  pointer-events: none;
}

@keyframes shimmerScan {
  0% { background-position: 200% 0 }
  100% { background-position: -200% 0 }
}
.output-box.copy-success {
  animation: copyGlow .7s ease;
}

/* AI thinking indicator */
.ai-thinking {
  font-size: 15px; color: var(--accent3);
  text-align: center; padding: 28px 16px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  animation: pulseGlow 1.2s ease-in-out infinite;
  will-change: opacity;
}

/* Typing cursor */
.cursor {
  display: inline-block;
  animation: blink .52s step-start infinite;
  color: var(--accent2); margin-left: 1px;
  font-weight: 300; will-change: opacity;
}

/* Dots cycling */
.dots::after {
  content: "";
  display: inline-block;
  width: 18px; overflow: hidden; vertical-align: bottom;
  animation: dotsCycle 1.4s steps(4, end) infinite;
}

/* Like button */
.btn-like {
  position: absolute;
  top: 14px; left: 14px;
  display: flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: 10px;
  font-size: 13px; font-weight: 500; cursor: pointer;
  background: rgba(7,5,8,.65);
  border: 1px solid rgba(255,255,255,.1);
  color: var(--text-muted);
  backdrop-filter: blur(8px); z-index: 10;
  transform: translateZ(0); backface-visibility: hidden;
  transition:
    transform    .18s ease,
    box-shadow   .18s ease,
    color        .18s ease,
    background   .18s ease,
    border-color .18s ease;
}
.btn-like:hover {
  background: rgba(255,77,109,.14);
  border-color: #ff4d6d; color: #ff4d6d;
  transform: translateY(-2px) translateZ(0);
  box-shadow: 0 4px 14px rgba(255,77,109,.28);
}
.btn-like.liked {
  background: #ff2e63; border-color: transparent; color: #fff;
  box-shadow: 0 4px 14px rgba(255,46,99,.38);
}
.btn-like i {
  font-size: 14px; transition: transform .18s ease; will-change: transform;
}
.btn-like:hover i  { transform: scale(1.15) }
.btn-like.liked i  { animation: heartPop .28s cubic-bezier(.22,.61,.36,1) }
.btn-like.processing { pointer-events: none; opacity: .7 }

/* ══════════════════════════════════════
   SHARE TOAST — #shareToast / .share-toast
══════════════════════════════════════ */
.share-toast,
#shareToast {
  position: fixed;
  bottom: 28px; right: 28px;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 22px; border-radius: 50px;
  background: linear-gradient(145deg, #2A2020, #1A1414);
  color: var(--text-main);
  font-size: .9rem; font-weight: 600; letter-spacing: .3px;
  border: 1px solid rgba(255,159,28,.3);
  box-shadow:
    0 12px 40px rgba(0,0,0,.55),
    0 0 28px rgba(255,159,28,.18),
    inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter: blur(14px);
  overflow: hidden;
  transform: translateY(20px) scale(.94) translateZ(0);
  backface-visibility: hidden; opacity: 0; pointer-events: none;
  will-change: opacity, transform;
  transition: opacity .4s ease, transform .4s cubic-bezier(.22,.61,.36,1);
  z-index: 999999;
}

.share-toast::before,
#shareToast::before {
  content: "";
  position: absolute; inset: -1px; border-radius: 50px;
  background: linear-gradient(135deg, #FF9F1C, #FF2E63, #FF9F1C);
  opacity: .4; z-index: -1; filter: blur(10px);
  animation: glowMove 3s linear infinite;
}

.share-toast::after {
  content: "";
  position: absolute; bottom: 0; left: 0;
  height: 3px; width: 100%;
  background: linear-gradient(90deg, #FF9F1C, #FF2E63);
  animation: progressLine 3.5s linear forwards;
}

.share-toast.show,
#shareToast.show {
  opacity: 1;
  transform: translateY(0) scale(1) translateZ(0);
  pointer-events: auto;
}
.share-toast.hiding {
  opacity: 0;
  transform: translateY(10px) scale(.96) translateZ(0);
}

.share-toast i,
#shareToast i {
  font-size: 16px; color: #22c55e;
  filter: drop-shadow(0 0 8px rgba(34,197,94,.7));
  animation: popIcon .4s ease;
  flex-shrink: 0;
}
.share-toast span,
#shareToast span {
  background: linear-gradient(135deg, #FF9F1C, #FF2E63);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

/* Universal toast — .pg-toast */
.pg-toast {
  position: fixed; top: 24px; right: 24px;
  display: flex; align-items: center; gap: 12px;
  padding: 13px 20px; border-radius: 50px;
  font-size: .9rem; font-weight: 600; letter-spacing: .3px;
  background: rgba(20,20,25,.78);
  backdrop-filter: blur(14px); color: #fff;
  transform: translateY(-18px) scale(.95) translateZ(0);
  backface-visibility: hidden; opacity: 0;
  will-change: opacity, transform;
  transition:
    opacity   .38s cubic-bezier(.22,.61,.36,1),
    transform .38s cubic-bezier(.22,.61,.36,1);
  z-index: 99999; pointer-events: none;
  border: 2px solid transparent;
  background-clip: padding-box;
}
.pg-toast::before {
  content: ""; position: absolute; inset: -2px; border-radius: inherit;
  background: linear-gradient(120deg, #ff9f1c, #ff2e63, #6366f1);
  background-size: 300% 300%;
  animation: toastBorderMove 4s linear infinite; z-index: -1;
  will-change: background-position;
}
.pg-toast.show {
  opacity: 1;
  transform: translateY(0) scale(1) translateZ(0);
  pointer-events: auto;
}
.pg-toast-msg { flex: 1 }
.pg-toast i   { font-size: 16px }
.pg-toast.success i { color: #22c55e }
.pg-toast.error   i { color: #ef4444 }
.pg-toast.info    i { color: #3b82f6 }

@media (max-width: 768px) {
  .pg-toast {
    top: auto; bottom: 24px; right: 50%;
    transform: translateX(50%) translateY(16px) scale(.95) translateZ(0);
  }
  .pg-toast.show {
    transform: translateX(50%) translateY(0) scale(1) translateZ(0);
  }
}

/* ══════════════════════════════════════
   SHARED RIBBON
══════════════════════════════════════ */
.shared-ribbon {
  position: absolute; top: 18px; right: -36px;
  width: 148px; text-align: center; white-space: nowrap;
  background: var(--accent-gradient); color: #fff;
  padding: 7px 0; font-size: .67rem; font-weight: 800;
  letter-spacing: 1px; text-transform: uppercase;
  transform: rotate(45deg) translateZ(0);
  z-index: 20; opacity: 0;
  display: flex; align-items: center; justify-content: center;
  gap: 5px; line-height: 1; pointer-events: none;
  box-shadow:
    0 4px 14px rgba(255,159,28,.48),
    0 8px 26px rgba(255,46,99,.32),
    inset 0 1px 0 rgba(255,255,255,.2);
  will-change: opacity, transform;
}
.shared-ribbon i { font-size: .62rem }
.animate-ribbon  { animation: ribbonFadeIn .65s cubic-bezier(.22,.61,.36,1) forwards }
.shared-highlight { animation: sharedGlow 2s cubic-bezier(.22,.61,.36,1) }

/* ══════════════════════════════════════
   FOOTER — footer.pg-footer#pgFooter
══════════════════════════════════════ */
.pg-footer {
  position: relative;
  padding: 100px 0 30px;
  background: transparent; overflow: hidden;
  margin-top: 80px;
}

.footer-glass-strip {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 60px; pointer-events: none;
  background: linear-gradient(180deg,
    rgba(255,255,255,.08), rgba(255,255,255,.02), transparent);
  opacity: .22; backdrop-filter: blur(6px);
}

.footer-ambient-glow {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%,
    rgba(255,159,28,.06), transparent 70%);
  pointer-events: none; z-index: 0;
}

.footer-mouse-light {
  position: absolute;
  width: 350px; height: 350px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,159,28,.1), transparent 70%);
  pointer-events: none; opacity: 0;
  filter: blur(50px); z-index: 1;
  transition: opacity .3s ease; will-change: opacity;
}

.footer-inner {
  display: flex; justify-content: space-between;
  gap: 80px; flex-wrap: wrap;
  position: relative; z-index: 2;
}

.footer-brand-block { max-width: 420px }

.footer-logo {
  font-size: 24px; font-weight: 700; margin-bottom: 12px;
  display: flex; align-items: center; gap: 12px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}
.footer-logo img {
  height: 36px; width: auto;
  filter:
    drop-shadow(0 0 8px rgba(255,159,28,.5))
    drop-shadow(0 2px 4px rgba(0,0,0,.3));
}

.footer-desc { margin-top: 14px; color: var(--text-muted); line-height: 1.7 }

.footer-social { margin-top: 18px; display: flex; gap: 10px }
.footer-social a {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  color: var(--text-muted); text-decoration: none;
  transform: translateZ(0);
  transition: background .2s ease, transform .2s ease, border-color .2s ease;
}
.footer-social a:hover {
  background: var(--accent-gradient);
  border-color: transparent; color: #fff;
  transform: translateY(-2px) translateZ(0);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 160px);
  gap: 50px;
}

.footer-col h4 {
  color: var(--accent3); font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .5px; margin-bottom: 12px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0 }
.footer-col li { margin: 8px 0 }
.footer-col a {
  color: var(--text-muted); text-decoration: none;
  font-size: 14px; display: inline-block;
  transition: color .2s ease, transform .2s ease;
}
.footer-col a:hover { color: var(--accent); transform: translateX(3px) }

.footer-manual {
  width: 100%; text-align: center;
  margin-top: 40px; margin-bottom: 10px;
  position: relative; z-index: 2;
}
.footer-manual a {
  color: var(--accent3); font-size: 16px; font-weight: 500;
  text-decoration: none; transition: color .2s ease;
}
.footer-manual a:hover { color: var(--accent) }
.footer-manual h5 { margin: 0; font-size: 16px; font-weight: 500 }

.footer-bottom {
  margin-top: 50px; padding-top: 20px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,.06);
  color: var(--text-muted); font-size: 14px;
  position: relative; z-index: 2;
}

@media (max-width: 992px) { .footer-grid { grid-template-columns: repeat(3,1fr) } }
@media (max-width: 768px) {
  .footer-inner { flex-direction: column; gap: 40px }
  .footer-grid  { grid-template-columns: repeat(2,1fr) }
  .footer-brand-block { max-width: 100% }
}
@media (max-width: 576px) {
  .footer-grid { grid-template-columns: 1fr }
  .footer-social { justify-content: center }
}

/* ══════════════════════════════════════
   TOUCH — no stuck hover states
══════════════════════════════════════ */
@media (hover: none) {
  .prompt-card:hover {
    transform: none; background: #181818;
    border-color: rgba(255,255,255,.08); box-shadow: none;
  }
  .prompt-card:hover .card-img-top { transform: none }
  .btn-action:hover { transform: none; filter: none; box-shadow: none }
  .btn-action-share:hover { transform: none; box-shadow: none }
  .glass-nav:hover::after { left: -50% }
}

/* Reduced motion — cut all animations to near-zero */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  header::before { animation: none !important }
  header h2, header h5, header p {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  header h2 .text-gradient::after { width: 80% !important; animation: none !important }
  #pageProgress .pb-fill { animation: none !important }
}

/* ══════════════════════════════════════
   KEYFRAMES — single definition, zero duplication
══════════════════════════════════════ */

/* Progress bar */
@keyframes pbAutoFill {
  0%   { width: 0% }
  60%  { width: 75% }
  85%  { width: 92% }
  100% { width: 100% }
}
@keyframes pbGradientSlide {
  0%   { background-position: 0% 50% }
  100% { background-position: 200% 50% }
}
@keyframes pbFadeOut {
  0%   { opacity: 1 }
  100% { opacity: 0 }
}

/* Header */
@keyframes headerSlideUp {
  to { opacity: 1; transform: translateY(0) translateZ(0) }
}
@keyframes headerUnderlineGrow {
  to { width: 80% }
}
@keyframes headerAmbientPulse {
  0%,100% { opacity: .7;  transform: translate(-50%, -50%) scale(.95) translateZ(0) }
  50%     { opacity: 1;   transform: translate(-50%, -50%) scale(1.06) translateZ(0) }
}

/* Skeleton */
@keyframes skeletonPulse {
  0%,100% { opacity: 1 }
  50%     { opacity: .55 }
}
@keyframes skeletonShine {
  0%   { background-position: 200% 0 }
  100% { background-position: -200% 0 }
}

/* Brand / nav */
@keyframes brandGlow {
  0%,100% { opacity: .5;  transform: translateY(-50%) scale(.92) translateZ(0) }
  50%     { opacity: .78; transform: translateY(-50%) scale(1.12) translateZ(0) }
}
@keyframes sparkleMove {
  from { transform: translate(0,0);       opacity: 1 }
  to   { transform: translate(44px,-9px); opacity: 0 }
}

/* UI interactions */
@keyframes heartPop {
  0%,100% { transform: scale(1) }
  45%     { transform: scale(1.35) }
}
@keyframes blink {
  0%,100% { opacity: 1 }
  50%     { opacity: 0 }
}
@keyframes pulseGlow {
  0%,100% { opacity: .65 }
  50%     { opacity: 1 }
}
@keyframes dotsCycle {
  0%   { content: "" }
  33%  { content: "." }
  66%  { content: ".." }
  100% { content: "..." }
}

/* Overlay */
@keyframes overlayGlow {
  0%   { box-shadow: 0 24px 60px rgba(0,0,0,.65), 0 0 0 rgba(255,159,28,0) }
  50%  { box-shadow: 0 24px 60px rgba(0,0,0,.65), 0 0 75px rgba(255,159,28,.55) }
  100% { box-shadow: 0 24px 60px rgba(0,0,0,.65), 0 0 0 rgba(255,159,28,0) }
}
@keyframes copyGlow {
  0%,100% { box-shadow: inset 0 0 16px rgba(255,159,28,.05) }
  50%     { box-shadow: 0 0 38px rgba(255,159,28,.5), inset 0 0 28px rgba(255,159,28,.22) }
}

/* Ribbon */
@keyframes ribbonFadeIn {
  0%   { opacity: 0; transform: rotate(45deg) scale(.72) translateZ(0) }
  65%  { opacity: 1; transform: rotate(45deg) scale(1.06) translateZ(0) }
  100% { opacity: 1; transform: rotate(45deg) scale(1) translateZ(0) }
}
@keyframes sharedGlow {
  0%   { box-shadow: 0 0 0 rgba(255,159,28,0),     0 0 0 rgba(255,46,99,0) }
  40%  { box-shadow: 0 0 34px rgba(255,159,28,.65), 0 0 62px rgba(255,46,99,.38) }
  70%  { box-shadow: 0 0 16px rgba(255,159,28,.22), 0 0 34px rgba(255,46,99,.1) }
  100% { box-shadow: 0 0 0 rgba(255,159,28,0),     0 0 0 rgba(255,46,99,0) }
}

/* Toast */
@keyframes glowMove {
  0%   { transform: rotate(0deg) }
  100% { transform: rotate(360deg) }
}
@keyframes popIcon {
  0%   { transform: scale(.6); opacity: 0 }
  100% { transform: scale(1);  opacity: 1 }
}
@keyframes progressLine {
  from { width: 100% }
  to   { width: 0% }
}
@keyframes toastBorderMove {
  0%,100% { background-position: 0% 50% }
  50%     { background-position: 100% 50% }
}
/* ==========================================
   MOBILE STABILITY FIX PACK v1.0
   Fix left shift + jitter + wobble
========================================== */

/* 1️⃣ Fix 100vw overflow issue */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* Prevent accidental 100vw layout shifts */


/* 2️⃣ Fix Ambient Blur causing GPU wobble on mobile */
@media (max-width: 768px) {

  #ambient-color {
    filter: blur(90px);   /* reduce from 140px */
    opacity: 0.65;
  }

  header::before {
    filter: blur(35px);   /* reduce heavy blur */
  }

  .footer-mouse-light {
    display: none;        /* remove heavy hover glow on mobile */
  }
}

/* 3️⃣ Prevent navbar shimmer from using left (layout trigger) */
.glass-nav::after {
  left: 0;
  transform: translateX(-120%) skewX(-18deg);
  transition: transform 1.1s cubic-bezier(.22,.61,.36,1);
}

.glass-nav:hover::after {
  transform: translateX(280%) skewX(-18deg);
}

/* 4️⃣ Prevent toast from causing horizontal shift */
.pg-toast,
  .share-toast,
  #shareToast {

    left: 50% !important;
    right: auto !important;

    transform: translateX(-50%) translateY(16px) scale(.95) translateZ(0);
    max-width: 92%;
    width: max-content;

  }

.pg-toast.show,
  .share-toast.show,
  #shareToast.show {

    transform: translateX(-50%) translateY(0) scale(1) translateZ(0);

  }


/* 5️⃣ Fix progress bar width jitter */
#pageProgress .pb-fill {
  will-change: transform;
  transform-origin: left center;
}

/* Optional: use scaleX instead of width (ultra stable) */
@media (max-width: 768px) {
  #pageProgress .pb-fill {
    width: 100% !important;
    transform: scaleX(0);
    transition: transform .35s cubic-bezier(.22,.61,.36,1);
  }

  #pageProgress.loading .pb-fill {
    animation: none;
    transform: scaleX(1);
  }
}

/* 6️⃣ Remove hover transforms on mobile (prevents wobble) */
@media (hover: none) {

  .prompt-card,
  .btn-action,
  .btn-action-share,
  .btn-like {
    transition: none !important;
  }

  .prompt-card:hover,
  .btn-action:hover,
  .btn-action-share:hover {
    transform: none !important;
    box-shadow: none !important;
  }
}
/* =========================
   AI RECOMMENDED LINKS (HEADER)
========================= */
/* Orange Gradient Text */
.text-gradient {
    background: linear-gradient(135deg, #ff7a18, #ffb347);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.best-result-text {
    margin-top: 20px;
    font-weight: 500;
    color: var(--accent3);
}

.ai-inline-links {
    margin-left: 6px;
}

.ai-link {
    position: relative;
    text-decoration: none;
    font-weight: 600;
    color: var(--accent);
    transition: all 0.3s ease;
}

/* Hover Glow */
.ai-link:hover {
    color: var(--accent3);
    text-shadow:
        0 0 8px rgba(255,159,28,0.7),
        0 0 18px rgba(255,46,99,0.4);
}

/* Animated Underline */
.ai-link::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    left: 0;
    bottom: -3px;
    background: var(--accent-gradient);
    transition: width 0.3s ease;
}

.ai-link:hover::after {
    width: 100%;
}

/* Tooltip */
.ai-link::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--card-bg);
    color: var(--text-main);
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 6px;
    border: 1px solid var(--border-soft);
    opacity: 0;
    pointer-events: none;
    transition: 0.3s ease;
    white-space: nowrap;
}

.ai-link:hover::before {
    opacity: 1;
}
.floating-actions {
    position: fixed;
    right: 18px;
    bottom: 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
}

.float-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    color: white;
    font-size: 16px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.float-btn::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: linear-gradient(
        135deg,
        var(--glow1),
        var(--glow2),
        var(--glow3)
    );
    opacity: 0;
    filter: blur(10px);
    transition: opacity 0.25s ease;
    z-index: -1;
}

.float-btn.show::before {
    opacity: 0.6;
}

.float-btn:hover::before {
    opacity: 1;
    filter: blur(14px);
}

.float-btn.show {
    opacity: 1;
    transform: translateY(0);
}

.float-btn:hover {
    transform: scale(1.08);
}

.scroll-wrapper {
    position: relative;
    width: 52px;
    height: 52px;
}

.progress-ring {
    position: absolute;
    top: -3px;
    left: -3px;
    transform: rotate(-90deg);
}

.progress-bg {
    fill: none;
    stroke: rgba(255,255,255,0.15);
    stroke-width: 3;
}

.progress-bar {
    fill: none;
    stroke: #FF9F1C;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 138;
    stroke-dashoffset: 138;
    transition: stroke-dashoffset 0.15s linear;
}

@keyframes glowPulse {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.float-btn.show {
    animation: glowPulse 2.5s ease-in-out infinite;
}
/* =========================
   CLASSY AI LINKS
========================= */

.classy-links {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.classy-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    transition: all 0.25s ease;
}

.classy-link span {
    position: relative;
}

/* Logo */
.ai-logo {
    width: 18px;
    height: 18px;
    object-fit: contain;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Arrow */
.ext-arrow {
    font-size: 14px;
    opacity: 0.8;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Divider */
.divider {
    opacity: 0.4;
    font-weight: 500;
}

/* Hover */
.classy-link:hover {
    color: var(--accent3);
}

.classy-link:hover .ai-logo {
    transform: scale(1.1);
}

.classy-link:hover .ext-arrow {
    transform: translate(3px, -3px);
    opacity: 1;
}

/* Elegant underline */
.classy-link::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--accent-gradient);
    transition: width 0.3s ease;
}

.classy-link:hover::after {
    width: 100%;
}
