:root {
  color-scheme: light;
  --sky: #7fe3ff;
  --sky-deep: #4ec5ff;
  --grass: #61d66f;
  --grass-deep: #3fbe57;
  --card: rgba(255, 255, 255, 0.95);
  --accent: #ffcc3d;
  --accent-strong: #ff7a00;
  --accent-soft: #1dd976;
  --text: #0b1b2d;
  --muted: #365067;
  --outline: #0b1b2d;
  --shadow: 0 8px 0 #0b1b2d, 0 18px 28px rgba(0, 0, 0, 0.25);
  --glow: 0 0 0 3px rgba(255, 255, 255, 0.55), 0 0 18px rgba(255, 204, 61, 0.35);
  --radius: 18px;
  --gradient: linear-gradient(135deg, #ffdf5f 0%, #ff9a1a 100%);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}


body {
  font-family: "Rubik", sans-serif;
  min-height: 100vh;
  background:
    linear-gradient(180deg, var(--sky) 0%, var(--sky-deep) 45%, var(--grass) 45%, var(--grass-deep) 100%),
    radial-gradient(circle at 14px 14px, rgba(255, 255, 255, 0.35) 0 4px, transparent 5px);
  background-size: auto, 28px 28px;
  background-attachment: fixed;
  color: var(--text);
  padding: 32px clamp(16px, 4vw, 48px) 48px;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(900px 520px at 8% 6%, rgba(255, 255, 255, 0.5), transparent 60%),
    radial-gradient(900px 520px at 92% 10%, rgba(255, 255, 255, 0.35), transparent 60%);
  opacity: 0.7;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: -10%;
  background: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.18) 0 12px,
    transparent 12px 24px
  );
  opacity: 0.22;
  pointer-events: none;
  z-index: 0;
}

.bg-orb {
  display: none;
}

.orb-1 {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(47, 217, 255, 0.8), transparent 70%);
  top: -90px;
  left: -60px;
  animation: float 18s ease-in-out infinite;
}

.orb-2 {
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(26, 112, 255, 0.8), transparent 70%);
  top: 30px;
  right: -70px;
  animation: float 20s ease-in-out infinite reverse;
}

.orb-3 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(122, 247, 255, 0.8), transparent 70%);
  bottom: -60px;
  left: 30%;
  animation: float 22s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-18px);
  }
}

.topbar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 16px;
  padding: 12px 0;
  min-height: 88px;
  z-index: 1;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
  text-align: center;
}

.brand-mark {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  background: var(--gradient);
  border: 3px solid var(--outline);
  display: grid;
  place-items: center;
  font-family: "Bungee", sans-serif;
  font-size: 32px;
  letter-spacing: 2.4px;
  color: #06142f;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.2);
  box-shadow: var(--shadow), var(--glow);
}

.brand-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.brand-name {
  font-size: clamp(30px, 4.2vw, 46px);
  font-weight: 700;
  font-family: "Bungee", sans-serif;
  letter-spacing: 1px;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.2);
}

.brand-sub {
  font-size: 19px;
  color: var(--muted);
  font-weight: 500;
}

.tag {
  padding: 10px 18px;
  border-radius: 999px;
  background: #1fe07b;
  border: 3px solid var(--outline);
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #0b1b2d;
  font-family: "Bungee", sans-serif;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.4);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  text-align: center;
  max-width: min(92vw, 620px);
  white-space: normal;
  line-height: 1.1;
}

.tag-shell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 100%;
  margin-bottom: 12px;
}

.tag-shell .tag {
  margin-bottom: 0;
  flex: 0 1 auto;
}

.tag-icon-btn {
  --btn-press-depth: 4px;
  --btn-shadow-rest: 0 4px 0 var(--outline), 0 10px 16px rgba(0, 0, 0, 0.2);
  --btn-shadow-hover: 0 6px 0 var(--outline), 0 14px 20px rgba(0, 0, 0, 0.24);
  --btn-shadow-flat: 0 0 0 var(--outline), 0 4px 8px rgba(0, 0, 0, 0.16);
  width: 54px;
  height: 54px;
  border-radius: 999px;
  border: 3px solid var(--outline);
  box-shadow: var(--btn-shadow-rest);
  display: grid;
  place-items: center;
  cursor: pointer;
  color: #0b1b2d;
  flex: 0 0 auto;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tag-icon-btn-menu {
  background: linear-gradient(135deg, #9eeeff 0%, #46c8ff 100%);
}

.tag-icon-btn-market {
  background: linear-gradient(135deg, #fff3a6 0%, #ffc94a 100%);
}

.tag-icon-btn svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tag-icon-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--btn-shadow-hover);
  filter: brightness(1.03);
}

.tag-icon-btn:active {
  transform: translateY(var(--btn-press-depth));
  box-shadow: var(--btn-shadow-flat);
  filter: brightness(0.97);
}

.tag-icon-btn:focus-visible {
  outline: none;
  box-shadow: var(--btn-shadow-rest), 0 0 0 4px rgba(255, 122, 0, 0.35);
}

.is-ios .tag-icon-btn {
  display: none;
}

.is-ios .tag-shell {
  width: auto;
  margin-bottom: 12px;
}

.is-ios .tag-shell .tag {
  flex: 0 1 auto;
}

body.sidebar-open {
  overflow: hidden;
}

.app-sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 27, 45, 0.5);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
  z-index: 90;
}

.app-sidebar-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.app-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(88vw, 360px);
  background:
    radial-gradient(circle at 18px 18px, rgba(0, 0, 0, 0.06) 0 2px, transparent 3px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(238, 249, 255, 0.98));
  background-size: 28px 28px, auto;
  border-right: 4px solid var(--outline);
  box-shadow: 14px 0 32px rgba(0, 0, 0, 0.35);
  padding: 18px 14px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transform: translateX(-104%);
  transition: transform 0.28s cubic-bezier(0.22, 0.96, 0.33, 1);
  z-index: 91;
}

.app-sidebar.is-open {
  transform: translateX(0);
}

.app-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 25px;
  margin-bottom: 4px;
}

.app-sidebar-title {
  font-family: "Bungee", sans-serif;
  font-size: 20px;
  letter-spacing: 0.5px;
  color: var(--text);
}

