﻿/* ========================================
   Write Tool Page — SaaS revamp (rich)
   Scoped styles loaded only on the write-tool template.
   Depends on the variables defined in /css/styles.css
   (--primary, --gray-*, --font-heading, etc.)
   ======================================== */

/* All sections on the write-tool template share a clean white surface */
body { background: #f3f5fb; }

/* Hero (.page-title-bar--saas) and its blobs/eyebrow/subtitle are centralized
   in /css/hero.css, loaded by the {{> hero-saas}} partial. */

/* Respect reduced motion (write-tool-only animations) */
@media (prefers-reduced-motion: reduce) {
  .wt-live-users__dot::after,
  .wt-live-pop,
  .wt-activity-feed.is-fresh .wt-activity-feed__avatar,
  .wt-activity-feed.is-fresh .wt-activity-feed__text,
  .wt-activity-feed.is-fresh .wt-activity-feed__time {
    animation: none;
  }
}

/* Steps section + Section content typography polish are centralized in
   /css/tool-sections.css (loaded by write-tool-page.hbs and image-tool-page.hbs). */

/* ----- Tool Section ----- */
.section--tool {
  background: #f3f5fb;
}

.section--tool {
  padding: 60px 0 90px;
  position: relative;
}

.tool-container {
  align-items: stretch;
  gap: 24px;
}

.wt-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 18px;
  padding: 32px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 32px rgba(15, 23, 42, 0.06);
}

/* Accent stripe at top of the form card.
   No overflow:hidden so the floating cloud pop can extend above the card.
   Stripe gets rounded top corners to match the card's border-radius. */
.wt-card--accent {
  position: relative;
}

.wt-card--accent::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary);
  border-radius: 18px 18px 0 0;
}

.tool__form.wt-card {
  padding: 32px;
  margin: 0 14px 14px 0; /* breathing room for the right + bottom 3D sides */
  border: none;                                       /* no border on the card */
  box-shadow:
    inset 0 3px 0 rgba(255, 255, 255, 0.85),         /* bright top highlight */
    inset 0 -3px 0 rgba(15, 23, 42, 0.05),            /* inner bottom shade */
    inset -3px 0 0 rgba(15, 23, 42, 0.04),            /* inner right shade */
    0 12px 0 #b6c1f4,                                 /* light blue bottom 3D side */
    10px 0 0 #b6c1f4,                                 /* light blue right 3D side */
    10px 12px 0 #b6c1f4,                              /* corner connector */
    14px 28px 50px rgba(42, 65, 232, 0.20),           /* primary-tinted ambient drop shadow */
    0 1px 2px rgba(15, 23, 42, 0.06);
}

.wt-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--gray-200);
}

.wt-card__title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.wt-card__icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.30),
    inset 0 -2px 0 rgba(0, 0, 0, 0.18),
    0 6px 14px rgba(42, 65, 232, 0.30);
}

/* Eyebrow tag above the form heading */
.wt-card__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  margin-bottom: 8px;
  background: rgba(42, 65, 232, 0.10);
  border: 1px solid rgba(42, 65, 232, 0.22);
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  border-radius: 999px;
}

.wt-card__eyebrow i {
  font-size: 10px;
}

.wt-card__subtitle {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.5;
}

.tool__form-heading {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--gray-800);
}

/* Accent highlight under a key word in the heading */
.tool__form-heading__accent {
  position: relative;
  color: var(--primary);
  white-space: nowrap;
}

.tool__form-heading__accent::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: 1px;
  height: 8px;
  background: rgba(245, 165, 36, 0.45); /* warm amber highlighter */
  border-radius: 2px;
  z-index: -1;
}

.wt-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-heading);
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.wt-badge--free {
  background: #e6fbef;
  color: #0a7d3b;
  border: 1px solid #b6f0c9;
}

.wt-badge--free i {
  font-size: 11px;
}

/* Header meta cluster (right side of the form card header) */
.wt-card__head-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* "Live users" pill */
.wt-live-users {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: rgba(34, 197, 94, 0.10);
  color: #15803d;
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2px;
  white-space: nowrap;
  position: relative;
}

/* Floating "+N" cloud — proper SVG cumulus shape that drifts up and fades */
.wt-live-pop {
  position: absolute;
  top: -28px;
  right: -6px;
  width: 64px;
  height: 34px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}

.wt-live-pop.is-active {
  visibility: visible;
}

.wt-live-pop__shape {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 4px 8px rgba(15, 23, 42, 0.18));
  overflow: visible;
}

