@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css');

/* tc-scoped:tc-wp-tool-root */

/* Full width background root */
.tc-wp-tool-root {
  position: relative !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 auto !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  display: flow-root;
  isolation: isolate;
  overflow: hidden;
  z-index: 0 !important;
}

/* Full width background */
.tc-wp-tool-root::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 84, 178, 0.2), transparent 28%),
    radial-gradient(circle at 86% 12%, rgba(31, 112, 255, 0.18), transparent 26%),
    linear-gradient(135deg, #fff 0%, #f8f4ff 44%, #eef7ff 100%);
  pointer-events: none;
}

/* Full width decorative text background */
.tc-wp-tool-root::before {
  content: "#  #reels  #creator  #social  #tags";
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 22px;
  font-size: clamp(1.8rem, 8vw, 5.5rem);
  font-weight: 900;
  letter-spacing: 0;
  color: rgba(126, 87, 255, 0.08);
  white-space: normal;
  text-align: center;
  pointer-events: none;
}

/* Universal 1200px centered wrapper for all tools */
.tc-wp-tool-root > * {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.tc-wp-tool-root img,
.tc-wp-tool-root video,
.tc-wp-tool-root svg,
.tc-wp-tool-root iframe {
  max-width: 100%;
  height: auto;
}

.tc-wp-tool-root .rhg-reels-hashtag-generator,
.tc-wp-tool-root .rhg-reels-hashtag-generator * {
  box-sizing: border-box;
}

.tc-wp-tool-root .rhg-reels-hashtag-generator {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 16px;
  overflow: visible;
  color: #241342;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  isolation: isolate;
  background: transparent;
}

/* Remove old limited-width background from tool wrapper */
.tc-wp-tool-root .rhg-reels-hashtag-generator::before,
.tc-wp-tool-root .rhg-reels-hashtag-generator::after {
  content: none !important;
}

.tc-wp-tool-root .rhg-shell {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.tc-wp-tool-root .rhg-hero {
  text-align: center;
  margin: 0 auto 24px;
  max-width: 880px;
}

.tc-wp-tool-root .rhg-kicker {
  margin: 0 0 10px;
  color: #6d3df5;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0;
}

.tc-wp-tool-root .rhg-hero h1 {
  margin: 0;
  font-size: clamp(1.8rem, 5vw, 2.8rem) !important;
  line-height: 1.08;
  letter-spacing: 0;
  color: #211136;
}

.tc-wp-tool-root .rhg-tool-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 18px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.tc-wp-tool-root .rhg-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border-radius: 10px;
  border: 1px solid rgba(124, 91, 255, 0.18);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 20px 60px rgba(74, 49, 130, 0.12);
  backdrop-filter: blur(14px);
}

.tc-wp-tool-root .rhg-controls-card,
.tc-wp-tool-root .rhg-output-card {
  padding: 22px;
}

.tc-wp-tool-root .rhg-field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.tc-wp-tool-root .rhg-field label,
.tc-wp-tool-root .rhg-actions-label,
.tc-wp-tool-root .rhg-panel-label {
  color: #4f3a73;
  font-size: 0.83rem;
  font-weight: 800;
  letter-spacing: 0;
}

.tc-wp-tool-root .rhg-field textarea,
.tc-wp-tool-root .rhg-field select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border: 1px solid rgba(109, 61, 245, 0.22);
  border-radius: 10px;
  background: #fff;
  color: #241342;
  font: inherit;
  font-size: 0.96rem;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.tc-wp-tool-root .rhg-field textarea {
  resize: vertical;
  min-height: 148px;
  padding: 15px 16px;
  line-height: 1.5;
}

.tc-wp-tool-root .rhg-field select {
  min-height: 48px;
  padding: 0 14px;
  appearance: auto;
}

.tc-wp-tool-root .rhg-field textarea:focus,
.tc-wp-tool-root .rhg-field select:focus,
.tc-wp-tool-root .rhg-btn:focus-visible,
.tc-wp-tool-root .rhg-tag:focus-visible {
  border-color: #6d3df5;
  box-shadow: 0 0 0 4px rgba(109, 61, 245, 0.16);
}

.tc-wp-tool-root .rhg-select-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.72fr);
  gap: 14px;
  margin-top: 14px;
  width: 100%;
  min-width: 0;
}

.tc-wp-tool-root .rhg-status {
  min-height: 24px;
  margin-top: 14px;
  color: #5c477d;
  font-size: 0.9rem;
  font-weight: 700;
}

.tc-wp-tool-root .rhg-status.rhg-error {
  color: #9d174d;
}

.tc-wp-tool-root .rhg-status.rhg-success {
  color: #146c43;
}

.tc-wp-tool-root .rhg-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  min-width: 0;
}

.tc-wp-tool-root .rhg-actions-label {
  flex: 1 1 100%;
}