.app-sidebar-close {
  --btn-shadow-rest: 0 4px 0 var(--outline), 0 10px 14px rgba(0, 0, 0, 0.2);
  --btn-shadow-hover: 0 6px 0 var(--outline), 0 14px 18px rgba(0, 0, 0, 0.22);
  --btn-shadow-flat: 0 0 0 var(--outline), 0 4px 8px rgba(0, 0, 0, 0.16);
  border: 3px solid var(--outline);
  border-radius: 12px;
  background: linear-gradient(135deg, #ffe66a 0%, #ff9a1a 100%);
  color: #0b1b2d;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  font-family: "Bungee", sans-serif;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--btn-shadow-rest);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.app-sidebar-close:hover {
  transform: translateY(-2px);
  box-shadow: var(--btn-shadow-hover);
  filter: brightness(1.03);
}

.app-sidebar-close:active {
  transform: translateY(4px);
  box-shadow: var(--btn-shadow-flat);
  filter: brightness(0.97);
}

.app-sidebar-nav {
  display: grid;
  gap: 10px;
}

.app-sidebar-link {
  --btn-shadow-rest: 0 4px 0 var(--outline), 0 10px 14px rgba(0, 0, 0, 0.2);
  --btn-shadow-hover: 0 6px 0 var(--outline), 0 14px 18px rgba(0, 0, 0, 0.22);
  --btn-shadow-flat: 0 0 0 var(--outline), 0 4px 8px rgba(0, 0, 0, 0.16);
  border: 3px solid var(--outline);
  border-radius: 14px;
  padding: 10px 12px;
  background: linear-gradient(135deg, rgba(255, 230, 106, 0.9), rgba(255, 255, 255, 0.92));
  color: #0b1b2d;
  font-family: "Bungee", sans-serif;
  font-size: 13px;
  letter-spacing: 0.35px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: var(--btn-shadow-rest);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.app-sidebar-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--btn-shadow-hover);
  filter: brightness(1.03);
}

.app-sidebar-link:active {
  transform: translateY(4px);
  box-shadow: var(--btn-shadow-flat);
  filter: brightness(0.97);
}

.app-sidebar-link svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.app-sidebar-socials {
  margin-top: auto;
  display: grid;
  gap: 8px;
  padding: 10px 0 0;
  border-top: 2px dashed rgba(11, 27, 45, 0.32);
}

.app-sidebar-social-title {
  margin: 0 2px;
  font-family: "Bungee", sans-serif;
  color: #214057;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.app-sidebar-social-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.app-social-link {
  border: 3px solid var(--outline);
  border-radius: 999px;
  background: linear-gradient(145deg, #def4ff 0%, #ffffff 100%);
  color: #0b1b2d;
  min-height: 46px;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  padding: 0;
  text-decoration: none;
  box-shadow: 0 3px 0 var(--outline), 0 7px 10px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.app-social-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 0 var(--outline), 0 9px 12px rgba(0, 0, 0, 0.14);
  filter: brightness(1.03);
}

.app-social-link:active {
  transform: translateY(3px);
  box-shadow: 0 0 0 var(--outline), 0 3px 6px rgba(0, 0, 0, 0.12);
  filter: brightness(0.97);
}

.app-social-link svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  gap: 28px;
  margin-top: 36px;
  position: relative;
  z-index: 1;
}

.layout > * {
  min-width: 0;
}

.panel {
  background: var(--card);
  border-radius: var(--radius);
  border: 3px solid var(--outline);
  background-image: radial-gradient(
    circle at 14px 14px,
    rgba(0, 0, 0, 0.06) 0 2px,
    transparent 3px
  );
  background-size: 28px 28px;
  box-shadow: var(--shadow);
  padding: 28px;
  backdrop-filter: blur(8px);
  position: relative;
  z-index: 0;
}

.panel.has-open-select {
  z-index: 50;
}

.panel-head h1 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 12px;
  font-family: "Bungee", sans-serif;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.2);
}

.panel-head h2 {
  font-size: 22px;
  margin-bottom: 8px;
  font-family: "Bungee", sans-serif;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.18);
}

.panel-head p {
  color: var(--muted);
  max-width: 520px;
}

.prompt-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 24px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field-label {
  font-size: 13px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--accent-soft);
}

textarea,
select {
  width: 100%;
  border-radius: 16px;
  border: 3px solid var(--outline);
  padding: 14px 16px;
  font-family: inherit;
  font-size: 15px;
  background: #ffffff;
  color: var(--text);
  box-shadow: inset 0 2px 0 rgba(0, 0, 0, 0.08);
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
  resize: none;
}

textarea:focus,
select:focus {
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 4px rgba(255, 122, 0, 0.25);
}

/* Custom selects (fully styled dropdown menu) */
.custom-select {
  position: relative;
  width: 100%;
}

.custom-select select {
  position: absolute;
  inset: auto auto auto auto;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.custom-select__button {
  width: 100%;
  border-radius: 16px;
  border: 3px solid var(--outline);
  padding: 14px 44px 14px 16px;
  font-family: inherit;
  font-size: 15px;
  background: #ffffff;
  color: var(--text);
  box-shadow: inset 0 2px 0 rgba(0, 0, 0, 0.08);
  outline: none;
  cursor: pointer;
  text-align: left;
  position: relative;
  transition: border 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

#prompt-form .custom-select__button,
#prompt-form select {
  font-weight: 700;
}

#prompt-form textarea {
  font-weight: 700;
}

#prompt-form textarea::placeholder {
  font-weight: 700;
}

.prompt-input-wrap {
  position: relative;
}



.prompt-random-btn {
  --btn-press-depth: 4px;
  --btn-shadow-rest:
    0 4px 0 var(--outline),
    0 10px 16px rgba(0, 0, 0, 0.22),
    0 0 16px rgba(79, 147, 255, 0.36);
  --btn-shadow-hover:
    0 6px 0 var(--outline),
    0 14px 20px rgba(0, 0, 0, 0.26),
    0 0 20px rgba(79, 147, 255, 0.5);
  --btn-shadow-flat:
    0 0 0 var(--outline),
    0 4px 9px rgba(0, 0, 0, 0.16),
    0 0 10px rgba(79, 147, 255, 0.28);
  position: absolute;
  right: 10px;
  bottom: 17px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 3px solid var(--outline);
  background: linear-gradient(135deg, #8bffe7 0%, #ffffff 100%);
  color: #0b1b2d;
  display: grid;
  place-items: center;
  cursor: pointer;
  overflow: visible;
  isolation: isolate;
  box-shadow: var(--btn-shadow-rest);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.prompt-random-btn::before,
.prompt-random-btn::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
}

.prompt-random-btn.is-clicking {
  animation: promptRandomPop 0.42s cubic-bezier(0.2, 1.1, 0.32, 1);
}

.prompt-random-btn.is-clicking::before {
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.78) 0%,
    rgba(255, 255, 255, 0.3) 34%,
    rgba(127, 227, 255, 0.2) 58%,
    transparent 72%
  );
  animation: promptRandomBurstGlow 0.42s ease-out;
}

.prompt-random-btn.is-clicking::after {
  border: 2px solid rgba(79, 147, 255, 0.72);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35);
  animation: promptRandomBurstRing 0.42s cubic-bezier(0.22, 0.96, 0.33, 1);
}

