.ai-generator-page {
  background: #0f141b;
}

.ai-generator-page .navbar.bg-primary {
  background-color: #252e3c !important;
}

.aiw-hero {
  --ai-header-bg: #252e3c;
  --ai-surface-base: #0f141b;
  --ai-panel-dark: #1b2027;
  --ai-result-panel-start: #162238;
  --ai-result-panel-end: #202d47;
  --ai-text-primary: #e8edf4;
  --ai-text-muted: #b4becb;
  --ai-border: #2e3b52;
  --ai-status-connected: #34d399;
  --ai-accent: #8ab4ff;
  --ai-eyebrow-bg: rgba(138, 180, 255, 0.16);
  font-family: "Lato", sans-serif;
  background: linear-gradient(180deg, #10151d 0%, #0f141b 100%);
  color: var(--ai-text-primary);
  padding: 116px 0 44px;
}

.aiw-hero[data-theme="business"] {
  --ai-accent: #7dd3fc;
  --ai-eyebrow-bg: rgba(125, 211, 252, 0.16);
}

.aiw-hero[data-theme="services"] {
  --ai-accent: #8ab4ff;
  --ai-eyebrow-bg: rgba(138, 180, 255, 0.16);
}

.aiw-hero[data-theme="offers"] {
  --ai-accent: #93c5fd;
  --ai-eyebrow-bg: rgba(147, 197, 253, 0.16);
}

.aiw-hero[data-theme="names"] {
  --ai-accent: #67e8f9;
  --ai-eyebrow-bg: rgba(103, 232, 249, 0.16);
}

.aiw-shell {
  max-width: 1280px;
}

.aiw-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--ai-eyebrow-bg);
  color: var(--ai-accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 700;
}

.aiw-title {
  margin-top: 16px;
  font-size: clamp(1.56rem, 3.05vw, 3rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ai-text-primary);
}

.aiw-subtitle {
  margin-top: 14px;
  max-width: 760px;
  font-size: clamp(1rem, 1.7vw, 1.22rem);
  line-height: 1.42;
  color: var(--ai-text-muted);
}

.aiw-grid {
  margin-top: 24px;
}

.aiw-grid > [class*="col-"] {
  display: flex;
}

.aiw-panel {
  background: var(--ai-panel-dark);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
  width: 100%;
}

.aiw-panel-body {
  padding: 1.45rem;
}

.aiw-panel-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--ai-text-primary);
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.aiw-input-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 0.9rem;
  color: #d6deea;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  font-weight: 700;
}

.aiw-input-optional {
  margin-left: auto;
  font-size: 0.85rem;
  font-weight: 700;
  opacity: 0.72;
  letter-spacing: 0.06em;
}

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

.aiw-input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(180, 190, 203, 0.75);
  pointer-events: none;
}

.aiw-input-icon-top {
  top: 14px;
  transform: none;
}

.aiw-input,
.aiw-textarea {
  width: 100%;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #e7edf7;
  padding: 12px 14px 12px 42px;
  font-size: 1.08rem;
}

.aiw-textarea {
  min-height: 94px;
  resize: vertical;
}

.aiw-input::placeholder,
.aiw-textarea::placeholder {
  color: rgba(180, 190, 203, 0.55);
}

.aiw-submit {
  margin-top: 8px;
  width: 100%;
  border: 0;
  border-radius: 12px;
  min-height: 58px;
  padding: 13px 18px;
  font-size: 1.03rem;
  line-height: 1.25;
  font-weight: 700;
  color: #12253b;
  background: var(--ai-accent);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.aiw-submit-content,
.aiw-submit-loading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.aiw-submit-loading {
  display: none;
}

.aiw-submit.is-loading .aiw-submit-content {
  display: none;
}

.aiw-submit.is-loading .aiw-submit-loading {
  display: inline-flex;
}

.aiw-spinner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(18, 37, 59, 0.28);
  border-top-color: #12253b;
  animation: aiwSpin 0.9s linear infinite;
}

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

.aiw-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.22);
}

.aiw-sample-btn {
  margin-top: 16px;
  display: inline-block;
  border: 0;
  background: transparent;
  color: var(--ai-accent);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
}

.aiw-result {
  background:
    radial-gradient(circle at 84% 18%, rgba(103, 232, 249, 0.05), transparent 42%),
    linear-gradient(140deg, #0f192b 0%, #141f35 100%);
  border: 1px solid rgba(130, 162, 217, 0.22);
  border-radius: 10px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.26);
  width: 100%;
  display: flex;
  flex-direction: column;
}

.aiw-result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border-bottom: 0;
  padding: 15px 18px;
}

.aiw-result-title-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.aiw-result-icon {
  color: var(--ai-accent);
}

.aiw-result-title {
  font-size: clamp(0.8rem, 1.35vw, 1.15rem);
  line-height: 1.2;
  font-weight: 700;
}

.aiw-status-dot-wrap {
  margin-left: auto;
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.aiw-connected-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(82, 214, 157, 0.9);
  box-shadow: 0 0 0 0 rgba(82, 214, 157, 0.35);
  animation: aiwPulse 2.2s infinite;
}

