﻿/* =========================================================
   Needy Cat Media - Word Counter & Text-to-Speech Modern
   Fully scoped page CSS.
   Loads with: /assets/css/ncm-site-header.css
   No Bootstrap dependency.
========================================================= */

body.ncm-text-tools-page {
  --ncm-bg: #050816;
  --ncm-bg-2: #06101c;
  --ncm-panel: rgba(248, 250, 252, 0.96);
  --ncm-panel-dark: rgba(15, 23, 42, 0.84);
  --ncm-text: #f8fafc;
  --ncm-text-dark: #0f172a;
  --ncm-muted: #cbd5e1;
  --ncm-muted-dark: #475569;
  --ncm-purple: #8b2cff;
  --ncm-purple-2: #d946ef;
  --ncm-purple-dark: #5b16c8;
  --ncm-green: #22c55e;
  --ncm-blue: #2563eb;
  --ncm-pink: #ec4899;
  --ncm-orange: #f59e0b;
  --ncm-red: #ef4444;
  --ncm-radius-xl: 28px;
  --ncm-radius-lg: 22px;
  --ncm-radius-md: 16px;
  --ncm-shadow: 0 26px 70px rgba(0, 0, 0, 0.28);
  --ncm-shadow-soft: 0 16px 42px rgba(15, 23, 42, 0.14);

  margin: 0;
  min-height: 100vh;
  color: var(--ncm-text);
  background:
    radial-gradient(circle at 16% 0%, rgba(139, 44, 255, 0.16), transparent 28rem),
    radial-gradient(circle at 86% 10%, rgba(6, 182, 212, 0.10), transparent 26rem),
    linear-gradient(180deg, #050816 0%, #07101d 48%, #06101c 100%);
  overflow-x: hidden;
}

body.ncm-text-tools-page .text-tools-main *,
body.ncm-text-tools-page .concierge-fab,
body.ncm-text-tools-page .concierge-panel,
body.ncm-text-tools-page .concierge-panel *,
body.ncm-text-tools-page .concierge-backdrop {
  box-sizing: border-box;
}

body.ncm-text-tools-page a {
  color: inherit;
}

body.ncm-text-tools-page .text-tools-main {
  width: min(1520px, calc(100% - 44px));
  margin: 0 auto;
  padding: 34px 0 64px;
}

body.ncm-text-tools-page .text-tools-top {
  margin-bottom: 24px;
}

body.ncm-text-tools-page .text-tools-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: stretch;
}

body.ncm-text-tools-page .text-tools-hero-card {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(168, 85, 247, 0.38);
  background:
    linear-gradient(90deg, rgba(8, 10, 28, 0.98) 0%, rgba(20, 8, 48, 0.82) 34%, rgba(8, 10, 28, 0.34) 72%, rgba(7, 10, 24, 0.18) 100%),
    url("/Images/webp/wc-tts-banner.webp") center right / cover no-repeat,
    linear-gradient(135deg, #160b35, #050816);
  box-shadow: var(--ncm-shadow);
}

body.ncm-text-tools-page .text-tools-hero-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  background: linear-gradient(0deg, rgba(5, 8, 22, 0.70), transparent);
  pointer-events: none;
}

body.ncm-text-tools-page .text-tools-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 610px;
  min-height: 430px;
  padding: clamp(34px, 4vw, 58px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

body.ncm-text-tools-page .text-tools-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin: 0 0 14px;
  color: #d946ef;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

body.ncm-text-tools-page .text-tools-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 999px;
  background: #d946ef;
  box-shadow: 0 0 16px rgba(217, 70, 239, 0.80);
}

body.ncm-text-tools-page .text-tools-hero-copy h1 {
  margin: 0 0 22px;
  color: #fff;
  font-size: clamp(2.45rem, 3.9vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

body.ncm-text-tools-page .text-tools-hero-copy h1 span {
  display: block;
  color: var(--ncm-purple-2);
  text-shadow: 0 12px 34px rgba(217, 70, 239, 0.35);
}

body.ncm-text-tools-page .text-tools-hero-copy p {
  margin: 0;
  max-width: 560px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.08rem;
  line-height: 1.65;
}

body.ncm-text-tools-page .text-tools-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

body.ncm-text-tools-page .text-tools-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.94rem;
  font-weight: 950;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
}

body.ncm-text-tools-page .text-tools-btn:hover,
body.ncm-text-tools-page .text-tools-btn:focus-visible {
  transform: translateY(-1px);
  text-decoration: none;
  outline: none;
}

body.ncm-text-tools-page .text-tools-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

body.ncm-text-tools-page .text-tools-btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--ncm-purple), var(--ncm-purple-2));
  border-color: rgba(217, 70, 239, 0.42);
  box-shadow: 0 16px 34px rgba(139, 44, 255, 0.26);
}