.prompt-random-btn svg {
  width: 18px;
  height: 22px;
  display: block;
}

.prompt-random-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--btn-shadow-hover);
  filter: brightness(1.03);
}

.prompt-random-btn:active {
  transform: translateY(var(--btn-press-depth));
  box-shadow: var(--btn-shadow-flat);
  filter: brightness(0.97);
}

.prompt-random-btn:focus-visible {
  outline: none;
  box-shadow: var(--btn-shadow-rest), 0 0 0 4px rgba(255, 122, 0, 0.35);
}

.prompt-random-btn.is-spinning svg {
  animation: promptRandomSpin 0.36s cubic-bezier(0.22, 0.96, 0.33, 1);
}

@keyframes promptRandomSpin {
  0% {
    transform: rotate(0deg) scale(0.92);
  }
  55% {
    transform: rotate(170deg) scale(1.1);
  }
  100% {
    transform: rotate(360deg) scale(1);
  }
}

@keyframes promptRandomPop {
  0% {
    transform: translateY(0) scale(1);
    box-shadow: var(--btn-shadow-rest);
  }
  26% {
    transform: translateY(var(--btn-press-depth)) scale(0.9);
    box-shadow: var(--btn-shadow-flat);
  }
  58% {
    transform: translateY(-2px) scale(1.08);
    box-shadow: var(--btn-shadow-hover);
  }
  100% {
    transform: translateY(0) scale(1);
    box-shadow: var(--btn-shadow-rest);
  }
}

@keyframes promptRandomBurstRing {
  0% {
    opacity: 0.85;
    transform: scale(0.78);
  }
  100% {
    opacity: 0;
    transform: scale(1.55);
  }
}

@keyframes promptRandomBurstGlow {
  0% {
    opacity: 0.75;
    transform: scale(0.86);
  }
  100% {
    opacity: 0;
    transform: scale(1.32);
  }
}

.custom-select__button::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 3px solid var(--outline);
  border-bottom: 3px solid var(--outline);
  transform: translateY(-60%) rotate(45deg);
  transition: transform 0.18s ease;
}

.custom-select.is-open .custom-select__button::after {
  transform: translateY(-40%) rotate(-135deg);
}

.custom-select__button:focus-visible {
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 4px rgba(255, 122, 0, 0.25);
}

.custom-select.is-disabled .custom-select__button {
  opacity: 0.7;
  cursor: not-allowed;
}

.custom-select__list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  padding: 8px;
  border-radius: 18px;
  border: 3px solid var(--outline);
  background:
    radial-gradient(circle at 18px 18px, rgba(0, 0, 0, 0.06) 0 2px, transparent 3px),
    rgba(255, 255, 255, 0.98);
  background-size: 28px 28px;
  box-shadow: var(--shadow), 0 20px 40px rgba(0, 0, 0, 0.28);
  max-height: 280px;
  overflow: auto;
  z-index: 1200;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px) scale(0.985);
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.custom-select.is-open .custom-select__list {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.custom-select__option {
  padding: 10px 12px;
  border-radius: 14px;
  cursor: pointer;
  user-select: none;
  font-size: 13px;
  letter-spacing: 0.4px;
  font-family: "Bungee", sans-serif;
  color: #0b1b2d;
  border: 2px solid transparent;
}

.custom-select__option:hover,
.custom-select__option.is-active {
  background: rgba(31, 224, 123, 0.22);
}

.custom-select__option.is-selected {
  background: rgba(255, 230, 106, 0.7);
  border-color: rgba(11, 27, 45, 0.22);
}

.custom-select__option.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  border: none;
  background: rgba(47, 217, 255, 0.12);
  color: var(--accent-soft);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.chip:hover {
  background: rgba(47, 217, 255, 0.3);
  color: #fff;
  transform: translateY(-2px);
}

.control-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.primary {
  border: none;
  padding: 16px 22px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.6px;
  cursor: pointer;
  color: #0b1b2d;
  background: linear-gradient(135deg, #ffe66a 0%, #ff9a1a 100%);
  border: 3px solid var(--outline);
  font-family: "Bungee", sans-serif;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.35);
  box-shadow: 0 6px 0 var(--outline), 0 16px 24px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 0 var(--outline), 0 20px 28px rgba(0, 0, 0, 0.3);
}

.primary:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
  box-shadow: 0 4px 0 var(--outline);
}

.note {
  font-size: 13px;
  color: var(--muted);
}

.output-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.output-panel.is-scrolling {
  animation: outputPulse 1s ease;
}

@keyframes outputPulse {
  0% {
    opacity: 0.25;
    transform: scale(0.99);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.gallery {
  display: grid;
  gap: 18px;
}

.ad-no-click {
  pointer-events: none;
  touch-action: none;
  border-radius: 15px;
  overflow: hidden;
}

.ad-no-click iframe {
  border-radius: 15px;
  display: block;
}

.recent-panel {
  margin-top: 22px;
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: 20px;
  border: 3px solid var(--outline);
  background:
    linear-gradient(135deg, rgba(255, 230, 106, 0.35), rgba(255, 255, 255, 0.9) 55%),
    rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  grid-column: 1 / -1;
}

.recent-head h3 {
  font-size: 19px;
  margin-bottom: 6px;
}

.recent-head p {
  color: var(--muted);
  font-size: 13px;
}

.recent-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}

.recent-card {
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.95);
  border: 3px solid var(--outline);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  container-type: inline-size;
}

.recent-card img,
.recent-card video {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  cursor: pointer;
}

.recent-card video {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #000;
}

.recent-meta {
  padding: 10px 12px;
  gap: 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  font-size: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.9);
}

