.generator-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1rem;
}

.hero-section {
  text-align: center;
  margin-bottom: 1rem;
}

.hero-section h1 {
  font-size: 3rem;
  font-weight: 800;
  color: #667eea;
  margin-bottom: 1.5rem;
  user-select: none;
}

.hero-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
}

.hero-title-text {
  display: inline-flex;
  white-space: nowrap;
}

.hero-letter {
  display: inline-block;
  background: linear-gradient(135deg, #667eea 0%, #7a57d1 50%, #5e8cff 100%);
  background-size: 220% 220%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation-name: hero-gradient-shift, hero-text-glow, hero-letter-hop;
  animation-duration: 5s, 2.2s, 1.2s;
  animation-timing-function: ease, ease-in-out, ease-in-out;
  animation-iteration-count: infinite, infinite, infinite;
  animation-delay: 0s, 0s, calc(var(--letter-index) * 0.06s);
}

.hero-letter-space {
  display: inline-block;
}

.hero-title-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 10px rgba(111, 123, 236, 0.52));
  animation: rocket-bob 1.9s ease-in-out infinite;
}

@keyframes hero-gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes hero-text-glow {
  0%,
  100% {
    filter: drop-shadow(0 0 0 rgba(122, 87, 209, 0));
  }
  50% {
    filter: drop-shadow(0 0 13px rgba(122, 87, 209, 0.65));
  }
}

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

@keyframes hero-letter-hop {
  0%,
  100% {
    transform: translateY(0);
  }
  25% {
    transform: translateY(-2px);
  }
  50% {
    transform: translateY(0);
  }
}

@keyframes rocket-bob {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
    filter: drop-shadow(0 0 8px rgba(111, 123, 236, 0.42));
  }
  50% {
    transform: translateY(-5px) rotate(2deg);
    filter: drop-shadow(0 0 18px rgba(111, 123, 236, 0.75));
  }
}