body.ncm-text-tools-page .text-tools-btn-secondary {
  color: #fff;
  background: rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.36);
}

/*
   Normal TTS controls should read as one action family.
   This applies to Preview, Surprise, Pause, and Stop because those
   buttons use .text-tools-btn-secondary inside #tts .tts-controls.
   Export MP3 is outside .tts-controls, so it remains visually separate.
*/
body.ncm-text-tools-page #tts .tts-controls .text-tools-btn-secondary {
  color: #fff;
  background: linear-gradient(135deg, var(--ncm-purple), var(--ncm-purple-2));
  border-color: rgba(217, 70, 239, 0.42);
  box-shadow: 0 14px 28px rgba(139, 44, 255, 0.18);
}

body.ncm-text-tools-page #tts .tts-controls .text-tools-btn-secondary:hover,
body.ncm-text-tools-page #tts .tts-controls .text-tools-btn-secondary:focus-visible {
  filter: brightness(1.04);
}

/* Cleanup buttons: Reset and Clear intentionally match. */
body.ncm-text-tools-page .text-tools-btn-warning,
body.ncm-text-tools-page #reset-button,
body.ncm-text-tools-page #tts .tts-controls .text-tools-btn-warning,
body.ncm-text-tools-page #tts button[onclick="clearText()"] {
  color: #9a3412;
  background: #fff7ed;
  border-color: rgba(249, 115, 22, 0.35);
  box-shadow: none;
}

body.ncm-text-tools-page .text-tools-btn-warning:hover,
body.ncm-text-tools-page .text-tools-btn-warning:focus-visible,
body.ncm-text-tools-page #reset-button:hover,
body.ncm-text-tools-page #reset-button:focus-visible,
body.ncm-text-tools-page #tts .tts-controls .text-tools-btn-warning:hover,
body.ncm-text-tools-page #tts .tts-controls .text-tools-btn-warning:focus-visible,
body.ncm-text-tools-page #tts button[onclick="clearText()"]:hover,
body.ncm-text-tools-page #tts button[onclick="clearText()"]:focus-visible {
  color: #7c2d12;
  background: #ffedd5;
  border-color: rgba(249, 115, 22, 0.50);
}

body.ncm-text-tools-page .text-tools-btn-lg {
  min-height: 50px;
  padding: 0 26px;
}

body.ncm-text-tools-page .text-tools-benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, auto));
  gap: 12px 20px;
  margin-top: 24px;
}

body.ncm-text-tools-page .text-tools-benefits span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 900;
}

body.ncm-text-tools-page .text-tools-benefits span::before,
body.ncm-text-tools-page .ncm-uses-list span::before {
  content: "";
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border-radius: 999px;
  background: var(--ncm-green);
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.18);
}

body.ncm-text-tools-page .text-tools-terms {
  margin-top: 16px !important;
  color: rgba(255, 255, 255, 0.72) !important;
  font-size: 0.82rem !important;
}

body.ncm-text-tools-page .text-tools-terms a {
  color: #fff;
  text-decoration: underline;
}

body.ncm-text-tools-page .text-tools-start-panel {
  padding: 24px;
  border: 1px solid rgba(168, 85, 247, 0.36);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(22, 18, 48, 0.96), rgba(5, 12, 24, 0.96));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

body.ncm-text-tools-page .text-tools-start-panel h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 950;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

body.ncm-text-tools-page .text-tools-start-panel h2::before {
  content: "";
  width: 13px;
  height: 13px;
  border-radius: 3px;
  background: #a855f7;
  transform: rotate(45deg);
}

body.ncm-text-tools-page .text-tools-start-steps {
  list-style: none;
  display: grid;
  gap: 14px;
  margin: 0 0 18px;
  padding: 0;
}