.recent-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.recent-prompt {
  color: rgba(11, 27, 45, 0.75);
  font-size: 11px;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.recent-meta button {
  --btn-press-depth: 4px;
  --btn-shadow-rest: 0 4px 0 var(--outline), 0 10px 16px rgba(0, 0, 0, 0.2);
  --btn-shadow-hover: 0 6px 0 var(--outline), 0 14px 20px rgba(0, 0, 0, 0.24);
  --btn-shadow-flat: 0 0 0 var(--outline), 0 4px 8px rgba(0, 0, 0, 0.16);
  border: 3px solid var(--outline);
  background: linear-gradient(135deg, #ffe66a 0%, #ff9a1a 100%);
  color: #0b1b2d;
  padding: 8px 10px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 11px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
  box-shadow: var(--btn-shadow-rest);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  font-family: "Bungee", sans-serif;
  width: 100%;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@container (max-width: 220px) {
  .recent-meta {
    grid-template-columns: 1fr;
  }
}

.recent-meta button:hover {
  transform: translateY(-2px);
  box-shadow: var(--btn-shadow-hover);
  filter: brightness(1.04);
}

.recent-meta button:active {
  transform: translateY(var(--btn-press-depth));
  box-shadow: var(--btn-shadow-flat);
  filter: brightness(0.96);
}

.recent-meta button.danger {
  background: linear-gradient(135deg, #ff7a6d 0%, #ff3b30 100%);
  color: #000000;
  text-shadow: none;
}

.recent-meta button.danger:hover {
  filter: brightness(1.02);
}

.recent-placeholder {
  border: 2px dashed rgba(11, 27, 45, 0.4);
  border-radius: 16px;
  padding: 18px;
  text-align: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.7);
}

.recent-actions {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.load-more {
  --btn-press-depth: 6px;
  --btn-shadow-rest: 0 6px 0 var(--outline), 0 12px 18px rgba(0, 0, 0, 0.22);
  --btn-shadow-hover: 0 8px 0 var(--outline), 0 16px 22px rgba(0, 0, 0, 0.26);
  --btn-shadow-flat: 0 0 0 var(--outline), 0 4px 9px rgba(0, 0, 0, 0.17);
  border: 3px solid var(--outline);
  background: #ffe66a;
  color: #0b1b2d;
  font-family: "Bungee", sans-serif;
  font-size: 12px;
  padding: 10px 14px;
  border-radius: 14px;
  cursor: pointer;
  width: 100%;
  max-width: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--btn-shadow-rest);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, filter 0.2s ease;
}

.load-more:hover {
  transform: translateY(-2px);
  background: #ffcf3e;
  box-shadow: var(--btn-shadow-hover);
  filter: brightness(1.04);
}

.load-more:active {
  transform: translateY(var(--btn-press-depth));
  box-shadow: var(--btn-shadow-flat);
  filter: brightness(0.96);
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5, 10, 18, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  display: grid;
  gap: 12px;
  align-items: center;
  justify-items: center;
}

.lightbox-content img,
.lightbox-content video {
  max-width: min(92vw, 1200px);
  max-height: 90vh;
  border-radius: 18px;
  border: 4px solid var(--outline);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  background: #fff;
}

.lightbox-content .lightbox-video {
  display: none;
  background: #000;
}

.lightbox-meta {
  width: min(92vw, 1200px);
  border-radius: 16px;
  border: 3px solid var(--outline);
  background: rgba(255, 255, 255, 0.92);
  padding: 10px 12px;
  display: grid;
  gap: 6px;
  align-items: start;
  box-shadow: var(--shadow);
  color: var(--text);
}

.lightbox-time {
  font-family: "Bungee", sans-serif;
  font-size: 12px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.lightbox-prompt {
  font-size: 12px;
  color: var(--muted);
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.lightbox-close {
  --btn-press-depth: 6px;
  --btn-shadow-rest: 0 6px 0 var(--outline), 0 12px 18px rgba(0, 0, 0, 0.22);
  --btn-shadow-hover: 0 8px 0 var(--outline), 0 16px 22px rgba(0, 0, 0, 0.26);
  --btn-shadow-flat: 0 0 0 var(--outline), 0 4px 9px rgba(0, 0, 0, 0.17);
  position: absolute;
  top: 30px;
  right: 18px;
  border: 3px solid var(--outline);
  background: #ffe66a;
  color: #0b1b2d;
  font-family: "Bungee", sans-serif;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: var(--btn-shadow-rest);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.lightbox-close:hover {
  transform: translateY(-2px);
  box-shadow: var(--btn-shadow-hover);
  filter: brightness(1.04);
}

.lightbox-close:active {
  transform: translateY(var(--btn-press-depth));
  box-shadow: var(--btn-shadow-flat);
  filter: brightness(0.96);
}

.review-modal {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(900px 520px at 12% 8%, rgba(127, 227, 255, 0.22), transparent 62%),
    radial-gradient(900px 520px at 88% 10%, rgba(255, 91, 214, 0.2), transparent 62%),
    rgba(5, 10, 18, 0.78);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  z-index: 1001;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.review-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.review-card {
  width: min(92vw, 560px);
  background:
    radial-gradient(circle at 20px 20px, rgba(255, 255, 255, 0.42) 0 3px, transparent 4px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(247, 251, 255, 0.98));
  background-size: 28px 28px, auto;
  border: 4px solid var(--outline);
  border-radius: 24px;
  box-shadow:
    0 24px 62px rgba(0, 0, 0, 0.46),
    0 10px 0 var(--outline),
    0 0 0 3px rgba(255, 255, 255, 0.44);
  padding: 0;
  display: grid;
  overflow: hidden;
  position: relative;
  isolation: isolate;
}

.review-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(520px 240px at 120% -10%, rgba(255, 79, 69, 0.22), transparent 70%),
    radial-gradient(420px 220px at -18% 115%, rgba(31, 224, 123, 0.2), transparent 72%);
  pointer-events: none;
  z-index: 0;
}

.review-reward,
.review-copy,
.review-stars,
.review-timer,
.review-actions {
  margin-left: 18px;
  margin-right: 18px;
  position: relative;
  z-index: 1;
}

.review-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 10px;
  padding: 14px 16px;
  margin: 0;
  border-bottom: 3px solid var(--outline);
  background:
    linear-gradient(135deg, rgba(255, 230, 106, 0.82), rgba(255, 154, 26, 0.52)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.88));
}

.review-title {
  font-family: "Bungee", sans-serif;
  min-width: 0;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: clamp(19px, 2.8vw, 24px);
  line-height: 1;
  letter-spacing: 0.45px;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.35);
}

.review-close {
  --btn-press-depth: 5px;
  --btn-shadow-rest: 0 5px 0 var(--outline), 0 10px 16px rgba(0, 0, 0, 0.2);
  --btn-shadow-hover: 0 7px 0 var(--outline), 0 14px 20px rgba(0, 0, 0, 0.24);
  --btn-shadow-flat: 0 0 0 var(--outline), 0 4px 8px rgba(0, 0, 0, 0.16);
  border: 3px solid var(--outline);
  background: linear-gradient(135deg, #ffe66a 0%, #ff9a1a 100%);
  color: #0b1b2d;
  font-family: "Bungee", sans-serif;
  font-size: 15px;
  line-height: 1;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: var(--btn-shadow-rest);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  flex: 0 0 auto;
}

.review-close:hover {
  transform: translateY(-2px);
  box-shadow: var(--btn-shadow-hover);
  filter: brightness(1.04);
}

.review-close:active {
  transform: translateY(var(--btn-press-depth));
  box-shadow: var(--btn-shadow-flat);
  filter: brightness(0.96);
}

.review-reward {
  display: grid;
  gap: 5px;
  margin-top: 14px;
  position: relative;
  border: 3px solid var(--outline);
  border-radius: 18px;
  padding: 11px 12px 12px;
  background:
    radial-gradient(circle at 22px 22px, rgba(255, 255, 255, 0.2) 0 3px, transparent 4px),
    linear-gradient(145deg, #ff9a7f 0%, #ff4f45 45%, #ff7a00 100%);
  box-shadow: 0 7px 0 var(--outline), 0 18px 26px rgba(0, 0, 0, 0.26);
  overflow: hidden;
}

.review-reward::before {
  content: "";
  position: absolute;
  inset: -40% 36% auto -22%;
  height: 160%;
  background: linear-gradient(95deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0));
  transform: rotate(10deg);
  pointer-events: none;
}

.review-reward-kicker {
  font-family: "Bungee", sans-serif;
  font-size: 10px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255, 252, 218, 0.96);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.22);
}

.review-reward-title {
  font-family: "Bungee", sans-serif;
  font-size: clamp(21px, 4.6vw, 29px);
  line-height: 0.96;
  letter-spacing: 0.4px;
  color: #ffffff;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.24);
}

.review-reward-note {
  width: fit-content;
  max-width: 100%;
  border: 2px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(11, 27, 45, 0.22);
  color: #ffffff;
  padding: 4px 8px;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 600;
}

.review-copy {
  color: #20384d;
  font-size: 14px;
  line-height: 1.34;
  margin-top: 8px;
}

.review-stars {
  display: flex;
  justify-content: space-between;
  gap: 7px;
  margin-top: 3px;
}

.review-star {
  border: 3px solid var(--outline);
  background:
    radial-gradient(circle at 20px 20px, rgba(255, 255, 255, 0.34) 0 2px, transparent 3px),
    linear-gradient(180deg, #ffffff 0%, #edf4ff 100%);
  color: rgba(11, 27, 45, 0.45);
  border-radius: 14px;
  min-height: 64px;
  width: 100%;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.14s ease, filter 0.14s ease;
  box-shadow: 0 4px 0 var(--outline), 0 10px 14px rgba(0, 0, 0, 0.18);
}

.review-star:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--outline), 0 14px 20px rgba(0, 0, 0, 0.22);
}

.review-star:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--outline), 0 6px 10px rgba(0, 0, 0, 0.16);
}