.wt-live-pop__text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 800;
  color: #16a34a;
  z-index: 1;
  margin-top: 1px; /* nudge slightly to optically center inside the cloud body */
  letter-spacing: 0.2px;
}

.wt-live-pop.is-active {
  animation: wt-live-pop-cloud 2.4s ease-out forwards;
}

@keyframes wt-live-pop-cloud {
  0%   { opacity: 0;    transform: translateY(8px)  translateX(0)  scale(0.6); }
  18%  { opacity: 1;    transform: translateY(-2px) translateX(-3px) scale(1.06); }
  45%  { opacity: 1;    transform: translateY(-18px) translateX(3px) scale(1); }
  75%  { opacity: 0.6;  transform: translateY(-34px) translateX(-2px) scale(0.96); }
  100% { opacity: 0;    transform: translateY(-52px) translateX(0)  scale(0.90); }
}

.wt-live-users__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.22);
  flex-shrink: 0;
  position: relative;
}

.wt-live-users__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #22c55e;
  animation: wt-live-ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes wt-live-ping {
  0%   { transform: scale(1);   opacity: 0.7; }
  80%, 100% { transform: scale(2.6); opacity: 0; }
}

.wt-live-users strong {
  color: #15803d;
  font-weight: 700;
  display: inline-block;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
              color 0.25s ease;
}

.wt-live-users.is-tick strong {
  transform: translateY(-2px) scale(1.08);
  color: #16a34a;
}

.wt-live-users > span:last-child {
  color: #166534;
  font-weight: 500;
  opacity: 0.8;
}

/* ===== Live activity feed (rotating mock events) ===== */
.wt-activity-feed {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 9px 14px 9px 9px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  font-size: 13px;
  color: var(--gray-600);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

/* Sidebar variant — wraps to 2 lines so it fits the narrow column */
.wt-activity-feed--sidebar {
  flex-wrap: wrap;
  border-radius: 12px;
  padding: 12px;
  margin-top: 0;
  font-size: 12.5px;
}

.wt-activity-feed--sidebar .wt-activity-feed__text {
  flex: 1 1 0;
  min-width: 0;
  white-space: normal;
  line-height: 1.4;
}

.wt-activity-feed--sidebar .wt-activity-feed__time {
  flex: 0 0 100%;
  margin-left: 36px;
  font-size: 11px;
}

.wt-activity-feed__avatar {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #4f46e5;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  transition: background 0.3s ease;
}

.wt-activity-feed__text {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wt-activity-feed__text strong {
  color: var(--gray-800);
  font-weight: 600;
}

.wt-activity-feed__time {
  flex-shrink: 0;
  color: var(--gray-400);
  font-size: 12px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.wt-activity-feed__time::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.20);
}

/* When the feed updates, slide-in fresh */
.wt-activity-feed.is-fresh .wt-activity-feed__avatar,
.wt-activity-feed.is-fresh .wt-activity-feed__text,
.wt-activity-feed.is-fresh .wt-activity-feed__time {
  animation: wt-activity-fresh 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes wt-activity-fresh {
  0%   { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}


/* Field grouping */
.wt-field {
  margin-bottom: 16px;
}

.wt-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 10px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

/* Each label icon becomes a small colored tile */
.wt-label i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: rgba(42, 65, 232, 0.10);
  color: var(--primary);
  font-size: 11px;
}

/* Slimmer/cleaner inputs inside the new card */
.wt-card .form-select,
.wt-card .form-textarea,
.wt-card .form-input {
  border: 1px solid var(--gray-300);
  border-radius: 10px;
  background: var(--white);
  margin-bottom: 0;
  padding: 12px 14px;
  font-size: 15px;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
}

.wt-card .form-select:hover,
.wt-card .form-textarea:hover,
.wt-card .form-input:hover {
  border-color: var(--gray-400);
}

.wt-card .form-select:focus,
.wt-card .form-textarea:focus,
.wt-card .form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(42, 65, 232, 0.12);
}

.wt-card .form-textarea {
  height: 168px;
  line-height: 1.6;
}

/* Custom select chevron */
.wt-select-wrap {
  position: relative;
}

.wt-select-wrap::after {
  content: "\f078"; /* fa chevron-down */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-600);
  font-size: 11px;
  pointer-events: none;
}

.wt-select-wrap .form-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 36px;
  background-image: none;
}

/* Helper hint becomes a soft primary-tinted callout */
.wt-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 0;
  padding: 10px 14px;
  background: rgba(42, 65, 232, 0.06);
  border-left: 3px solid var(--primary);
  border-radius: 0 10px 10px 0;
  font-size: 13px;
  color: var(--gray-800);
  font-family: var(--font-heading);
  font-weight: 500;
}