body.ncm-text-tools-page .text-tools-start-steps li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.045);
}

body.ncm-text-tools-page .text-tools-start-steps li > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--ncm-purple), var(--ncm-purple-2));
  color: #fff;
  font-weight: 950;
}

body.ncm-text-tools-page .text-tools-start-steps strong {
  display: block;
  color: #fff;
  margin-bottom: 4px;
}

body.ncm-text-tools-page .text-tools-start-steps small {
  display: block;
  color: #dbeafe;
  font-size: 0.86rem;
  line-height: 1.35;
}

body.ncm-text-tools-page .text-tools-start-panel .text-tools-btn {
  width: 100%;
  margin-top: 10px;
}

body.ncm-text-tools-page .pro-live-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  width: fit-content;
  margin-top: 12px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.35);
  background: #dcfce7;
  color: #14532d;
  font-size: 0.88rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

body.ncm-text-tools-page .pro-live-inline::before,
body.ncm-text-tools-page .tts-pro-active::before {
  content: "";
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  margin-right: 7px;
  border-radius: 999px;
  background: var(--ncm-green);
}

body.ncm-text-tools-page .text-tools-panel,
body.ncm-text-tools-page .text-tools-info-card {
  border-radius: var(--ncm-radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--ncm-shadow-soft);
}

body.ncm-text-tools-page .text-tools-panel {
  margin-top: 22px;
  padding: clamp(20px, 3vw, 30px);
  background:
    radial-gradient(circle at top left, rgba(139, 44, 255, 0.10), transparent 18rem),
    radial-gradient(circle at bottom right, rgba(6, 182, 212, 0.08), transparent 18rem),
    var(--ncm-panel);
  color: var(--ncm-text-dark);
}

body.ncm-text-tools-page .text-tools-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