.review-star.is-on {
  background: linear-gradient(135deg, #ffe66a 0%, #ffb327 42%, #ff7a00 100%);
  color: #0b1b2d;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.35);
  filter: saturate(1.14);
  animation: reviewStarSpark 180ms ease-out;
}

.review-timer {
  margin-top: 8px;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Bungee", sans-serif;
  font-size: 11px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #17344a;
  border: 3px solid var(--outline);
  border-radius: 999px;
  padding: 5px 11px 5px 8px;
  background:
    radial-gradient(circle at 13px 13px, rgba(255, 255, 255, 0.55) 0 2px, transparent 3px),
    linear-gradient(
      135deg,
      rgba(255, 230, 106, 0.78) 0%,
      rgba(255, 154, 26, 0.45) 52%,
      rgba(255, 255, 255, 0.9) 100%
    );
  box-shadow: 0 4px 0 var(--outline), 0 10px 14px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.review-timer::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--outline);
  background: radial-gradient(circle at 35% 35%, #fffad6 0 35%, #ff7a00 64%, #ff3b30 100%);
  box-shadow: 0 0 0 2px rgba(255, 79, 69, 0.2);
  flex: 0 0 auto;
}

.review-timer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.33), transparent);
  transform: translateX(-130%);
  animation: reviewTimerSheen 2.6s ease-in-out infinite;
  pointer-events: none;
}

.review-timer strong {
  color: #ff3b30;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
  animation: reviewTimerPulse 1s ease-in-out infinite;
}

.review-actions {
  display: grid;
  margin-top: 8px;
  margin-bottom: 18px;
}