.hero-section p {
  font-size: 1.2rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

.filter-form {
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  margin-bottom: 2rem;
}

.selection-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.selection-card {
  border: 1px solid #e2eaf7;
  border-radius: 16px;
  padding: 1.5rem 2.5rem;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(17, 35, 70, 0.08);
  user-select: none;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
  height: fit-content;
}

.selection-card:hover {
  transform: scale(1.03);
  box-shadow: 0 16px 32px rgba(17, 35, 70, 0.13);
}

.selection-card-industry {
  background: linear-gradient(180deg, #f6f3ff 0%, #ffffff 34%);
}

.selection-card-trend {
  background: linear-gradient(180deg, #fff3f8 0%, #ffffff 34%);
}

.selection-card-business-type {
  background: linear-gradient(180deg, #f0fbff 0%, #ffffff 34%);
}

.selection-card-header {
  margin-bottom: 0.75rem;
}

.selection-card-title {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.selection-card-title-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
}

.selection-card-title-icon-industry {
  transform: scale(1.4);
}

.selection-card-header h3 {
  margin: 0;
  font-size: 1rem;
  color: #243b60;
}

.badge-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
  min-height: 90px;
}

.choice-badge {
  color: #fff;
  border-radius: 8px;
  padding: 0.5rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
  width: 100%;
  text-align: left;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  opacity: 0.45;
  border: 4px solid transparent;
  border-right: none;
  border-left: none;
  max-height: fit-content;
}

.choice-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  opacity: 0.75;
}

.choice-badge.is-active {
  opacity: 1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
  border: 4px solid transparent;
  border-right: none;
}

.choice-badge.pinned-badge {
  position: relative;
  padding-right: 2rem;
}

.choice-badge.pinned-badge.is-newly-pinned {
  animation: pinned-badge-appear-active 0.3s ease-out;
}

.choice-badge.pinned-badge::before {
  content: "";
  position: absolute;
  right: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  background-image: url("../icons/white/push-pin.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.85;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
  margin-right: 0.2rem;
}

@keyframes pinned-badge-appear {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 0.45;
    transform: translateX(0);
  }
}

@keyframes pinned-badge-appear-active {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.choice-badge-industry {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.choice-badge-trend {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.choice-badge-business-type {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.show-more-picker-btn {
  margin-top: 0.8rem;
  border: 1px dashed #8ea7ce;
  background: #f3f7ff;
  color: #2c4a77;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.8rem;
  padding: 0.4rem 0.9rem;
  cursor: pointer;
  transition:
    all 0.2s ease,
    transform 0.2s ease;
}

.show-more-picker-btn:hover {
  border-color: #5f84be;
  background: #e8f0ff;
  transform: scale(1.05);
}

.additional-notes-card {
  margin-bottom: 2rem;
  border: 1px solid #d8e4f8;
  border-radius: 16px;
  background: linear-gradient(180deg, #f9fbff 0%, #ffffff 100%);
  box-shadow: 0 10px 24px rgba(17, 35, 70, 0.06);
  user-select: none;
  display: flex;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.additional-notes-card:focus-within {
  transform: scale(1.015);
  box-shadow: 0 14px 32px rgba(17, 35, 70, 0.12);
}

.additional-notes-label {
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  font-size: 1rem;
  font-weight: 700;
  color: #243b60;
  min-width: max-content;
  padding: 0 2.5rem;
  border-right: 1px solid #d8e4f8;
}

.additional-notes-label-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  transform: scale(1.3);
}

.additional-notes-help {
  margin: 0 0 0.9rem;
  color: #5c708f;
  font-size: 0.92rem;
  line-height: 1.5;
}

.additional-notes-input {
  width: 100%;
  resize: vertical;
  border: none;
  border-radius: 16px;
  padding: 1.5rem 2rem;
  background: #fff;
  color: #243b60;
  font: inherit;
  font-weight: 600;
  font-size: .95rem;
  line-height: 1.5;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.additional-notes-input::placeholder {
  color: #c2cfe5;
}

.additional-notes-input:focus {
  outline: none;
  border-color: #7399d5;
  box-shadow:
    0 0 0 3px rgba(103, 141, 205, 0.16),
    0 7px 20px rgba(42, 74, 121, 0.08);
}

.form-actions {
  text-align: center;
}

.btn-generate {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 1rem 3rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition:
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.28s ease,
    filter 0.28s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  animation: generate-btn-glow 2.2s ease-in-out infinite;
  user-select: none;
}

.btn-generate-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

.btn-generate:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 10px 28px rgba(102, 126, 234, 0.62);
  filter: brightness(1.06);
}

.btn-generate:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-generate.loading::after {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid white;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

@keyframes generate-btn-glow {
  0%,
  100% {
    box-shadow: 0 8px 22px rgba(102, 126, 234, 0.55);
  }
  50% {
    box-shadow: 0 14px 34px rgba(118, 75, 162, 0.78);
  }
}

.messages {
  margin-bottom: 2rem;
}

.alert {
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.alert-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.loading-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 16% 14%, rgba(102, 126, 234, 0.2) 0%, rgba(102, 126, 234, 0) 48%),
    radial-gradient(circle at 84% 82%, rgba(245, 87, 108, 0.13) 0%, rgba(245, 87, 108, 0) 52%),
    rgba(247, 250, 255, 0.94);
  backdrop-filter: blur(7px);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 1.25rem;
}

.loading-overlay.active {
  display: flex;
}

.loading-panel {
  width: min(520px, 100%);
  border: 1px solid #d7e3f7;
  border-radius: 20px;
  padding: 1.15rem 1.2rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(246, 250, 255, 0.95) 100%);
  box-shadow:
    0 24px 52px rgba(35, 69, 122, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  animation: loadingPanelAppear 0.42s ease-out;
}

.loading-panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.7rem;
}

.loading-chip {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #35547d;
  border-radius: 999px;
  padding: 0.28rem 0.62rem;
  border: 1px solid #bfd0eb;
  background: linear-gradient(180deg, #ffffff 0%, #f2f7ff 100%);
}

.loading-percent {
  font-size: 0.92rem;
  font-weight: 700;
  color: #496da2;
}

.loading-text {
  font-size: 1.16rem;
  color: #1f3d66;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 0.65rem;
}

.loading-progress {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(180deg, #e8eef8 0%, #dce7f5 100%);
  box-shadow: inset 0 1px 2px rgba(20, 46, 82, 0.14);
}

.loading-progress-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #4f7fff 0%, #6d77f0 44%, #57b3ff 100%);
  box-shadow:
    0 4px 12px rgba(85, 126, 239, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.38);
  transition: width 0.28s ease;
}

.loading-subtext {
  color: #5d769a;
  margin-top: 0.62rem;
  margin-bottom: 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

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

.picker-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.picker-modal.active {
  display: flex;
}

.picker-modal.active .picker-modal-backdrop {
  animation: pickerBackdropFadeIn 0.25s ease-out;
}

.picker-modal.active .picker-modal-dialog {
  animation: pickerModalSlideIn 0.3s ease-out;
}

.picker-modal.is-closing .picker-modal-backdrop {
  animation: pickerBackdropFadeOut 0.25s ease-in forwards;
}

.picker-modal.is-closing .picker-modal-dialog {
  animation: pickerModalSlideOut 0.25s ease-in forwards;
}

@keyframes pickerModalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pickerModalSlideOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-40px);
  }
}

@keyframes pickerBackdropFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes pickerBackdropFadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.picker-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 20, 34, 0.45);
}

.picker-modal-dialog {
  position: relative;
  width: min(760px, 100%);
  max-height: 85vh;
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 20px 50px rgba(11, 22, 40, 0.28);
}

.picker-modal-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.picker-modal-header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #1f3352;
  white-space: nowrap;
}

.picker-modal-search {
  flex: 1;
  min-width: 160px;
  border: 1px solid #bcd1f2;
  background-image:
    url("../icons/gradient/search.png"),
    linear-gradient(135deg, #f9fbff 0%, #f2f7ff 100%);
  background-repeat: no-repeat, no-repeat;
  background-position:
    0.75rem center,
    0 0;
  background-size:
    16px 16px,
    auto;
  color: #244168;
  border-radius: 8px;
  padding: 0.52rem 0.9rem 0.52rem 2.2rem;
  font-size: 0.9rem;
  font-weight: 500;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
  max-width: 40%;
}

.picker-modal-search::placeholder {
  color: #6f87ad;
}

.picker-modal-search {
  flex: 1;
  min-width: 160px;
  border: 1px solid #bcd1f2;
  background-image:
    url("../icons/gradient/search.png"),
    linear-gradient(135deg, #f9fbff 0%, #f2f7ff 100%);
  background-repeat: no-repeat, no-repeat;
  background-position:
    0.75rem center,
    0 0;
  background-size:
    16px 16px,
    auto;
  color: #244168;
  border-radius: 8px;
  padding: 0.52rem 0.9rem 0.52rem 2.2rem;
  font-size: 0.9rem;
  font-weight: 500;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    transform 0.25s ease;
  max-width: 40%;
}

.picker-modal-search:focus {
  border-color: #7399d5;
  background-image:
    url("../icons/gradient/search.png"),
    linear-gradient(135deg, #ffffff 0%, #f4f9ff 100%);
  background-repeat: no-repeat, no-repeat;
  background-position:
    0.75rem center,
    0 0;
  background-size:
    16px 16px,
    auto;
  box-shadow:
    0 0 0 3px rgba(103, 141, 205, 0.16),
    0 7px 20px rgba(42, 74, 121, 0.08);
  transform: scale(1.04);
}

.picker-modal-close {
  margin-left: auto;
  border: none;
  background: #edf3ff;
  color: #31507f;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.picker-modal-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.picker-modal-badges .choice-badge {
  width: auto;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2.1rem;
  }

  .hero-title {
    gap: 0.5rem;
  }

  .hero-title-icon {
    width: 38px;
    height: 38px;
  }

  .btn-generate {
    width: 100%;
    justify-content: center;
  }

  .selection-columns {
    grid-template-columns: 1fr;
  }

  .additional-notes-card {
    padding: 1.1rem;
  }

  .selection-card-title-icon {
    width: 20px;
    height: 20px;
  }

  .picker-modal-header {
    flex-wrap: wrap;
  }

  .picker-modal-header h3 {
    width: 100%;
  }

  .picker-modal-search {
    flex: 1;
  }

  .loading-panel {
    border-radius: 16px;
    padding: 1rem;
  }

  .loading-text {
    font-size: 1.03rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-title,
  .hero-letter,
  .hero-title-icon {
    animation: none;
  }

  .btn-generate {
    animation: none;
  }

  .loading-panel {
    animation: none;
  }

  .loading-progress-bar {
    transition: none;
  }
}

.info-box {
  background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
  border-left: 4px solid #667eea;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.info-box h3 {
  margin-top: 0;
  color: #667eea;
  font-size: 1.1rem;
}

.info-box ul {
  margin-bottom: 0;
  padding-left: 1.5rem;
}

.info-box li {
  margin-bottom: 0.5rem;
  color: #555;
}