body.ncm-text-tools-page .text-tools-panel-head h2,
body.ncm-text-tools-page .text-tools-tool-heading h2,
body.ncm-text-tools-page .text-tools-info-card h2 {
  margin: 0;
  color: var(--ncm-text-dark);
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

body.ncm-text-tools-page .text-tools-panel-head p,
body.ncm-text-tools-page .text-tools-tool-heading p,
body.ncm-text-tools-page .text-tools-info-card p,
body.ncm-text-tools-page .text-tools-muted {
  color: var(--ncm-muted-dark);
  line-height: 1.65;
}

body.ncm-text-tools-page .text-tools-panel-head a {
  color: var(--ncm-purple-dark);
  font-weight: 950;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
}

body.ncm-text-tools-page .text-tools-panel-head a:hover {
  text-decoration: underline;
}

body.ncm-text-tools-page .text-tools-workflow-grid,
body.ncm-text-tools-page .text-tools-card-grid,
body.ncm-text-tools-page .text-tools-stat-grid,
body.ncm-text-tools-page .text-tools-faq-grid {
  display: grid;
  gap: 16px;
}

body.ncm-text-tools-page .text-tools-workflow-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.ncm-text-tools-page .text-tools-workflow-grid article,
body.ncm-text-tools-page .text-tools-tool-card,
body.ncm-text-tools-page .text-tools-stat-card,
body.ncm-text-tools-page .text-tools-faq-grid details {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(139, 44, 255, 0.14);
  background: linear-gradient(135deg, #faf5ff, #f8fafc);
  color: var(--ncm-text-dark);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

body.ncm-text-tools-page .text-tools-workflow-grid article {
  min-height: 170px;
  padding: 20px;
  border-left: 6px solid var(--ncm-purple);
}

body.ncm-text-tools-page .text-tools-workflow-grid article::after,
body.ncm-text-tools-page .text-tools-tool-card::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 118px;
  height: 118px;
  border-radius: 999px;
  background: rgba(139, 44, 255, 0.11);
  pointer-events: none;
}

body.ncm-text-tools-page .text-tools-workflow-grid article:nth-child(2) {
  background: linear-gradient(135deg, #eff6ff, #f8fafc);
  border-left-color: var(--ncm-blue);
}

body.ncm-text-tools-page .text-tools-workflow-grid article:nth-child(3) {
  background: linear-gradient(135deg, #ecfdf5, #f8fafc);
  border-left-color: var(--ncm-green);
}

body.ncm-text-tools-page .text-tools-workflow-grid article:nth-child(4) {
  background: linear-gradient(135deg, #fdf2f8, #fff7ed);
  border-left-color: var(--ncm-purple-2);
}

body.ncm-text-tools-page .text-tools-workflow-grid article > span {
  position: relative;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: #fff;
  color: var(--ncm-purple-dark);
  border: 1px solid rgba(139, 44, 255, 0.22);
  font-weight: 950;
}

body.ncm-text-tools-page .text-tools-workflow-grid h3,
body.ncm-text-tools-page .text-tools-tool-card strong,
body.ncm-text-tools-page .text-tools-stat-card h3,
body.ncm-text-tools-page .text-tools-faq-grid summary {
  position: relative;
  z-index: 1;
  color: var(--ncm-text-dark);
  font-weight: 950;
}

body.ncm-text-tools-page .text-tools-workflow-grid h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

body.ncm-text-tools-page .text-tools-workflow-grid p {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  color: var(--ncm-muted-dark);
  font-size: 0.92rem;
  line-height: 1.5;
}

body.ncm-text-tools-page .text-tools-workflow-grid small {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ncm-purple-dark);
  border: 1px solid rgba(148, 163, 184, 0.18);
  font-weight: 900;
  font-size: 0.75rem;
}

body.ncm-text-tools-page .text-tools-activity {
  display: grid;
  gap: 6px;
  text-align: center;
}

body.ncm-text-tools-page .text-tools-activity strong {
  font-size: 1.05rem;
}

body.ncm-text-tools-page .text-tools-activity span,
body.ncm-text-tools-page .text-tools-activity small {
  color: var(--ncm-muted-dark);
}

body.ncm-text-tools-page .text-tools-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 22px;
}

body.ncm-text-tools-page .text-tools-info-card {
  padding: 24px;
  background: rgba(15, 23, 42, 0.86);
}

body.ncm-text-tools-page .text-tools-info-card h2 {
  color: #fff;
}

body.ncm-text-tools-page .text-tools-info-card p {
  color: #dbeafe;
}

body.ncm-text-tools-page .text-tools-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.ncm-text-tools-page .text-tools-tool-card {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  padding: 20px;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

body.ncm-text-tools-page .text-tools-tool-card:hover,
body.ncm-text-tools-page .text-tools-tool-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(139, 44, 255, 0.38);
  box-shadow: 0 20px 46px rgba(15, 23, 42, 0.16);
  outline: none;
}

body.ncm-text-tools-page .text-tools-tool-card > span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--ncm-purple), var(--ncm-purple-2));
  color: #fff;
  font-size: 1.35rem;
}

body.ncm-text-tools-page .text-tools-tool-card small {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 8px;
  color: var(--ncm-muted-dark);
  line-height: 1.45;
}

body.ncm-text-tools-page .text-tools-tool-section {
  scroll-margin-top: 110px;
}

body.ncm-text-tools-page .text-tools-tool-heading {
  text-align: center;
  max-width: 840px;
  margin: 0 auto 22px;
}

body.ncm-text-tools-page .text-tools-tool-heading .text-tools-kicker {
  margin-left: auto;
  margin-right: auto;
}

body.ncm-text-tools-page .text-tools-tool-heading h2 {
  font-size: clamp(1.75rem, 3vw, 2.65rem);
}