.tc-wp-tool-root .rhg-btn {
  width: auto;
  max-width: 100%;
  min-width: 0;
  border: 0;
  border-radius: 10px;
  padding: 12px 16px;
  cursor: pointer;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.tc-wp-tool-root .rhg-btn:hover {
  transform: translateY(-1px);
}

.tc-wp-tool-root .rhg-btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #6d3df5 0%, #247bff 52%, #ff4faa 100%);
  box-shadow: 0 12px 26px rgba(109, 61, 245, 0.28);
}

.tc-wp-tool-root .rhg-btn-secondary,
.tc-wp-tool-root .rhg-btn-copy {
  color: #45256d;
  background: #f5f0ff;
  border: 1px solid rgba(109, 61, 245, 0.18);
}

.tc-wp-tool-root .rhg-output-card {
  display: grid;
  gap: 14px;
}

.tc-wp-tool-root .rhg-output-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.tc-wp-tool-root .rhg-output-head h2 {
  margin: 4px 0 0;
  color: #241342;
  font-size: 1.16rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.tc-wp-tool-root .rhg-count-badge {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 7px 10px;
  background: #eef6ff;
  color: #2158bd;
  font-size: 0.78rem;
  font-weight: 900;
}

.tc-wp-tool-root .rhg-preview {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  max-height: 300px;
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: 10px;
  border: 1px solid rgba(109, 61, 245, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 247, 255, 0.96)),
    repeating-linear-gradient(90deg, transparent 0 24px, rgba(109, 61, 245, 0.04) 24px 25px);
  padding: 16px;
  scrollbar-color: #a98cff #f4efff;
  scrollbar-width: thin;
}

.tc-wp-tool-root .rhg-preview::-webkit-scrollbar {
  width: 10px;
}

.tc-wp-tool-root .rhg-preview::-webkit-scrollbar-track {
  background: #f4efff;
  border-radius: 10px;
}

.tc-wp-tool-root .rhg-preview::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #b291ff, #ff8bc8);
  border-radius: 10px;
}

.tc-wp-tool-root .rhg-skeleton-wrap,
.tc-wp-tool-root .rhg-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.tc-wp-tool-root .rhg-skeleton-pill,
.tc-wp-tool-root .rhg-skeleton-card {
  display: inline-block;
  max-width: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #efe8ff 0%, #f7dff0 50%, #eaf4ff 100%);
  background-size: 220% 100%;
  animation: rhgPulse 1.45s ease-in-out infinite;
}

.tc-wp-tool-root .rhg-skeleton-pill {
  width: 128px;
  height: 34px;
}

.tc-wp-tool-root .rhg-skeleton-pill.rhg-wide {
  width: 178px;
}

.tc-wp-tool-root .rhg-skeleton-pill.rhg-mid {
  width: 150px;
}

.tc-wp-tool-root .rhg-skeleton-pill.rhg-short {
  width: 104px;
}

.tc-wp-tool-root .rhg-skeleton-card {
  width: calc(50% - 5px);
  height: 72px;
  border-radius: 10px;
}

@keyframes rhgPulse {
  0% {
    background-position: 0% 50%;
    opacity: 0.72;
  }

  50% {
    background-position: 100% 50%;
    opacity: 1;
  }

  100% {
    background-position: 0% 50%;
    opacity: 0.72;
  }
}