.review-submit {
  --btn-press-depth: 6px;
  --btn-shadow-rest: 0 6px 0 var(--outline), 0 12px 18px rgba(0, 0, 0, 0.22);
  --btn-shadow-hover: 0 8px 0 var(--outline), 0 16px 22px rgba(0, 0, 0, 0.26);
  --btn-shadow-flat: 0 0 0 var(--outline), 0 4px 9px rgba(0, 0, 0, 0.17);
  border: 3px solid var(--outline);
  background: linear-gradient(135deg, #ffe66a 0%, #ff9a1a 100%);
  color: #0b1b2d;
  font-family: "Bungee", sans-serif;
  font-size: 13px;
  padding: 10px 12px;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: var(--btn-shadow-rest);
  width: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.review-submit:hover {
  transform: translateY(-2px);
  box-shadow: var(--btn-shadow-hover);
  filter: brightness(1.04);
}

.review-submit:active {
  transform: translateY(var(--btn-press-depth));
  box-shadow: var(--btn-shadow-flat);
  filter: brightness(0.96);
}

.review-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  filter: none;
  box-shadow: 0 4px 0 var(--outline);
}

@media (max-width: 700px) {
  .review-head {
    column-gap: 8px;
    padding: 10px 12px;
  }

  .review-title {
    font-size: clamp(13px, 3.6vw, 18px);
    letter-spacing: 0.2px;
    line-height: 1;
  }

  .review-close {
    width: 32px;
    height: 32px;
    font-size: 13px;
    border-width: 2px;
    border-radius: 10px;
  }
}

@media (max-width: 560px) {
  .review-reward,
  .review-copy,
  .review-stars,
  .review-timer,
  .review-actions {
    margin-left: 14px;
    margin-right: 14px;
  }

  .review-title {
    font-size: clamp(12px, 4.5vw, 16px);
    letter-spacing: 0.12px;
  }

  .review-star {
    min-height: 58px;
    font-size: 32px;
  }

  .review-timer {
    gap: 6px;
    font-size: 10px;
    padding: 5px 10px 5px 7px;
  }

  .review-timer::before {
    width: 9px;
    height: 9px;
  }

  .review-reward-note {
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .review-timer::after,
  .review-timer strong {
    animation: none;
  }
}

@keyframes reviewTimerSheen {
  0% {
    transform: translateX(-130%);
  }
  60% {
    transform: translateX(150%);
  }
  100% {
    transform: translateX(150%);
  }
}

@keyframes reviewTimerPulse {
  0%,
  100% {
    transform: scale(1);
    filter: brightness(1);
  }
  50% {
    transform: scale(1.05);
    filter: brightness(1.08);
  }
}

@keyframes reviewStarSpark {
  from {
    transform: scale(0.92);
  }
  to {
    transform: scale(1);
  }
}

/* ── Upsell Card ── */
.upsell-modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 10, 18, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 1002;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.upsell-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.upsell-card {
  width: 100%;
  max-width: 560px;
  background: linear-gradient(180deg, #121e30 0%, #0a1422 100%);
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-bottom: none;
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -10px 48px rgba(0, 0, 0, 0.58);
  padding: 8px 16px 28px;
  display: grid;
  gap: 14px;
  transform: translateY(110%);
  transition: transform 0.32s cubic-bezier(0.2, 0.92, 0.28, 1);
  color: #fff;
}

.upsell-modal.is-open .upsell-card {
  transform: translateY(0);
}

.upsell-handle {
  width: 36px;
  height: 4px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  justify-self: center;
  margin-bottom: 2px;
}

.upsell-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.upsell-eyebrow {
  font-family: "Bungee", sans-serif;
  font-size: 10px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #7fe3ff;
  margin-bottom: 3px;
}

.upsell-title {
  font-family: "Bungee", sans-serif;
  font-size: clamp(18px, 4vw, 22px);
  line-height: 1.1;
  color: #fff;
}

.upsell-close {
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  font-size: 14px;
  cursor: pointer;
  flex: 0 0 auto;
  transition: background 0.15s ease;
}

.upsell-close:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

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

.upsell-plan {
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 13px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: rgba(255, 255, 255, 0.05);
}

.upsell-plan.is-popular {
  border-color: #7fe3ff;
  background: rgba(127, 227, 255, 0.07);
}

.upsell-plan-badge {
  font-family: "Bungee", sans-serif;
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #0b1b2d;
  background: #7fe3ff;
  border-radius: 999px;
  padding: 2px 8px;
  width: max-content;
  margin-bottom: 5px;
}

.upsell-plan-name {
  font-family: "Bungee", sans-serif;
  font-size: 15px;
  color: #fff;
}

.upsell-plan-desc {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.48);
  line-height: 1.35;
}

.upsell-plan-price {
  font-family: "Bungee", sans-serif;
  font-size: 20px;
  color: #fff;
  margin: 5px 0 0;
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.upsell-plan-price small {
  font-family: "Rubik", sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
}

.upsell-price-free {
  color: #61d66f;
}

.upsell-price-old {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.3);
  text-decoration: line-through;
}

.upsell-cta {
  border: 3px solid #0b1b2d;
  border-radius: 11px;
  padding: 9px 10px;
  font-family: "Bungee", sans-serif;
  font-size: 12px;
  color: #0b1b2d;
  background: linear-gradient(135deg, #ffe66a 0%, #ff9a1a 100%);
  box-shadow: 0 4px 0 #0b1b2d, 0 10px 14px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  transition: transform 0.13s ease, box-shadow 0.13s ease;
  margin-top: auto;
  align-self: end;
  width: 100%;
}

.upsell-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #0b1b2d, 0 14px 18px rgba(0, 0, 0, 0.3);
}

.upsell-cta:active {
  transform: translateY(3px);
  box-shadow: 0 0 0 #0b1b2d, 0 4px 8px rgba(0, 0, 0, 0.18);
}

.upsell-plan.is-popular .upsell-cta {
  background: linear-gradient(135deg, #7fe3ff 0%, #4ec5ff 100%);
}

@media (max-width: 400px) {
  .upsell-plans {
    grid-template-columns: 1fr;
  }

  .upsell-card {
    padding: 8px 14px 24px;
    gap: 12px;
  }
}

.report-modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 10, 18, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.report-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.report-card {
  width: min(92vw, 680px);
  background: rgba(255, 255, 255, 0.98);
  border: 4px solid var(--outline);
  border-radius: 22px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.report-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(255, 230, 106, 0.55), rgba(255, 255, 255, 0.9));
  border-bottom: 3px solid var(--outline);
}

.report-title {
  font-family: "Bungee", sans-serif;
  font-size: 16px;
}

.report-close {
  --btn-press-depth: 5px;
  --btn-shadow-rest: 0 5px 0 var(--outline), 0 10px 16px rgba(0, 0, 0, 0.2);
  --btn-shadow-hover: 0 7px 0 var(--outline), 0 14px 20px rgba(0, 0, 0, 0.24);
  --btn-shadow-flat: 0 0 0 var(--outline), 0 4px 8px rgba(0, 0, 0, 0.16);
  border: 3px solid var(--outline);
  background: #ffe66a;
  color: #0b1b2d;
  font-family: "Bungee", sans-serif;
  font-size: 12px;
  padding: 7px 10px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: var(--btn-shadow-rest);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.report-close:hover {
  transform: translateY(-2px);
  box-shadow: var(--btn-shadow-hover);
  filter: brightness(1.04);
}

.report-close:active {
  transform: translateY(var(--btn-press-depth));
  box-shadow: var(--btn-shadow-flat);
  filter: brightness(0.96);
}

.report-body {
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}

.report-preview {
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 3px solid var(--outline);
  background: #fff;
  box-shadow: var(--shadow);
}

.report-preview-video {
  display: none;
  background: #000;
}

.report-form {
  display: grid;
  gap: 12px;
}

.report-field span {
  display: block;
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 6px;
}

.report-form select,
.report-form textarea {
  width: 100%;
  border-radius: 14px;
  border: 3px solid var(--outline);
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
  background: #ffffff;
  color: var(--text);
  box-shadow: inset 0 2px 0 rgba(0, 0, 0, 0.08);
  outline: none;
}

.report-form .custom-select__button,
.report-form select,
.report-form textarea {
  font-weight: 700;
}

.report-form textarea::placeholder {
  font-weight: 700;
}

.report-actions {
  display: grid;
}

.report-submit {
  --btn-press-depth: 6px;
  --btn-shadow-rest: 0 6px 0 var(--outline), 0 12px 18px rgba(0, 0, 0, 0.22);
  --btn-shadow-hover: 0 8px 0 var(--outline), 0 16px 22px rgba(0, 0, 0, 0.26);
  --btn-shadow-flat: 0 0 0 var(--outline), 0 4px 9px rgba(0, 0, 0, 0.17);
  border: 3px solid var(--outline);
  background: linear-gradient(135deg, #ff7a6d 0%, #ff3b30 100%);
  color: #fff;
  font-family: "Bungee", sans-serif;
  font-size: 13px;
  padding: 10px 12px;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: var(--btn-shadow-rest);
  width: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.report-submit:hover {
  transform: translateY(-2px);
  box-shadow: var(--btn-shadow-hover);
  filter: brightness(1.04);
}

.report-submit:active {
  transform: translateY(var(--btn-press-depth));
  box-shadow: var(--btn-shadow-flat);
  filter: brightness(0.96);
}

.report-submit:disabled {
  opacity: 0.75;
  cursor: wait;
  box-shadow: 0 4px 0 var(--outline);
  transform: none;
  filter: none;
}

.report-status {
  font-size: 12px;
  color: var(--muted);
  min-height: 16px;
}

@media (max-width: 800px) {
  .report-body {
    grid-template-columns: 1fr;
  }
}

.output-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 18px;
  border: 3px solid var(--outline);
  overflow: hidden;
  box-shadow: var(--shadow);
  animation: pop 0.4s ease;
}

.output-card.is-loading {
  border-style: solid;
}

.loading-preview {
  height: 220px;
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.95);
}

.loading-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.75),
    rgba(255, 230, 106, 0.45),
    rgba(255, 255, 255, 0.75)
  );
  background-size: 200% 100%;
  animation: shimmer 1.6s ease-in-out infinite;
  opacity: 0.6;
  pointer-events: none;
}