body.ncm-text-tools-page .text-tools-input-panel {
  padding: clamp(18px, 3vw, 28px);
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

body.ncm-text-tools-page .text-tools-center {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

body.ncm-text-tools-page .text-tools-label {
  display: block;
  margin-bottom: 8px;
  color: #1f2937;
  font-weight: 900;
}

body.ncm-text-tools-page .text-tools-textarea,
body.ncm-text-tools-page .text-tools-input,
body.ncm-text-tools-page .concierge-input {
  display: block;
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  background: #fff;
  color: #111827;
  font: inherit;
  outline: none;
}

body.ncm-text-tools-page .text-tools-textarea {
  min-height: 210px;
  padding: 14px 15px;
  resize: vertical;
}

body.ncm-text-tools-page .text-tools-input {
  min-height: 46px;
  padding: 0.75rem 0.9rem;
}

body.ncm-text-tools-page .text-tools-textarea:focus,
body.ncm-text-tools-page .text-tools-input:focus,
body.ncm-text-tools-page .concierge-input:focus {
  border-color: var(--ncm-purple);
  box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.14);
}

body.ncm-text-tools-page .wc-summary-panel {
  display: grid;
  gap: 14px;
  margin-bottom: 20px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(139, 44, 255, 0.16);
  background: linear-gradient(135deg, #faf5ff, #f8fafc);
}

body.ncm-text-tools-page .wc-summary-panel > div:first-child {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  align-items: center;
}

body.ncm-text-tools-page .wc-summary-actions,
body.ncm-text-tools-page .tts-controls,
body.ncm-text-tools-page .tts-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

body.ncm-text-tools-page .wc-summary-panel small {
  color: var(--ncm-muted-dark);
}

body.ncm-text-tools-page .text-tools-stat-grid {
  grid-template-columns: 1fr 1fr;
  margin-top: 18px;
}

body.ncm-text-tools-page .text-tools-stat-card {
  padding: 20px;
}

body.ncm-text-tools-page .text-tools-stat-card ul {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
}

body.ncm-text-tools-page .text-tools-stat-card li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.20);
  color: var(--ncm-muted-dark);
}

body.ncm-text-tools-page .text-tools-stat-card li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

body.ncm-text-tools-page .text-tools-stat-card strong {
  color: var(--ncm-text-dark);
  white-space: nowrap;
}

body.ncm-text-tools-page .text-tools-keywords {
  margin-top: 22px;
  text-align: center;
}

body.ncm-text-tools-page .text-tools-keywords h3,
body.ncm-text-tools-page .text-tools-input-panel h3,
body.ncm-text-tools-page .tts-uses h3 {
  margin: 0 0 8px;
  color: var(--ncm-text-dark);
  font-size: 1.25rem;
  line-height: 1.2;
  font-weight: 950;
}

body.ncm-text-tools-page .text-tools-keywords p,
body.ncm-text-tools-page .text-tools-keywords div {
  color: var(--ncm-muted-dark);
}

body.ncm-text-tools-page #top-keywords {
  min-height: 30px;
  color: var(--ncm-purple-dark);
  font-weight: 950;
  font-size: 1.08rem;
}

body.ncm-text-tools-page .tts-title-row {
  justify-content: center;
}

body.ncm-text-tools-page .tts-char-row,
body.ncm-text-tools-page .tts-upload-row {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: end;
}

body.ncm-text-tools-page .tts-char-row {
  margin-top: 8px;
  color: var(--ncm-muted-dark);
}

body.ncm-text-tools-page .tts-upload-row {
  margin-top: 18px;
}

body.ncm-text-tools-page .tts-upload-row > div {
  flex: 1;
  min-width: 0;
}

body.ncm-text-tools-page .tts-upload-row small {
  display: block;
  margin-top: 6px;
  color: var(--ncm-muted-dark);
}

body.ncm-text-tools-page .tts-voice-panel,
body.ncm-text-tools-page .tts-listen-panel,
body.ncm-text-tools-page .tts-player-wrap,
body.ncm-text-tools-page .tts-uses {
  margin-top: 28px;
}

body.ncm-text-tools-page .tts-controls {
  justify-content: center;
  margin-top: 14px;
}

body.ncm-text-tools-page .tts-player-wrap {
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(139, 44, 255, 0.16);
  background: linear-gradient(135deg, #faf5ff, #f8fafc);
}

body.ncm-text-tools-page .tts-player-wrap[hidden] {
  display: none;
}

body.ncm-text-tools-page #ttsServerPlayer {
  width: min(100%, 760px);
}

/* =========================================================
   Text Tools: MP3 export button states
========================================================= */

body.ncm-text-tools-page #ttsExportMp3 {
  background: linear-gradient(135deg, #8b2cff, #d946ef);
  color: #ffffff;
  border: 1px solid rgba(217, 70, 239, 0.42);
  box-shadow: 0 14px 28px rgba(139, 44, 255, 0.18);
}

body.ncm-text-tools-page #ttsExportMp3:hover:not(:disabled) {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