.wt-hint i {
  color: var(--primary);
  font-size: 13px;
  flex-shrink: 0;
}

/* Advanced toggle — pill button instead of plain text */
.advanced-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  margin: 8px 0 16px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-800);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.advanced-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(42, 65, 232, 0.04);
}

.advanced-toggle > i:first-child {
  color: var(--primary);
  font-size: 12px;
}

/* Advanced settings — soft tinted card with cleaner grouping */
.advanced-settings {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px;
  gap: 16px;
  margin-bottom: 18px;
  padding: 20px;
  background: #f8f9ff;
  border: 1px solid #e3e7ff;
  border-radius: 14px;
  position: relative;
}

.advanced-settings::before {
  content: "Customize";
  position: absolute;
  top: -10px;
  left: 16px;
  padding: 2px 10px;
  background: var(--white);
  border: 1px solid #e3e7ff;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--primary);
}

.advanced-settings .wt-field {
  margin-bottom: 0;
}

.advanced-settings .wt-label {
  font-size: 11px;
}

/* Advanced toggle caret */
.advanced-toggle__caret {
  font-size: 11px !important;
  color: var(--gray-600);
  transition: transform 0.2s ease;
}

/* Generate button — 3D pressable */
.btn--generate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 17px;
  padding: 18px 22px;
  border-radius: 14px;
  margin-top: 6px;
  font-weight: 600;
  position: relative;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.30),     /* top highlight */
    inset 0 -2px 0 rgba(0, 0, 0, 0.18),           /* inner bottom shade */
    0 5px 0 #1e33c9,                              /* solid 3D bottom edge */
    0 8px 16px rgba(42, 65, 232, 0.35),           /* ambient drop shadow */
    0 1px 2px rgba(15, 23, 42, 0.10);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn--generate:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -2px 0 rgba(0, 0, 0, 0.18),
    0 7px 0 #1e33c9,                              /* taller edge on hover */
    0 12px 22px rgba(42, 65, 232, 0.42),
    0 1px 2px rgba(15, 23, 42, 0.10);
}

.btn--generate:active {
  transform: translateY(4px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.20),
    inset 0 -1px 0 rgba(0, 0, 0, 0.20),
    0 1px 0 #1e33c9,                              /* edge shrinks when pressed */
    0 2px 4px rgba(42, 65, 232, 0.22);
}

.btn--generate i {
  font-size: 16px;
}

.btn--generate__shortcut {
  margin-left: 6px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

/* Meta row under the CTA — styled chips instead of plain text */
.wt-meta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--gray-800);
}

.wt-meta-row span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px 6px 8px;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 500;
}

.wt-meta-row i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: rgba(42, 65, 232, 0.10);
  color: var(--primary);
  font-size: 10px;
}

#loadMoreOutputs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}


/* ----- Sidebar (stats + tip + mini CTA) ----- */
.tool__stats.wt-stats {
  width: 300px;
  border: 1px solid var(--gray-200);
  background: var(--white);
  border-radius: 18px;
  padding: 24px;
  gap: 18px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 32px rgba(15, 23, 42, 0.06);
  position: sticky;
  top: 130px;
  align-self: flex-start;
}

.wt-stats__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--gray-200);
}

.wt-stats__heading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-800);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin: 0;
}

.wt-stats__heading i {
  color: var(--primary);
  font-size: 13px;
}

.wt-stats__pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
  animation: wtPulse 1.6s ease-in-out infinite;
}

@keyframes wtPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18); }
  50% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0.05); }
}

/* 2-column stats grid */
.wt-stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.wt-stats .stat-box {
  text-align: left;
  padding: 14px 12px;
  border-radius: 12px;
  background: #f8f9ff;
  border: 1px solid #e8ebfd;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  transition: border-color 0.15s, transform 0.15s;
}

.wt-stats .stat-box:hover {
  border-color: rgba(42, 65, 232, 0.35);
  transform: translateY(-1px);
}

.wt-stats .stat-box__value {
  font-size: 26px;
  line-height: 1;
  color: var(--primary);
  font-weight: 700;
}

.wt-stats .stat-box__label {
  font-size: 11px;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 500;
}

.wt-tips {
  margin-top: 0;
  padding: 16px;
  background: rgba(42, 65, 232, 0.06);
  border: 1px solid rgba(42, 65, 232, 0.20);
  border-radius: 14px;
}

.wt-tips h4 {
  margin: 0 0 6px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.wt-tips p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--gray-800);
}