.loading-ghost {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(14px) saturate(1.05) contrast(1.02) brightness(1.05);
  transform: scale(1.08);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.loading-ghost.is-ready {
  opacity: 0.85;
}

.loading-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  font-family: "Bungee", sans-serif;
  font-size: 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.9);
}

.loading-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.loading-spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 3px solid rgba(11, 27, 45, 0.18);
  border-top-color: rgba(11, 27, 45, 0.9);
  animation: spin 0.9s linear infinite;
  flex: 0 0 auto;
}

.loading-copy {
  display: grid;
  gap: 2px;
}

.loading-title {
  letter-spacing: 0.8px;
  text-transform: uppercase;
  font-size: 13px;
}

.loading-sub {
  font-family: "Rubik", sans-serif;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0;
}

.loading-bar {
  height: 6px;
  background: rgba(11, 27, 45, 0.08);
  overflow: hidden;
}

.loading-bar span {
  display: block;
  height: 100%;
  width: 42%;
  background: linear-gradient(
    90deg,
    rgba(255, 230, 106, 0.25),
    rgba(255, 122, 0, 0.9),
    rgba(31, 224, 123, 0.4)
  );
  transform: translateX(-60%);
  animation: loadSweep 1.15s ease-in-out infinite;
}

.loading-dots::after {
  content: none;
}

.loading-dots {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.loading-dots .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text);
  opacity: 0.2;
  animation: dotPulse 1.1s ease-in-out infinite;
}

.loading-dots .dot:nth-child(2) {
  animation-delay: 0.2s;
}

.loading-dots .dot:nth-child(3) {
  animation-delay: 0.4s;
}

.output-card.is-error {
  border-color: #ff7a00;
  background: #fff5e6;
}

.error-body {
  padding: 18px;
}

.error-body h3 {
  margin-bottom: 6px;
  font-family: "Bungee", sans-serif;
}

.error-body p {
  color: var(--muted);
  font-size: 13px;
}

@keyframes pop {
  from {
    transform: translateY(8px) scale(0.98);
    opacity: 0.4;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes shimmer {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 200% 0%;
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes loadSweep {
  0% {
    transform: translateX(-60%);
  }
  55% {
    transform: translateX(150%);
  }
  100% {
    transform: translateX(150%);
  }
}

@keyframes dotPulse {
  0%,
  100% {
    opacity: 0.2;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

.output-card img,
.output-card video {
  width: 100%;
  display: block;
  height: auto;
}

.output-card video {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #000;
}

.output-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.9);
}

.meta-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.output-meta button {
  --btn-press-depth: 5px;
  --btn-shadow-rest: 0 5px 0 var(--outline), 0 12px 18px rgba(0, 0, 0, 0.22);
  --btn-shadow-hover: 0 7px 0 var(--outline), 0 16px 22px rgba(0, 0, 0, 0.26);
  --btn-shadow-flat: 0 0 0 var(--outline), 0 4px 9px rgba(0, 0, 0, 0.17);
  border: 3px solid var(--outline);
  background: linear-gradient(135deg, #ffe66a 0%, #ff9a1a 100%);
  color: #0b1b2d;
  padding: 8px 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  font-size: 13px;
  font-family: "Bungee", sans-serif;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.35);
  box-shadow: var(--btn-shadow-rest);
}

.output-meta button:first-child {
  margin-right: auto;
}

.output-meta button:hover {
  transform: translateY(-2px);
  box-shadow: var(--btn-shadow-hover);
  filter: brightness(1.04);
}

.output-meta button:active {
  transform: translateY(var(--btn-press-depth));
  box-shadow: var(--btn-shadow-flat);
  filter: brightness(0.96);
}

.output-meta button.danger {
  background: linear-gradient(135deg, #ff7a6d 0%, #ff3b30 100%);
  color: #000000;
  text-shadow: none;
}

.output-meta button.danger:hover {
  filter: brightness(1.02);
}

.output-meta button.is-clicking,
.recent-meta button.is-clicking,
.load-more.is-clicking,
.report-close.is-clicking,
.lightbox-close.is-clicking,
.report-submit.is-clicking,
.review-close.is-clicking {
  animation: buttonPress3d 240ms cubic-bezier(0.22, 0.96, 0.33, 1);
}

@keyframes buttonPress3d {
  0% {
    transform: translateY(0);
    box-shadow: var(--btn-shadow-rest);
    filter: brightness(1);
  }
  38% {
    transform: translateY(var(--btn-press-depth));
    box-shadow: var(--btn-shadow-flat);
    filter: brightness(0.96);
  }
  72% {
    transform: translateY(calc(var(--btn-press-depth) - 2px));
    box-shadow: var(--btn-shadow-flat);
    filter: brightness(1.01);
  }
  100% {
    transform: translateY(0);
    box-shadow: var(--btn-shadow-rest);
    filter: brightness(1);
  }
}

.placeholder {
  border-radius: 18px;
  padding: 24px;
  border: 2px dashed rgba(11, 27, 45, 0.35);
  display: grid;
  gap: 36px;
  align-items: center;
  justify-items: center;
  text-align: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.7);
}

.placeholder-art-wrap {
  position: relative;
  display: grid;
  place-items: center;
}

.placeholder-fun-note {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translate(-50%, 8px) scale(0.94);
  opacity: 0;
  pointer-events: none;
  width: min(92vw, 330px);
  padding: 10px 14px;
  border-radius: 14px;
  border: 3px solid var(--outline);
  font-family: "Bungee", sans-serif;
  font-size: 11px;
  line-height: 1.25;
  letter-spacing: 0.45px;
  color: #0b1b2d;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
  background: linear-gradient(
    135deg,
    rgba(127, 227, 255, 0.94) 0%,
    rgba(255, 91, 214, 0.88) 28%,
    rgba(255, 230, 106, 0.92) 62%,
    rgba(31, 224, 123, 0.88) 100%
  );
  box-shadow: 0 6px 0 var(--outline), 0 14px 20px rgba(0, 0, 0, 0.24);
  z-index: 2;
}

.placeholder-fun-note.is-showing {
  animation: placeholderNotePop 1.7s cubic-bezier(0.22, 0.96, 0.33, 1) forwards;
}

@keyframes placeholderNotePop {
  0% {
    opacity: 0;
    transform: translate(-50%, 10px) scale(0.9);
  }
  14% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
  72% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -4px) scale(0.96);
  }
}

.placeholder-art {
  width: 128px;
  height: 128px;
  border-radius: 52% 48% 58% 42% / 48% 56% 44% 52%;
  background: conic-gradient(
    from 210deg,
    rgba(127, 227, 255, 0.95),
    rgba(255, 91, 214, 0.85),
    rgba(255, 230, 106, 0.9),
    rgba(31, 224, 123, 0.85),
    rgba(127, 227, 255, 0.95)
  );
  border: 3px solid var(--outline);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.placeholder-art::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.85), transparent 58%);
  opacity: 0.7;
}