body.ncm-text-tools-page #ttsExportMp3:disabled {
  background: rgba(168, 85, 247, 0.12);
  color: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(168, 85, 247, 0.26);
  box-shadow: none;
  cursor: not-allowed;
  opacity: 1;
}

/* After export, JS changes the text to “Exported (generate again)” */
body.ncm-text-tools-page #ttsExportMp3.btn-outline-secondary,
body.ncm-text-tools-page #ttsExportMp3.exported {
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid rgba(249, 115, 22, 0.35);
  box-shadow: none;
}




body.ncm-text-tools-page .tts-pro-box {
  width: min(100%, 620px);
  display: grid;
  gap: 12px;
  justify-items: center;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: #fff;
  text-align: center;
}

body.ncm-text-tools-page .tts-pro-box strong,
body.ncm-text-tools-page .tts-pro-box small {
  display: block;
}

body.ncm-text-tools-page .tts-pro-box small {
  color: var(--ncm-muted-dark);
  margin-top: 4px;
}

body.ncm-text-tools-page .tts-pro-active {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.35);
  background: #dcfce7;
  color: #14532d;
  font-weight: 900;
}

body.ncm-text-tools-page .text-tools-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f3e8ff;
  color: var(--ncm-purple-dark);
  border: 1px solid rgba(139, 44, 255, 0.18);
  font-size: 0.78rem;
  font-weight: 950;
}

body.ncm-text-tools-page .tts-uses {
  text-align: center;
}

body.ncm-text-tools-page .ncm-uses-list {
  list-style: none;
  display: grid;
  gap: 10px;
  width: min(100%, 760px);
  margin: 14px auto 0;
  padding: 0;
  text-align: left;
}

body.ncm-text-tools-page .ncm-uses-list li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.20);
}

body.ncm-text-tools-page .ncm-uses-list p {
  margin: 0;
  color: var(--ncm-muted-dark);
}

body.ncm-text-tools-page .text-tools-faq-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.ncm-text-tools-page .text-tools-faq-grid details {
  padding: 18px;
}

body.ncm-text-tools-page .text-tools-faq-grid summary {
  cursor: pointer;
}

body.ncm-text-tools-page .text-tools-faq-grid p {
  margin: 12px 0 0;
  color: var(--ncm-muted-dark);
  line-height: 1.6;
}

body.ncm-text-tools-page .text-tools-danger {
  color: var(--ncm-red) !important;
}

body.ncm-text-tools-page .text-tools-muted-button {
  opacity: 0.72;
}

/* Concierge */
html.concierge-lock,
body.concierge-lock {
  overflow: hidden;
}

body.ncm-text-tools-page .concierge-fab {
  position: fixed;
  right: 24px;
  bottom: 100px;
  z-index: 1050;
  width: 64px;
  height: 64px;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--ncm-purple), var(--ncm-purple-2));
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

body.ncm-text-tools-page .concierge-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1049;
  background: rgba(0, 0, 0, 0.35);
}

body.ncm-text-tools-page .concierge-backdrop[hidden] {
  display: none;
}

body.ncm-text-tools-page .concierge-panel {
  position: fixed;
  right: max(12px, env(safe-area-inset-right));
  bottom: calc(max(96px, env(safe-area-inset-bottom)) + 8px);
  z-index: 1050;
  width: 380px;
  max-width: min(92vw, 420px);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  color: var(--ncm-text-dark);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

body.ncm-text-tools-page .concierge-panel[hidden] {
  display: none;
}

body.ncm-text-tools-page .concierge-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: linear-gradient(135deg, var(--ncm-purple), var(--ncm-purple-2));
  color: #fff;
}

body.ncm-text-tools-page .concierge-close {
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: #fff;
  color: var(--ncm-purple-dark);
  font-weight: 950;
  cursor: pointer;
}

body.ncm-text-tools-page .concierge-body {
  padding: 14px;
  max-height: 70vh;
  overflow: auto;
}

body.ncm-text-tools-page .concierge-body label {
  display: block;
  margin-bottom: 6px;
  color: var(--ncm-muted-dark);
  font-size: 0.9rem;
  font-weight: 800;
}

body.ncm-text-tools-page .concierge-input {
  min-height: 92px;
  padding: 10px;
  resize: vertical;
}