.tc-wp-tool-root .rhg-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-width: 0;
  border: 1px solid rgba(109, 61, 245, 0.18);
  border-radius: 999px;
  padding: 9px 12px;
  color: #402069;
  background: linear-gradient(135deg, #ffffff 0%, #f5f0ff 54%, #eef7ff 100%);
  box-shadow: 0 8px 18px rgba(74, 49, 130, 0.08);
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 850;
  line-height: 1.2;
  text-align: left;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.tc-wp-tool-root .rhg-btn-copy {
  justify-self: start;
}

/* 320px - 374px */
@media (min-width: 320px) and (max-width: 374px) {
  .tc-wp-tool-root .rhg-reels-hashtag-generator {
    padding: 22px 10px;
  }

  .tc-wp-tool-root .rhg-hero {
    margin-bottom: 16px;
  }

  .tc-wp-tool-root .rhg-kicker {
    font-size: 0.82rem;
  }

  .tc-wp-tool-root .rhg-tool-grid,
  .tc-wp-tool-root .rhg-select-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .tc-wp-tool-root .rhg-tool-grid > * {
    grid-column: 1 / -1;
  }

  .tc-wp-tool-root .rhg-controls-card,
  .tc-wp-tool-root .rhg-output-card {
    padding: 14px;
  }

  .tc-wp-tool-root .rhg-field textarea {
    min-height: 132px;
    font-size: 0.9rem;
    padding: 12px;
  }

  .tc-wp-tool-root .rhg-btn {
    width: 100%;
    font-size: 0.88rem;
    padding: 11px 12px;
  }

  .tc-wp-tool-root .rhg-preview {
    padding: 12px;
  }

  .tc-wp-tool-root .rhg-output-head {
    flex-direction: column;
  }

  .tc-wp-tool-root .rhg-tag {
    font-size: 0.78rem;
    padding: 8px 10px;
  }

  .tc-wp-tool-root .rhg-skeleton-card {
    width: 100%;
  }
}

/* 375px - 429px */
@media (min-width: 375px) and (max-width: 429px) {
  .tc-wp-tool-root .rhg-reels-hashtag-generator {
    padding: 26px 12px;
  }

  .tc-wp-tool-root .rhg-kicker {
    font-size: 0.88rem;
  }

  .tc-wp-tool-root .rhg-tool-grid,
  .tc-wp-tool-root .rhg-select-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .tc-wp-tool-root .rhg-tool-grid > * {
    grid-column: 1 / -1;
  }

  .tc-wp-tool-root .rhg-controls-card,
  .tc-wp-tool-root .rhg-output-card {
    padding: 16px;
  }

  .tc-wp-tool-root .rhg-field textarea {
    min-height: 140px;
    font-size: 0.92rem;
  }

  .tc-wp-tool-root .rhg-btn {
    flex: 1 1 100%;
    font-size: 0.9rem;
  }

  .tc-wp-tool-root .rhg-preview {
    padding: 13px;
  }

  .tc-wp-tool-root .rhg-tag {
    font-size: 0.82rem;
  }

  .tc-wp-tool-root .rhg-skeleton-card {
    width: 100%;
  }
}

/* 430px - 767px */
@media (min-width: 430px) and (max-width: 767px) {
  .tc-wp-tool-root .rhg-reels-hashtag-generator {
    padding: 30px 14px;
  }

  .tc-wp-tool-root .rhg-kicker {
    font-size: 0.94rem;
  }

  .tc-wp-tool-root .rhg-tool-grid,
  .tc-wp-tool-root .rhg-select-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .tc-wp-tool-root .rhg-tool-grid > * {
    grid-column: 1 / -1;
  }

  .tc-wp-tool-root .rhg-controls-card,
  .tc-wp-tool-root .rhg-output-card {
    padding: 18px;
  }

  .tc-wp-tool-root .rhg-field textarea {
    min-height: 146px;
    font-size: 0.95rem;
  }

  .tc-wp-tool-root .rhg-btn {
    flex: 1 1 auto;
    font-size: 0.92rem;
  }

  .tc-wp-tool-root .rhg-preview {
    padding: 14px;
  }

  .tc-wp-tool-root .rhg-tag {
    font-size: 0.86rem;
  }

  .tc-wp-tool-root .rhg-skeleton-card {
    width: 100%;
  }
}

/* 768px - 1023px */
@media (min-width: 768px) and (max-width: 1023px) {
  .tc-wp-tool-root .rhg-reels-hashtag-generator {
    padding: 38px 20px;
  }

  .tc-wp-tool-root .rhg-kicker {
    font-size: 1rem;
  }

  .tc-wp-tool-root .rhg-tool-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .tc-wp-tool-root .rhg-tool-grid > * {
    grid-column: 1 / -1;
  }

  .tc-wp-tool-root .rhg-select-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .tc-wp-tool-root .rhg-controls-card,
  .tc-wp-tool-root .rhg-output-card {
    padding: 22px;
  }

  .tc-wp-tool-root .rhg-preview {
    padding: 16px;
  }

  .tc-wp-tool-root .rhg-tag {
    font-size: 0.9rem;
  }

  .tc-wp-tool-root .rhg-skeleton-card {
    width: calc(50% - 5px);
  }
}

/* 1024px - 1199px */
@media (min-width: 1024px) and (max-width: 1199px) {
  .tc-wp-tool-root .rhg-reels-hashtag-generator {
    padding: 44px 24px;
  }

  .tc-wp-tool-root .rhg-tool-grid {
    grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
    gap: 18px;
  }

  .tc-wp-tool-root .rhg-controls-card,
  .tc-wp-tool-root .rhg-output-card {
    padding: 24px;
  }

  .tc-wp-tool-root .rhg-field textarea {
    min-height: 156px;
    font-size: 0.98rem;
  }

  .tc-wp-tool-root .rhg-btn {
    font-size: 0.94rem;
  }

  .tc-wp-tool-root .rhg-preview {
    padding: 18px;
  }

  .tc-wp-tool-root .rhg-tag {
    font-size: 0.92rem;
  }
}

/* 1200px and above */
@media (min-width: 1200px) {
  .tc-wp-tool-root .rhg-reels-hashtag-generator {
    max-width: 1200px;
    padding: 52px 28px;
  }

  .tc-wp-tool-root .rhg-tool-grid {
    gap: 20px;
  }

  .tc-wp-tool-root .rhg-controls-card,
  .tc-wp-tool-root .rhg-output-card {
    padding: 26px;
  }

  .tc-wp-tool-root .rhg-field textarea {
    min-height: 164px;
    font-size: 1rem;
  }

  .tc-wp-tool-root .rhg-btn {
    font-size: 0.95rem;
    padding: 13px 18px;
  }

  .tc-wp-tool-root .rhg-preview {
    padding: 18px;
  }

  .tc-wp-tool-root .rhg-tag {
    font-size: 0.94rem;
    padding: 10px 13px;
  }
}