@keyframes aiwPulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); }
  70% { box-shadow: 0 0 0 12px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.aiw-result-body {
  padding: 16px 18px 14px;
  background: transparent;
  flex: 1;
}

.aiw-empty-state {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 10px;
  border: 0;
  background: transparent;
  color: var(--ai-text-muted);
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.aiw-empty-state::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 42%, rgba(127, 188, 255, 0.04), transparent 62%);
  opacity: 0.4;
  animation: aiwAmbientBreath 2.8s ease-in-out infinite;
  pointer-events: none;
}

.ai-generator-page .aiw-hero + section {
  background: #ffffff;
}

.aiw-empty-state .js-empty-content {
  position: relative;
  z-index: 1;
}

.aiw-empty-icon-wrap {
  margin: 0 auto 16px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 1px solid rgba(137, 168, 212, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ai-accent);
  animation: aiwBreath 2.8s ease-in-out infinite;
}

.aiw-empty-icon-wrap .material-icons {
  font-size: 28px !important;
}

.aiw-empty-title {
  font-size: clamp(1.4rem, 2.45vw, 2.03rem);
  line-height: 1.08;
  margin-bottom: 10px;
  color: var(--ai-text-primary);
  font-weight: 700;
}

.aiw-empty-text {
  margin: 0;
  font-size: clamp(0.74rem, 1.25vw, 0.95rem);
  line-height: 1.45;
}

.aiw-empty-state .aiw-empty-title,
.aiw-empty-state .aiw-empty-text {
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.aiw-empty-state.is-generating .aiw-empty-title,
.aiw-empty-state.is-generating .aiw-empty-text {
  opacity: 0.32;
  transform: translateY(2px);
}

@keyframes aiwBreath {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.86;
  }
  50% {
    transform: scale(1.035);
    opacity: 1;
  }
}

@keyframes aiwAmbientBreath {
  0%,
  100% {
    opacity: 0.36;
  }
  50% {
    opacity: 0.5;
  }
}

.aiw-output-text {
  border-radius: 8px;
  border: 1px solid rgba(108, 171, 230, 0.35);
  border-left: 4px solid rgba(108, 171, 230, 0.35);
  background: linear-gradient(145deg, rgba(34, 43, 61, 0.66), rgba(24, 33, 51, 0.84));
  padding: 16px 18px 20px;
  color: #dce5f4;
  transition: background 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.aiw-output-text-refresh {
  animation: aiwTextCardRefresh 460ms ease;
}

.aiw-line-pre-enter {
  opacity: 0;
  transform: translateY(6px);
}

.aiw-line-enter {
  animation: aiwLineIn 260ms ease forwards;
}

.aiw-output-text:hover {
  border-left-color: #8de1ff;
  border-color: rgba(136, 197, 255, 0.42);
  background: linear-gradient(145deg, rgba(26, 35, 52, 0.78), rgba(19, 28, 43, 0.9));
  box-shadow: inset 0 0 0 1px rgba(86, 150, 220, 0.2);
}

.aiw-output-text h4 {
  font-size: clamp(1.35rem, 2vw, 2.1rem);
  margin-bottom: 14px;
  font-weight: 700;
  color: #f0f5fe;
}

.aiw-output-list {
  display: grid;
  gap: 14px;
}

.aiw-output-list-refreshing {
  filter: saturate(1.05);
}

.aiw-output-text .js-body-lines p {
  margin-bottom: 7px;
  font-size: 1.08rem;
  line-height: 1.42;
}

.aiw-why-block {
  margin-top: 16px;
  border-radius: 10px;
  padding: 13px 14px;
  background: rgba(11, 15, 24, 0.7);
  border: 1px solid rgba(107, 186, 245, 0.22);
}

.aiw-why-label {
  color: #82ceff;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.84rem;
  font-weight: 700;
}

.aiw-why-text {
  color: #dde7f8;
  font-size: 1.02rem;
  line-height: 1.35;
}

.aiw-list-item {
  border-radius: 10px;
  border: 1px solid rgba(146, 179, 229, 0.2);
  border-left: 4px solid rgba(146, 179, 229, 0.2);
  background: rgba(18, 27, 43, 0.72);
  padding: 16px;
  transition: background 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.aiw-list-item-pre-enter {
  opacity: 0;
  transform: translateY(8px);
}

.aiw-list-item-enter {
  animation: aiwOfferRowIn 320ms ease forwards;
}

.aiw-list-item:hover {
  border-left-color: #8de1ff;
  border-color: rgba(136, 197, 255, 0.42);
  background: rgba(15, 22, 36, 0.86);
  box-shadow: inset 0 0 0 1px rgba(86, 150, 220, 0.16);
}

@keyframes aiwOfferRowIn {
  0% {
    opacity: 0;
    transform: translateY(8px);
    border-left-color: rgba(141, 225, 255, 0.15);
  }
  65% {
    opacity: 1;
    transform: translateY(0);
    border-left-color: rgba(141, 225, 255, 0.85);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    border-left-color: rgba(146, 179, 229, 0.2);
  }
}

@media (prefers-reduced-motion: reduce) {
  .aiw-list-item-pre-enter {
    opacity: 1;
    transform: none;
  }

  .aiw-list-item-enter {
    animation: none;
  }

  .aiw-tile-pre-enter {
    opacity: 1;
    transform: none;
  }

  .aiw-tile-enter,
  .aiw-tile-exit {
    animation: none;
  }

  .aiw-output-text-refresh,
  .aiw-line-enter {
    animation: none;
  }

  .aiw-line-pre-enter {
    opacity: 1;
    transform: none;
  }
}

.aiw-list-desc {
  margin: 12px 0 0 46px;
  color: #c3d0e3;
  font-size: 0.98rem;
  line-height: 1.4;
}

.aiw-list-item-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.aiw-list-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--ai-accent);
  font-weight: 700;
}