body.ncm-text-tools-page .concierge-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

body.ncm-text-tools-page .concierge-actions .text-tools-btn {
  min-height: 38px;
  padding: 0 12px;
  font-size: 0.85rem;
}

body.ncm-text-tools-page .concierge-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}

body.ncm-text-tools-page .concierge-btn {
  min-height: 76px;
  padding: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  color: var(--ncm-text-dark);
  cursor: pointer;
  text-align: left;
}

body.ncm-text-tools-page .concierge-btn:hover {
  background: #faf5ff;
  border-color: rgba(139, 44, 255, 0.35);
}

body.ncm-text-tools-page .concierge-btn b,
body.ncm-text-tools-page .concierge-btn small {
  display: block;
}

body.ncm-text-tools-page .concierge-btn small {
  color: var(--ncm-muted-dark);
}

body.ncm-text-tools-page .concierge-note {
  margin-top: 10px;
  color: var(--ncm-muted-dark);
  font-size: 0.8rem;
  text-align: center;
}

/* Responsive */
@media (max-width: 1180px) {
  body.ncm-text-tools-page .text-tools-hero-grid {
    grid-template-columns: 1fr;
  }

  body.ncm-text-tools-page .text-tools-start-panel {
    display: grid;
    grid-template-columns: 1fr;
  }

  body.ncm-text-tools-page .text-tools-workflow-grid,
  body.ncm-text-tools-page .text-tools-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.ncm-text-tools-page .text-tools-hero-card {
    background:
      linear-gradient(90deg, rgba(8, 10, 28, 0.98) 0%, rgba(20, 8, 48, 0.82) 42%, rgba(8, 10, 28, 0.38) 100%),
      url("/Images/webp/wc-tts-banner.webp") center right / cover no-repeat,
      linear-gradient(135deg, #160b35, #050816);
  }

  body.ncm-text-tools-page .text-tools-hero-copy {
    max-width: 620px;
  }
}

@media (max-width: 900px) {
  body.ncm-text-tools-page .text-tools-main {
    width: min(100% - 24px, 1520px);
    padding-top: 22px;
  }

  body.ncm-text-tools-page .text-tools-hero-card,
  body.ncm-text-tools-page .text-tools-hero-copy {
    min-height: auto;
  }

  body.ncm-text-tools-page .text-tools-hero-copy {
    padding: 34px 28px;
  }

  body.ncm-text-tools-page .text-tools-hero-copy h1 {
    font-size: clamp(2.25rem, 8vw, 3.6rem);
  }

  body.ncm-text-tools-page .text-tools-benefits,
  body.ncm-text-tools-page .text-tools-info-grid,
  body.ncm-text-tools-page .text-tools-workflow-grid,
  body.ncm-text-tools-page .text-tools-card-grid,
  body.ncm-text-tools-page .text-tools-stat-grid,
  body.ncm-text-tools-page .text-tools-faq-grid {
    grid-template-columns: 1fr;
  }

  body.ncm-text-tools-page .text-tools-panel-head,
  body.ncm-text-tools-page .tts-upload-row {
    display: block;
  }

  body.ncm-text-tools-page .text-tools-panel-head a,
  body.ncm-text-tools-page .tts-upload-row .text-tools-btn {
    margin-top: 12px;
  }

  body.ncm-text-tools-page .text-tools-stat-card li {
    display: block;
  }

  body.ncm-text-tools-page .text-tools-stat-card strong {
    display: block;
    margin-top: 4px;
  }
}

@media (max-width: 620px) {
  body.ncm-text-tools-page .text-tools-main {
    width: min(100% - 18px, 1520px);
    padding-top: 16px;
  }

  body.ncm-text-tools-page .text-tools-hero-card {
    background:
      linear-gradient(135deg, rgba(8, 10, 28, 0.96), rgba(24, 12, 58, 0.92)),
      url("/Images/webp/wc-tts-banner.webp") center / cover no-repeat,
      linear-gradient(135deg, #160b35, #050816);
  }

  body.ncm-text-tools-page .text-tools-hero-card::after {
    height: 100%;
    background: rgba(5, 8, 22, 0.64);
  }

  body.ncm-text-tools-page .text-tools-hero-copy {
    padding: 30px 22px;
  }

  body.ncm-text-tools-page .text-tools-hero-copy h1 {
    font-size: clamp(2rem, 12vw, 3rem);
  }

  body.ncm-text-tools-page .text-tools-hero-actions,
  body.ncm-text-tools-page .wc-summary-actions,
  body.ncm-text-tools-page .tts-controls {
    display: grid;
    grid-template-columns: 1fr;
  }

  body.ncm-text-tools-page .text-tools-btn {
    width: 100%;
  }

  body.ncm-text-tools-page .text-tools-panel,
  body.ncm-text-tools-page .text-tools-info-card,
  body.ncm-text-tools-page .text-tools-input-panel {
    padding: 18px;
    border-radius: 20px;
  }

  body.ncm-text-tools-page .tts-char-row {
    display: grid;
    gap: 6px;
  }

  body.ncm-text-tools-page .concierge-fab {
    width: 68px;
    height: 68px;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(90px, calc(env(safe-area-inset-bottom) + 14px));
    font-size: 38px;
  }

  body.ncm-text-tools-page .concierge-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.ncm-text-tools-page * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.qr-luggage-helper-note {
  border-left: 4px solid #f59e0b;
  background: #fffbeb;
  color: #111827;
}

.qr-luggage-helper-note strong {
  color: #92400e;
}




/* =========================================================
   TTS Helper / Concierge Bot Floating Button
   Matches QR Help button style
========================================================= */

#conciergeFab.concierge-fab {
  position: fixed !important;
  right: 27px !important;
  bottom: 90px !important;
  z-index: 9998 !important;

  width: 64px !important;
  height: 64px !important;
  min-width: 64px !important;
  min-height: 64px !important;
  max-width: 64px !important;
  max-height: 64px !important;

  border: 0 !important;
  border-radius: 50% !important;

  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;

  padding: 0 !important;
  margin: 0 !important;

  font-size: 0 !important;
  line-height: 1 !important;
  text-align: center !important;
  white-space: normal !important;

  color: #ffffff !important;
  background: #7c3aed !important;

  box-shadow:
    0 18px 42px rgba(15, 23, 42, 0.35),
    0 0 0 6px rgba(124, 58, 237, 0.16) !important;

  cursor: pointer !important;
  overflow: hidden !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

#conciergeFab.concierge-fab span {
  display: block !important;
  width: 100% !important;

  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 17px !important;
  font-weight: 900 !important;
  line-height: 1.05 !important;
  letter-spacing: -0.04em !important;
  text-align: center !important;

  color: #ffffff !important;
  white-space: normal !important;
  pointer-events: none !important;
}

#conciergeFab.concierge-fab::before,
#conciergeFab.concierge-fab::after {
  content: none !important;
  display: none !important;
}

#conciergeFab.concierge-fab:hover,
#conciergeFab.concierge-fab:focus-visible {
  transform: translateY(-2px) !important;
  outline: none !important;
}