/* Mini CTA card in sidebar */
.wt-mini-cta {
  background: #0b1220;
  color: #fff;
  border-radius: 14px;
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.wt-mini-cta::before {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(245, 165, 36, 0.18);
  bottom: -60px;
  right: -50px;
  filter: blur(24px);
  pointer-events: none;
}

.wt-mini-cta__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.wt-mini-cta__badge {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #f5a524;
  color: #1f1500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.wt-mini-cta__head strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}

.wt-mini-cta__head p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.7);
}

.wt-mini-cta__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  background: var(--white);
  color: #0b1220;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  position: relative;
  z-index: 1;
  transition: transform 0.15s, background 0.15s;
}

.wt-mini-cta__link:hover {
  background: #f5a524;
  color: #1f1500;
  transform: translateX(2px);
}

.wt-mini-cta__link i {
  font-size: 11px;
}


/* ===== Custom dropdown — replaces native <select> visuals ===== */
.wt-select {
  position: relative;
  width: 100%;
}

.wt-select select {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wt-select__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-800);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.wt-select__trigger:hover {
  border-color: var(--gray-400);
}

.wt-select__trigger:focus,
.wt-select__trigger.is-open {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(42, 65, 232, 0.12);
}

.wt-select__value {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wt-select__caret {
  flex-shrink: 0;
  color: var(--gray-600);
  font-size: 11px;
  transition: transform 0.2s ease, color 0.15s;
}

.wt-select__trigger.is-open .wt-select__caret {
  transform: rotate(180deg);
  color: var(--primary);
}

.wt-select__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 100%;
  width: max-content;
  max-width: 320px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
  z-index: 100;
  padding: 6px;
  max-height: 320px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.wt-select__menu[hidden] { display: none; }

.wt-select__search {
  width: 100%;
  padding: 9px 12px;
  margin-bottom: 4px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--gray-800);
  background: var(--gray-100);
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}

.wt-select__search:focus {
  border-color: var(--primary);
  background: var(--white);
}

.wt-select__options {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  flex: 1;
}

.wt-select__options::-webkit-scrollbar { width: 6px; }
.wt-select__options::-webkit-scrollbar-track { background: transparent; }
.wt-select__options::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 6px;
}

.wt-select__options li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 7px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--gray-800);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.12s, color 0.12s;
}

.wt-select__options li:hover,
.wt-select__options li.is-active {
  background: rgba(42, 65, 232, 0.06);
  color: var(--primary);
}

.wt-select__options li.is-selected {
  background: rgba(42, 65, 232, 0.10);
  color: var(--primary);
  font-weight: 600;
}

.wt-select__options li.is-selected::after {
  content: "\f00c"; /* fa-check */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 11px;
  color: var(--primary);
}

.wt-select__empty {
  padding: 16px 12px;
  font-size: 13px;
  color: var(--gray-600);
  text-align: center;
}

/* Pro banner — keep clean, no gradient, add tag */
.pro-banner {
  position: relative;
  text-align: left;
  border: 1px solid var(--gray-200);
  background: var(--white);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 18px rgba(15, 23, 42, 0.04);
  padding: 22px 24px;
}

.pro-banner__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: #8a5a00;
  background: #fff4d6;
  border: 1px solid #f5d97c;
  border-radius: 999px;
  margin-bottom: 10px;
}

.pro-banner h3 {
  font-size: 20px;
  color: var(--gray-800);
  margin-bottom: 12px;
}

.pro-banner ul {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
}

.pro-banner ul li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  color: var(--gray-800);
  font-size: 15px;
}

.pro-banner ul li i {
  color: #22c55e;
  font-size: 13px;
}

.pro-banner__actions {
  justify-content: flex-start;
}

/* Loading + output polish */
.loading-spinner {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(42, 65, 232, 0.08);
  border-radius: 10px;
  font-size: 14px;
}

/* Responsive tweaks for the SaaS revamp */
@media (max-width: 1024px) {
  .tool-container {
    flex-direction: column;
  }
  .tool__stats.wt-stats {
    width: 100%;
    position: static;
  }
  .wt-stats__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 900px) {
  .advanced-settings {
    grid-template-columns: 1fr;
  }
  .wt-card,
  .tool__form.wt-card {
    padding: 22px;
  }
  .wt-card__header {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  .wt-stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .wt-card,
  .tool__form.wt-card {
    padding: 18px;
    border-radius: 14px;
  }
  .btn--generate {
    font-size: 15px;
    padding: 14px;
    gap: 8px;
  }
  .btn--generate__shortcut {
    display: none;
  }
  .wt-meta-row {
    gap: 10px;
    font-size: 12px;
  }
  .wt-stats__grid {
    grid-template-columns: 1fr 1fr;
  }
}