.aiw-list-title {
  flex: 1;
  margin: 2px 0 0 12px;
  font-size: 1.25rem;
  line-height: 1.24;
  color: #eef3fb;
  font-weight: 700;
}

.aiw-list-chip {
  border-radius: 7px;
  border: 1px solid rgba(147, 197, 253, 0.25);
  background: rgba(147, 197, 253, 0.12);
  color: #b7d9ff;
  padding: 4px 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.aiw-list-chip-seasonal {
  border-color: rgba(124, 205, 255, 0.45);
  background: rgba(124, 205, 255, 0.2);
  color: #d7f2ff;
}

.aiw-output-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  height: 100%;
}

.aiw-output-tiles-refreshing {
  filter: saturate(1.05);
}

.aiw-tile {
  border-radius: 8px;
  border: 1px solid rgba(146, 179, 229, 0.2);
  border-left: 4px solid rgba(146, 179, 229, 0.2);
  background: rgba(21, 30, 47, 0.74);
  padding: 16px;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  transition: background 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.aiw-tile-pre-enter {
  opacity: 0;
  transform: translateY(8px);
}

.aiw-tile-enter {
  animation: aiwTileIn 320ms ease forwards;
}

.aiw-tile-exit {
  animation: aiwTileOut 170ms ease forwards;
}

.aiw-tile:hover {
  border-left-color: #8de1ff;
  border-color: rgba(136, 197, 255, 0.42);
  background: rgba(16, 24, 39, 0.86);
  box-shadow: inset 0 0 0 1px rgba(86, 150, 220, 0.16);
}

@keyframes aiwTileIn {
  0% {
    opacity: 0;
    transform: translateY(8px);
    border-left-color: rgba(141, 225, 255, 0.2);
  }
  65% {
    opacity: 1;
    transform: translateY(0);
    border-left-color: rgba(141, 225, 255, 0.85);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    border-left-color: rgba(146, 179, 229, 0.2);
  }
}

@keyframes aiwTileOut {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(7px);
  }
}

@keyframes aiwTextCardRefresh {
  0% {
    box-shadow: inset 0 0 0 0 rgba(118, 188, 248, 0);
  }
  45% {
    box-shadow: inset 0 0 0 1px rgba(118, 188, 248, 0.22);
  }
  100% {
    box-shadow: inset 0 0 0 0 rgba(118, 188, 248, 0);
  }
}

@keyframes aiwLineIn {
  0% {
    opacity: 0;
    transform: translateY(6px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.aiw-tile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.aiw-tile-chip {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(103, 232, 249, 0.16);
  color: #9fefff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.aiw-tile-idea-icon {
  font-size: 19px;
  color: rgba(228, 233, 243, 0.7);
}

.aiw-tile-title {
  margin-top: 14px;
  font-size: 1.7rem;
  line-height: 1.2;
  font-weight: 700;
  color: #f3f8ff;
}

.aiw-tile-desc {
  margin-top: 10px;
  color: #b9c6da;
  font-size: 1.06rem;
  line-height: 1.35;
}

.aiw-tile-footer {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 10px;
}

.aiw-tile-copy-btn {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(7, 12, 20, 0.2);
  color: rgba(226, 236, 249, 0.88);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.aiw-tile-copy-btn .material-icons {
  font-size: 16px;
}

.aiw-tile-copy-btn.copied {
  color: #87ffd0;
  border-color: rgba(82, 214, 157, 0.45);
}

.aiw-result-footer {
  border-top: 0;
  padding: 14px 20px;
  color: rgba(197, 208, 222, 0.75);
  font-size: 0.87rem;
  letter-spacing: 0.05em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.aiw-copy-btn {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(7, 12, 20, 0.25);
  color: rgba(221, 231, 247, 0.88);
  border-radius: 7px;
  padding: 5px 11px;
  font-size: 0.84rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 700;
}

.aiw-copy-btn:hover {
  border-color: rgba(255, 255, 255, 0.22);
  color: #edf3ff;
}

.aiw-copy-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

@media (max-width: 991px) {
  .aiw-hero {
    padding-top: 102px;
  }

  .aiw-grid > [class*="col-"] {
    display: block;
  }

  .aiw-panel-title {
    font-size: 1.44rem;
  }

  .aiw-output-tiles {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}