/* =========================================================
   TTS Helper Panel Position
   Keeps panel above the TTS Help button
========================================================= */

.concierge-panel {
  bottom: 166px !important;
}

/* =========================================================
   Mobile TTS Helper Button / Panel
========================================================= */

@media (max-width: 560px) {
  #conciergeFab.concierge-fab {
    right: 16px !important;
    bottom: 92px !important;

    width: 64px !important;
    height: 64px !important;
    min-width: 64px !important;
    min-height: 64px !important;
    max-width: 64px !important;
    max-height: 64px !important;
  }

  #conciergeFab.concierge-fab span {
    font-size: 17px !important;
  }

  .concierge-panel {
    right: 12px !important;
    bottom: 166px !important;
    width: calc(100vw - 24px) !important;
    max-height: calc(100vh - 190px) !important;
  }

  .concierge-body {
    max-height: calc(100vh - 270px) !important;
  }
}

/* =========================================================
   Reduced Motion
========================================================= */

@media (prefers-reduced-motion: reduce) {
  #conciergeFab.concierge-fab,
  .concierge-panel {
    transition: none !important;
    scroll-behavior: auto !important;
  }

  #conciergeFab.concierge-fab:hover,
  #conciergeFab.concierge-fab:focus-visible {
    transform: none !important;
  }
}