.placeholder-art::after {
  content: "";
  position: absolute;
  left: -30%;
  top: -30%;
  width: 160%;
  height: 160%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: rotate(18deg);
  animation: shimmer 1.6s ease-in-out infinite;
  opacity: 0.45;
}

.placeholder-art:hover {
  transform: translateY(-2px) scale(1.02);
  filter: saturate(1.08) brightness(1.02);
}

.placeholder-art:active {
  transform: translateY(1px) scale(0.95);
  box-shadow: 0 4px 0 #0b1b2d, 0 10px 16px rgba(0, 0, 0, 0.22);
}

.placeholder-art:focus-visible {
  outline: none;
  box-shadow:
    0 8px 0 #0b1b2d,
    0 18px 28px rgba(0, 0, 0, 0.25),
    0 0 0 4px rgba(255, 122, 0, 0.35);
}

.placeholder-art.is-clicking {
  animation: placeholderClickPop 360ms cubic-bezier(0.2, 1.15, 0.35, 1);
}

@keyframes placeholderClickPop {
  0% {
    transform: scale(1) rotate(0deg);
  }
  20% {
    transform: scale(0.9) rotate(-6deg);
  }
  60% {
    transform: scale(1.1) rotate(4deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}

.footer {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 20px 28px;
  border-radius: 18px;
  border: 3px solid var(--outline);
  background: linear-gradient(135deg, rgba(255, 230, 106, 0.4) 0%, rgba(255, 255, 255, 0.92) 60%, rgba(29, 217, 118, 0.15) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 4px 0 var(--outline),
    0 12px 24px rgba(0, 0, 0, 0.18);
  font-size: 13px;
  color: var(--muted);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-strong) 40%, var(--accent-soft) 100%);
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.footer-brand {
  font-weight: 600;
  letter-spacing: 0.6px;
  color: var(--text);
  font-family: "Bungee", sans-serif;
  font-size: 15px;
  line-height: 1;
}

.footer-copy {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.3px;
}

.footer-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer-tagline {
  text-transform: uppercase;
  letter-spacing: 1.4px;
  font-size: 10px;
  color: var(--text);
  font-family: "Bungee", sans-serif;
  opacity: 0.7;
}

.footer-links {
  display: flex;
  gap: 12px;
}

.footer-link {
  --btn-press-depth: 3px;
  font-family: "Bungee", sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  padding: 5px 13px;
  border-radius: 20px;
  border: 2px solid var(--outline);
  background: var(--accent);
  letter-spacing: 0.4px;
  box-shadow: 0 3px 0 var(--outline), 0 6px 10px rgba(0, 0, 0, 0.15);
  transition: background 0.15s, transform 0.1s, box-shadow 0.1s;
}

.footer-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 0 var(--outline), 0 10px 14px rgba(0, 0, 0, 0.18);
}

.footer-link:active {
  transform: translateY(var(--btn-press-depth));
  box-shadow: 0 0 0 var(--outline), 0 3px 6px rgba(0, 0, 0, 0.12);
  filter: brightness(0.97);
}

.footer-right {
  display: flex;
  justify-content: flex-end;
}

.footer-socials {
  display: flex;
  gap: 8px;
  align-items: center;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 2px solid var(--outline);
  background: #fff;
  color: var(--text);
  box-shadow: 0 2px 0 var(--outline);
  transition: background 0.15s, transform 0.1s, box-shadow 0.1s;
  text-decoration: none;
}

.footer-social-link:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 0 var(--outline);
}

.footer-social-link:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0 var(--outline);
}

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

  .tag-shell {
    gap: 10px;
  }

  .tag-icon-btn {
    width: 50px;
    height: 50px;
  }

  .tag-icon-btn svg {
    width: 22px;
    height: 22px;
  }

  .tag {
    font-size: 15px;
    letter-spacing: 1.6px;
    padding: 9px 14px;
  }

}

@media (max-width: 600px) {
  body {
    padding: 24px 18px 32px;
  }

  .topbar {
    gap: 10px;
  }

  .control-row {
    grid-template-columns: 1fr;
  }

  .tag-shell {
    gap: 8px;
  }

  .tag-icon-btn {
    width: 44px;
    height: 44px;
  }

  .tag-icon-btn svg {
    width: 20px;
    height: 20px;
  }

  .tag {
    font-size: 13px;
    letter-spacing: 1.2px;
    padding: 8px 12px;
  }

  .footer {
    grid-template-columns: 1fr;
    gap: 16px;
    text-align: center;
    padding: 20px;
  }

  .footer-left {
    align-items: center;
  }

  .footer-right {
    justify-content: center;
  }
}

@media (max-width: 380px) {
  body {
    padding: 24px 16px 32px;
  }

  .layout {
    margin-top: 24px;
    gap: 16px;
  }

  .panel,
  .recent-panel {
    padding: 20px;
    border-radius: 16px;
  }

  .panel-head h1 {
    font-size: clamp(20px, 6.8vw, 24px);
  }

  .panel-head h2 {
    font-size: 18px;
  }

  .prompt-form {
    margin-top: 16px;
    gap: 14px;
  }

  textarea,
  select,
  .custom-select__button {
    font-size: 14px;
    padding: 12px 12px;
  }

  #prompt-form .prompt-input-wrap textarea {
    padding-right: 58px;
  }

  .prompt-random-btn {
    width: 33px;
    height: 33px;
    right: 8px;
    bottom: 12px;
  }

  .prompt-random-btn svg {
    width: 15px;
    height: 19px;
  }

  .custom-select__button {
    padding-right: 38px;
  }

  .recent-gallery {
    grid-template-columns: 1fr;
  }

  .output-card,
  .recent-card {
    border-radius: 14px;
  }
}
