/* ── Variables ───────────────────────────────────────────── */
:root {
  --qcp-bg: #f8f9fc;
  --qcp-bg-2: #f1f4f9;
  --qcp-bg-card: #ffffff;
  --qcp-border: #e2e8f0;
  --qcp-primary: #6c47ff;
  --qcp-primary-dark: #5535e0;
  --qcp-gradient: linear-gradient(135deg, #6c47ff 0%, #a855f7 100%);
  --qcp-text: #0f172a;
  --qcp-muted: #64748b;
  --qcp-radius: 14px;
  --font-body: "Inter", sans-serif;
  --font-heading: "Plus Jakarta Sans", sans-serif;
}

/* ── Base ────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  background-color: var(--qcp-bg);
  color: var(--qcp-text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: #0f172a;
}

a {
  text-decoration: none;
}

/* ── Utilities ───────────────────────────────────────────── */
.fw-500 {
  font-weight: 500;
}
.fw-600 {
  font-weight: 600;
}
.fw-700 {
  font-weight: 700;
}
.fw-800 {
  font-weight: 800;
}

.qcp-gradient-text {
  background: var(--qcp-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn-primary {
  background: var(--qcp-gradient);
  border: none;
  font-weight: 600;
  border-radius: 10px;
  color: #fff;
  transition:
    opacity 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
}
.btn-primary:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(108, 71, 255, 0.3);
  background: var(--qcp-gradient);
  border: none;
  color: #fff;
}
.btn-outline-light {
  border-radius: 10px;
  font-weight: 500;
}
.btn-outline-primary {
  border-color: var(--qcp-primary);
  color: var(--qcp-primary);
  border-radius: 10px;
  font-weight: 600;
}
.btn-outline-primary:hover {
  background: var(--qcp-primary);
  border-color: var(--qcp-primary);
  color: #fff;
}

/* ── Navbar ──────────────────────────────────────────────── */
.qcp-navbar {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--qcp-border);
  padding: 14px 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.qcp-navbar .navbar-brand {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: #0f172a;
}
.qcp-navbar .nav-link {
  color: #475569;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 14px !important;
  border-radius: 8px;
  transition: all 0.2s;
}
.qcp-navbar .nav-link:hover {
  color: var(--qcp-primary);
  background: rgba(108, 71, 255, 0.06);
}
.qcp-navbar .navbar-toggler-icon {
  filter: invert(1) brightness(0.3);
}
.qcp-logo-icon {
  width: 34px;
  height: 34px;
  background: var(--qcp-gradient);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #fff;
}
.qcp-logo-icon.small {
  width: 28px;
  height: 28px;
  font-size: 0.85rem;
}

/* ── Hero ────────────────────────────────────────────────── */
.qcp-hero {
  min-height: calc(100vh - 70px);
  padding: 80px 0;
  background:
    radial-gradient(
      ellipse 80% 50% at 60% 0%,
      rgba(108, 71, 255, 0.08) 0%,
      transparent 70%
    ),
    var(--qcp-bg);
}
.qcp-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(108, 71, 255, 0.08);
  border: 1px solid rgba(108, 71, 255, 0.2);
  color: var(--qcp-primary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 100px;
  letter-spacing: 0.02em;
}
.qcp-hero-title {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  color: #0f172a;
}
.qcp-hero-sub {
  font-size: 1.05rem;
  color: #64748b;
  max-width: 480px;
}
.qcp-trust-badges span {
  font-size: 0.82rem;
  color: #64748b;
  display: flex;
  align-items: center;
}

/* ── Hero Card ───────────────────────────────────────────── */
.qcp-hero-card {
  background: #fff;
  border: 1px solid var(--qcp-border);
  border-radius: var(--qcp-radius);
  overflow: hidden;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.08),
    0 4px 16px rgba(108, 71, 255, 0.08);
}
.qcp-hero-card-header {
  background: #f8f9fc;
  border-bottom: 1px solid var(--qcp-border);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.dot.red {
  background: #ff5f56;
}
.dot.yellow {
  background: #ffbd2e;
}
.dot.green {
  background: #27c93f;
}
.qcp-hero-card-body {
  padding: 20px;
}
.qcp-chat-msg {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.85rem;
  margin-bottom: 10px;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
}
.qcp-chat-user {
  background: #f1f4f9;
  border: 1px solid #e2e8f0;
  color: #334155;
}
.qcp-chat-ai {
  background: rgba(108, 71, 255, 0.06);
  border: 1px solid rgba(108, 71, 255, 0.15);
  color: #1e293b;
}
.qcp-typing {
  display: flex;
  gap: 5px;
  padding: 8px 14px;
}
.qcp-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--qcp-primary);
  animation: typing 1.2s infinite;
}
.qcp-typing span:nth-child(2) {
  animation-delay: 0.2s;
}
.qcp-typing span:nth-child(3) {
  animation-delay: 0.4s;
}
@keyframes typing {
  0%,
  60%,
  100% {
    opacity: 0.3;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
    transform: translateY(-4px);
  }
}

/* ── Sections ────────────────────────────────────────────── */
.qcp-section {
  padding: 90px 0;
  background: var(--qcp-bg);
}
.qcp-section-dark {
  background: var(--qcp-bg-2);
  padding: 90px 0;
}
.qcp-section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: #0f172a;
}
.qcp-section-sub {
  color: var(--qcp-muted);
  font-size: 1rem;
  margin-top: 6px;
}

/* ── Feature Cards ───────────────────────────────────────── */
.qcp-feature-card {
  background: #fff;
  border: 1px solid var(--qcp-border);
  border-radius: var(--qcp-radius);
  padding: 28px 24px;
  transition:
    border-color 0.25s,
    transform 0.25s,
    box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}
.qcp-feature-card:hover {
  border-color: rgba(108, 71, 255, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(108, 71, 255, 0.08);
}
.qcp-feature-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}
.qcp-icon-purple {
  background: rgba(108, 71, 255, 0.1);
  color: #6c47ff;
}
.qcp-icon-blue {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}
.qcp-icon-teal {
  background: rgba(20, 184, 166, 0.1);
  color: #14b8a6;
}
.qcp-icon-orange {
  background: rgba(249, 115, 22, 0.1);
  color: #f97316;
}
.qcp-icon-red {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

/* ── Privacy Banner ──────────────────────────────────────── */
.qcp-privacy-banner {
  background: linear-gradient(
    135deg,
    rgba(108, 71, 255, 0.05) 0%,
    rgba(168, 85, 247, 0.05) 100%
  );
  border-top: 1px solid var(--qcp-border);
  border-bottom: 1px solid var(--qcp-border);
  padding: 60px 0;
}
.qcp-privacy-item {
  background: #fff;
  border: 1px solid var(--qcp-border);
  border-radius: 10px;
  padding: 16px 12px;
}

/* ── Steps ───────────────────────────────────────────────── */
.qcp-step-card {
  background: #fff;
  border: 1px solid var(--qcp-border);
  border-radius: var(--qcp-radius);
  padding: 28px 20px;
  position: relative;
  transition: box-shadow 0.25s;
}
.qcp-step-card:hover {
  box-shadow: 0 8px 24px rgba(108, 71, 255, 0.08);
}
.qcp-step-num {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--qcp-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

/* ── Pricing ─────────────────────────────────────────────── */
.qcp-pricing-card {
  background: #fff;
  border: 1px solid var(--qcp-border);
  border-radius: var(--qcp-radius);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition:
    border-color 0.25s,
    box-shadow 0.25s;
}
.qcp-pricing-card:hover {
  box-shadow: 0 12px 32px rgba(108, 71, 255, 0.1);
}
.qcp-pricing-popular {
  border-color: var(--qcp-primary);
  box-shadow: 0 8px 30px rgba(108, 71, 255, 0.15);
}
.qcp-popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--qcp-gradient);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 100px;
  white-space: nowrap;
}
.qcp-pricing-header {
  margin-bottom: 20px;
}
.qcp-pricing-header h5 {
  font-weight: 700;
  margin-bottom: 10px;
  color: #0f172a;
}
.qcp-price-currency {
  font-size: 1.2rem;
  font-weight: 700;
  color: #64748b;
  vertical-align: top;
  margin-top: 6px;
  display: inline-block;
}
.qcp-price-amount {
  font-size: 2.4rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: #0f172a;
}
.qcp-price-period {
  font-size: 0.85rem;
  color: var(--qcp-muted);
}
.qcp-pricing-features li {
  padding: 7px 0;
  font-size: 0.88rem;
  border-bottom: 1px solid #f1f4f9;
  color: #334155;
}
.qcp-pricing-features li:last-child {
  border-bottom: none;
}

/* ── FAQ ─────────────────────────────────────────────────── */
.qcp-faq-item {
  background: #fff !important;
  border: 1px solid var(--qcp-border) !important;
  border-radius: var(--qcp-radius) !important;
  margin-bottom: 10px;
  overflow: hidden;
}
.qcp-faq-item .accordion-button {
  background: #fff;
  color: #0f172a;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: none;
}
.qcp-faq-item .accordion-button:not(.collapsed) {
  background: rgba(108, 71, 255, 0.04);
  color: var(--qcp-primary);
}
.qcp-faq-item .accordion-button::after {
  filter: none;
}
.qcp-faq-item .accordion-body {
  background: #fff;
  font-size: 0.9rem;
  color: #475569;
  padding-top: 0;
}

/* ── CTA Section ─────────────────────────────────────────── */
.qcp-cta-section {
  padding: 90px 0;
  background: linear-gradient(
    135deg,
    rgba(108, 71, 255, 0.06) 0%,
    rgba(168, 85, 247, 0.06) 100%
  );
  border-top: 1px solid var(--qcp-border);
}
.qcp-cta-section h2 {
  color: #0f172a;
}

/* ── Footer ──────────────────────────────────────────────── */
.qcp-footer {
  background: #fff;
  border-top: 1px solid var(--qcp-border);
  padding: 60px 0 30px;
}
.qcp-footer-links li {
  margin-bottom: 8px;
}
.qcp-footer-links a {
  color: #64748b;
  font-size: 0.88rem;
  transition: color 0.2s;
}
.qcp-footer-links a:hover {
  color: var(--qcp-primary);
}
.qcp-footer-divider {
  border-color: var(--qcp-border);
  margin: 30px 0 20px;
}

.tn-cookie-banner {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 9998;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  background: rgba(255, 250, 245, 0.96);
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
  padding: 24px 26px;
  backdrop-filter: blur(14px);
}

.tn-cookie-banner h2 {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  margin: 8px 0 10px;
}

.tn-cookie-banner p {
  margin: 0;
  max-width: 780px;
}

.tn-cookie-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.tn-legal-shell {
  min-height: 100vh;
  padding: 48px 0;
  background:
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.12), transparent 28%),
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.12), transparent 28%),
    #fcfaf5;
}

.tn-legal-card {
  max-width: 920px;
  margin: 0 auto;
  padding: 34px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(33, 43, 54, 0.08);
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.08);
}

.tn-legal-nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 28px;
}

.tn-legal-lead {
  color: var(--qcp-muted);
  margin-bottom: 26px;
}

.tn-legal-content h2 {
  font-size: 1.15rem;
  margin: 26px 0 10px;
}

.tn-legal-content p {
  color: #334155;
  margin-bottom: 0;
}

.tn-profile-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tn-profile-legal-links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(33, 43, 54, 0.09);
  color: var(--qcp-text);
  font-weight: 600;
}

.tn-profile-legal-links a:hover {
  color: var(--qcp-primary);
  border-color: rgba(108, 71, 255, 0.28);
}

/* ── Auth Pages ──────────────────────────────────────────── */
.qcp-auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  background:
    radial-gradient(
      ellipse 80% 50% at 60% 0%,
      rgba(108, 71, 255, 0.08) 0%,
      transparent 70%
    ),
    var(--qcp-bg);
}
.qcp-auth-card {
  background: #fff;
  border: 1px solid var(--qcp-border);
  border-radius: 20px;
  padding: 40px 36px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}
.qcp-auth-title {
  font-size: 1.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 6px;
  color: #0f172a;
}
.qcp-auth-sub {
  color: #64748b;
  text-align: center;
  font-size: 0.9rem;
  margin-bottom: 24px;
}
.qcp-label {
  color: #374151;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 8px;
  display: block;
}
.qcp-input-wrap {
  position: relative;
}
.qcp-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 0.9rem;
  z-index: 2;
}
.qcp-input {
  background: #f8f9fc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  color: #0f172a !important;
  padding: 12px 14px 12px 40px !important;
  font-size: 0.95rem;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  width: 100%;
}
.qcp-input:focus {
  outline: none !important;
  border-color: var(--qcp-primary) !important;
  box-shadow: 0 0 0 3px rgba(108, 71, 255, 0.1) !important;
  background: #fff !important;
}
.qcp-input::placeholder {
  color: #94a3b8;
}

/* OTP */
.qcp-otp-icon {
  width: 60px;
  height: 60px;
  background: rgba(108, 71, 255, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--qcp-primary);
}
.qcp-otp-inputs {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.qcp-otp-box {
  width: 52px;
  height: 58px;
  background: #f8f9fc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  font-family: var(--font-heading);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.qcp-otp-box:focus {
  outline: none;
  border-color: var(--qcp-primary);
  box-shadow: 0 0 0 3px rgba(108, 71, 255, 0.12);
  background: #fff;
}
.qcp-alert-danger {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  border-radius: 10px;
  font-size: 0.88rem;
}
.qcp-resend-link {
  color: var(--qcp-primary);
  font-size: 0.88rem;
  font-weight: 500;
  transition: opacity 0.2s;
}
.qcp-resend-link:hover {
  opacity: 0.8;
  color: var(--qcp-primary);
}

/* ── Dashboard ───────────────────────────────────────────── */
.qcp-plan-badge {
  background: rgba(108, 71, 255, 0.08);
  border: 1px solid rgba(108, 71, 255, 0.2);
  color: var(--qcp-primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
}
.qcp-stat-card {
  background: #fff;
  border: 1px solid var(--qcp-border);
  border-radius: var(--qcp-radius);
  padding: 20px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}
.qcp-stat-value {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: #0f172a;
}
.qcp-upload-card {
  background: #fff;
  border: 2px dashed rgba(108, 71, 255, 0.25);
  border-radius: var(--qcp-radius);
  padding: 20px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.qcp-upload-card:hover {
  border-color: rgba(108, 71, 255, 0.5);
  box-shadow: 0 4px 20px rgba(108, 71, 255, 0.06);
}
.qcp-tool-card {
  cursor: pointer;
}
.qcp-tool-card:hover {
  border-color: rgba(108, 71, 255, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(108, 71, 255, 0.08);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .qcp-hero {
    padding: 60px 0;
    min-height: auto;
  }
  .qcp-hero-card {
    margin-top: 20px;
  }
  .qcp-auth-card {
    padding: 28px 20px;
  }
  .qcp-otp-box {
    width: 44px;
    height: 52px;
    font-size: 1.3rem;
  }
}

/* ── TextnityAI Theme ───────────────────────────────────── */
:root {
  --qcp-bg: #f6f1e8;
  --qcp-bg-2: #efe7da;
  --qcp-bg-card: rgba(255, 255, 255, 0.88);
  --qcp-border: rgba(33, 43, 54, 0.12);
  --qcp-primary: #0f766e;
  --qcp-primary-dark: #115e59;
  --qcp-gradient: linear-gradient(135deg, #0f766e 0%, #f97316 100%);
  --qcp-text: #1d2939;
  --qcp-muted: #5f6c7b;
  --qcp-radius: 24px;
  --font-body: "DM Sans", sans-serif;
  --font-heading: "Space Grotesk", sans-serif;
}

body {
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.11), transparent 32%),
    linear-gradient(180deg, #f8f3eb 0%, #f3ede2 100%);
  color: var(--qcp-text);
}

.btn-primary {
  background: var(--qcp-gradient);
  box-shadow: 0 18px 40px rgba(15, 118, 110, 0.18);
}

.btn-primary:hover {
  box-shadow: 0 20px 46px rgba(15, 118, 110, 0.24);
}

.btn-outline-primary {
  border-color: rgba(15, 118, 110, 0.35);
  color: var(--qcp-primary);
  background: rgba(255, 255, 255, 0.7);
}

.btn-outline-primary:hover {
  background: var(--qcp-primary);
  border-color: var(--qcp-primary);
}

.qcp-navbar {
  background: rgba(248, 243, 235, 0.84);
  border-bottom: 1px solid rgba(33, 43, 54, 0.08);
  backdrop-filter: blur(16px);
}

.qcp-logo-icon {
  background: var(--qcp-gradient);
  border-radius: 14px;
  box-shadow: 0 14px 30px rgba(15, 118, 110, 0.18);
}

.qcp-plan-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(33, 43, 54, 0.08);
  color: var(--qcp-text);
  font-size: 0.88rem;
  font-weight: 700;
}

.tn-navbar .nav-link {
  font-size: 0.92rem;
}

.tn-logo-icon {
  width: 40px;
  height: 40px;
  font-size: 1rem;
}

.tn-brand-wordmark {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.tn-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.1);
  border: 1px solid rgba(15, 118, 110, 0.16);
  color: var(--qcp-primary);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tn-mini-label {
  display: inline-block;
  color: var(--qcp-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 700;
}

.tn-mini-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.08);
  color: var(--qcp-primary);
  font-size: 0.82rem;
  font-weight: 700;
}

.tn-hero,
.tn-section,
.tn-section-soft,
.tn-footer-cta,
.tn-workbench {
  position: relative;
}

.tn-hero {
  padding: 88px 0 52px;
}

.tn-hero-title {
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  margin-bottom: 20px;
}

.tn-hero-sub,
.tn-section-heading p,
.tn-step-card p,
.tn-use-card p,
.tn-plan-card p,
.tn-footer-card p,
.tn-pricing-hero p,
.tn-account-banner p,
.tn-dashboard-hero p,
.tn-empty-state p {
  color: var(--qcp-muted);
  font-size: 1.02rem;
}

.tn-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  color: var(--qcp-muted);
  font-weight: 600;
}

.tn-trust-row span,
.tn-editor-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tn-hero-rail,
.tn-surface-card,
.tn-strip-card,
.tn-step-card,
.tn-use-card,
.tn-plan-card,
.tn-pack-card,
.tn-credit-box,
.tn-credit-table-wrap,
.tn-account-banner,
.tn-pricing-hero,
.tn-dashboard-hero {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(33, 43, 54, 0.08);
  border-radius: 28px;
  box-shadow: 0 18px 60px rgba(56, 40, 18, 0.08);
  backdrop-filter: blur(14px);
}

.tn-hero-rail,
.tn-surface-card,
.tn-strip-card,
.tn-step-card,
.tn-use-card,
.tn-plan-card,
.tn-pack-card,
.tn-credit-box,
.tn-credit-table-wrap,
.tn-account-banner,
.tn-pricing-hero,
.tn-dashboard-hero {
  padding: 28px;
}

.tn-hero-rail {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.tn-hero-rail-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin: 10px 0 12px;
}

.tn-hero-rate-grid,
.tn-hero-signal-grid {
  display: grid;
  gap: 14px;
}

.tn-hero-rate-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tn-hero-signal-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tn-hero-rate-card,
.tn-hero-signal-card {
  border-radius: 22px;
  border: 1px solid rgba(33, 43, 54, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 241, 232, 0.88));
  padding: 20px;
}

.tn-hero-rate-card span {
  display: block;
  color: var(--qcp-primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tn-hero-rate-card strong {
  display: block;
  margin: 10px 0 8px;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  line-height: 1.05;
}

.tn-hero-rate-card p,
.tn-hero-signal-card p {
  color: var(--qcp-muted);
}

.tn-hero-signal-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.tn-hero-signal-card i {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 118, 110, 0.08);
  color: var(--qcp-primary);
  font-size: 1.15rem;
  flex: 0 0 auto;
}

.tn-hero-signal-card strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-heading);
  font-size: 1.05rem;
}

.tn-panel-head,
.tn-card-head,
.tn-workbench-switch,
.tn-balance-grid,
.tn-credit-rules,
.tn-footer-card,
.tn-dashboard-summary,
.tn-pricing-aside {
  display: flex;
  gap: 14px;
}

.tn-panel-pill,
.tn-tone-stack span,
.tn-tone-grid span,
.tn-workbench-switch button {
  border-radius: 999px;
  border: 1px solid rgba(33, 43, 54, 0.08);
  background: rgba(255, 255, 255, 0.82);
  color: var(--qcp-muted);
  font-weight: 700;
}

.tn-panel-pill {
  padding: 8px 14px;
  font-size: 0.85rem;
}

.tn-panel-pill.active,
.tn-tone-grid span.active,
.tn-workbench-switch button.active {
  background: var(--qcp-gradient);
  color: #fff;
  border-color: transparent;
}

.tn-console-card,
.tn-humanize-card,
.tn-balance-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(245, 240, 232, 0.9));
  border: 1px solid rgba(33, 43, 54, 0.08);
  border-radius: 22px;
  padding: 20px;
}

.tn-console-result {
  background: linear-gradient(180deg, rgba(15, 118, 110, 0.08), rgba(15, 118, 110, 0.02));
}

.tn-demo-copy {
  min-height: 112px;
  font-size: 1rem;
  color: var(--qcp-text);
}

.tn-stat-strip,
.tn-tone-stack,
.tn-editor-meta,
.tn-action-row,
.tn-credit-rules,
.tn-balance-grid,
.tn-dashboard-summary,
.tn-pricing-aside {
  flex-wrap: wrap;
}

.tn-stat-strip {
  display: flex;
  gap: 12px;
  color: var(--qcp-muted);
  font-size: 0.82rem;
}

.tn-score-ring {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background:
    radial-gradient(circle at center, #fff 44%, transparent 45%),
    conic-gradient(#ef4444 0 84%, rgba(33, 43, 54, 0.08) 84% 100%);
  margin-bottom: 18px;
}

.tn-score-ring.large {
  width: 168px;
  height: 168px;
}

.tn-score-ring.muted {
  background:
    radial-gradient(circle at center, #fff 44%, transparent 45%),
    conic-gradient(rgba(33, 43, 54, 0.12) 0 100%);
}

.tn-score-ring strong {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  letter-spacing: -0.04em;
}

.tn-score-ring span {
  color: var(--qcp-muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.tn-result-points,
.tn-plan-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tn-result-points li,
.tn-plan-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  color: var(--qcp-text);
}

.tn-result-points li::before,
.tn-plan-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--qcp-gradient);
}

.tn-humanize-card {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.tn-tone-stack,
.tn-tone-grid {
  display: flex;
  gap: 10px;
}

.tn-tone-stack span,
.tn-tone-grid span {
  padding: 10px 14px;
  font-size: 0.84rem;
}

.tn-strip {
  padding: 20px 0 10px;
}

.tn-strip-card p,
.tn-pack-card p {
  margin-top: 10px;
  margin-bottom: 0;
  color: var(--qcp-muted);
}

.tn-section,
.tn-section-soft,
.tn-footer-cta {
  padding: 58px 0;
}

.tn-section-soft {
  background: rgba(255, 255, 255, 0.24);
}

.tn-section-heading {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.tn-section-heading h2,
.tn-step-card h3,
.tn-use-card h3,
.tn-plan-card h3,
.tn-pack-card h3,
.tn-pricing-hero h1,
.tn-account-banner h2,
.tn-card-head h2,
.tn-footer-card h2,
.tn-dashboard-hero h1 {
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin: 12px 0 14px;
}

.tn-step-no {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: rgba(15, 118, 110, 0.22);
  line-height: 1;
}

.tn-step-accent {
  background: linear-gradient(180deg, rgba(15, 118, 110, 0.08), rgba(249, 115, 22, 0.08));
}

.tn-callout-grid,
.tn-balance-grid,
.tn-dashboard-summary,
.tn-pricing-aside {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tn-callout-grid {
  gap: 14px;
  margin-top: 18px;
}

.tn-callout-grid div,
.tn-balance-grid div,
.tn-dashboard-summary div,
.tn-pricing-aside div {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(33, 43, 54, 0.06);
}

.tn-callout-grid strong,
.tn-balance-grid strong,
.tn-dashboard-summary strong,
.tn-pricing-aside strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-heading);
  font-size: 1.05rem;
}

.tn-use-card i {
  font-size: 1.6rem;
  color: var(--qcp-primary);
}

.tn-plan-card,
.tn-pack-card {
  position: relative;
  height: 100%;
}

.tn-pack-card {
  display: flex;
  flex-direction: column;
}

.tn-plan-card.featured,
.tn-pack-card.featured {
  background: linear-gradient(180deg, rgba(15, 118, 110, 0.11), rgba(255, 255, 255, 0.9));
  border-color: rgba(15, 118, 110, 0.22);
}

.tn-plan-card.current {
  border-color: rgba(34, 197, 94, 0.4);
}

.tn-plan-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--qcp-gradient);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
}

.tn-plan-badge.current-badge {
  background: linear-gradient(135deg, #16a34a, #22c55e);
}

.tn-price {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin: 12px 0 16px;
}

.tn-price strong,
.tn-pack-units,
.tn-balance-hero strong {
  font-family: var(--font-heading);
  font-size: 2.9rem;
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.tn-price span,
.tn-balance-hero span {
  color: var(--qcp-muted);
}

.tn-plan-list.compact li {
  margin-bottom: 10px;
}

.tn-pack-card h3 {
  min-height: 2.4em;
}

.tn-pack-card .tn-plan-list.compact {
  flex: 1 1 auto;
  margin-bottom: 24px;
}

.tn-pack-card .qcp-topup-btn {
  margin-top: auto;
}

.tn-credit-box,
.tn-credit-table-wrap {
  height: 100%;
}

.tn-credit-rules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.tn-credit-rules div {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(33, 43, 54, 0.06);
}

.tn-credit-rules strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-heading);
}

.tn-credit-table th,
.tn-credit-table td {
  padding: 18px 16px;
  vertical-align: middle;
  border-color: rgba(33, 43, 54, 0.08);
}

.tn-credit-table thead th {
  background: rgba(15, 118, 110, 0.08);
  color: var(--qcp-text);
  font-family: var(--font-heading);
  font-weight: 700;
}

.tn-credit-table tbody tr:last-child td {
  border-bottom: 0;
}

.tn-activity-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tn-activity-tabs button {
  border: 1px solid rgba(33, 43, 54, 0.12);
  background: rgba(255, 255, 255, 0.7);
  color: var(--qcp-text);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.tn-activity-tabs button.active {
  background: var(--qcp-gradient);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.12);
}

.tn-activity-tabs button:hover {
  transform: translateY(-1px);
}

.tn-activity-type {
  font-weight: 700;
}

.tn-amount-positive {
  color: #0f766e;
  font-weight: 700;
}

.tn-amount-negative {
  color: #dc2626;
  font-weight: 700;
}

.tn-footer-card {
  justify-content: space-between;
  align-items: center;
}

.tn-dashboard-hero,
.tn-pricing-hero,
.tn-account-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.tn-dashboard-summary,
.tn-pricing-aside {
  min-width: min(100%, 420px);
}

.tn-credit-badge {
  background: rgba(255, 255, 255, 0.84);
}

.tn-account-banner {
  margin-top: 20px;
}

.tn-workbench {
  margin-top: 28px;
}

.tn-workbench-switch {
  margin-bottom: 18px;
}

.tn-workbench-switch button {
  padding: 12px 18px;
}

.tn-product-tabs {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.tn-product-tabs button {
  padding: 14px 22px;
  border-radius: 18px;
  border: 1px solid rgba(33, 43, 54, 0.08);
  background: rgba(255, 255, 255, 0.82);
  color: var(--qcp-text);
  font-weight: 700;
}

.tn-product-tabs button.active {
  background: var(--qcp-gradient);
  color: #fff;
  border-color: transparent;
}

.tn-editor {
  width: 100%;
  border: 1px solid rgba(33, 43, 54, 0.1);
  border-radius: 24px;
  padding: 20px 22px;
  min-height: 320px;
  resize: vertical;
  background: rgba(255, 255, 255, 0.8);
  color: var(--qcp-text);
  font-size: 1rem;
}

.tn-editor:focus {
  outline: none;
  border-color: rgba(15, 118, 110, 0.35);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.08);
}

.tn-editor-meta,
.tn-action-row {
  display: flex;
  gap: 16px;
  margin-top: 18px;
  color: var(--qcp-muted);
  font-size: 0.88rem;
}

.tn-empty-state {
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

.tn-confidence-track {
  width: 100%;
  height: 28px;
  border-radius: 999px;
  background: rgba(33, 43, 54, 0.08);
  overflow: hidden;
  margin-bottom: 12px;
}

.tn-confidence-fill {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  transition: width 0.25s ease;
}

.tn-confidence-fill.danger {
  background: linear-gradient(90deg, #2563eb, #1d4ed8);
}

.tn-confidence-note {
  color: var(--qcp-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.tn-quick-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.tn-quick-stats div,
.tn-score-split div {
  border-radius: 18px;
  background: rgba(248, 243, 235, 0.9);
  border: 1px solid rgba(33, 43, 54, 0.06);
  padding: 18px;
  text-align: center;
}

.tn-quick-stats strong,
.tn-score-split strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 8px;
}

.tn-quick-stats span,
.tn-score-split span {
  color: var(--qcp-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.tn-result-alert {
  padding: 14px 16px;
  border-radius: 16px;
  font-weight: 700;
  margin-bottom: 18px;
}

.tn-result-alert.danger {
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
  border: 1px solid rgba(37, 99, 235, 0.22);
}

.tn-result-alert.success {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.24);
}

.tn-result-text {
  color: var(--qcp-muted);
  font-size: 1rem;
  min-height: 72px;
}

.tn-score-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.tn-score-split strong.danger {
  color: #1d4ed8;
}

.tn-score-split strong.success {
  color: #059669;
}

.tn-reason-list {
  display: grid;
  gap: 12px;
}

.tn-reason-item {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(33, 43, 54, 0.08);
  color: var(--qcp-text);
}

.tn-human-box {
  border-radius: 24px;
  border: 1px solid rgba(33, 43, 54, 0.08);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98),
    rgba(246, 241, 232, 0.96)
  );
  padding: 24px;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.08);
}

.tn-human-box-head h2 {
  margin-bottom: 8px;
}

.tn-human-box-head p {
  color: var(--qcp-muted);
  margin-bottom: 20px;
}

.tn-tone-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.tn-tone-picker button {
  min-height: 98px;
  border-radius: 18px;
  border: 1px solid rgba(33, 43, 54, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 241, 232, 0.9));
  color: var(--qcp-text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.tn-tone-picker button:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 118, 110, 0.22);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
}

.tn-tone-picker button i {
  font-size: 1.35rem;
  color: #0f766e;
}

.tn-tone-picker button.active {
  background: linear-gradient(135deg, #0f766e, #f97316);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 18px 34px rgba(15, 118, 110, 0.2);
}

.tn-tone-picker button.active i {
  color: #fff;
}

.tn-detect-layout.has-results {
  align-items: stretch;
}

.btn-success {
  background: linear-gradient(135deg, #0f766e, #f97316);
  border: none;
  color: #fff;
  font-weight: 700;
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(15, 118, 110, 0.18);
}

.btn-success:hover {
  background: linear-gradient(135deg, #0f766e, #f97316);
  color: #fff;
}

.tn-output-box {
  width: 100%;
  border: 1px solid rgba(33, 43, 54, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  padding: 20px;
  resize: vertical;
  font-size: 1rem;
  color: var(--qcp-text);
}

.tn-output-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.tn-output-summary {
  margin-top: 16px;
  color: var(--qcp-muted);
}

.tn-balance-panel {
  margin-top: 8px;
}

.tn-balance-hero {
  display: flex;
  flex-direction: column;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(33, 43, 54, 0.08);
  margin-bottom: 22px;
}

.tn-modal {
  border-radius: 28px;
  border: 1px solid rgba(33, 43, 54, 0.08);
  background: #fff;
}

.tn-order-summary {
  background: rgba(15, 118, 110, 0.05);
  border: 1px solid rgba(15, 118, 110, 0.08);
  border-radius: 18px;
  padding: 16px 18px;
}

.tn-status-note {
  color: var(--qcp-muted);
  font-weight: 600;
}

body.tn-dialog-open {
  overflow: hidden;
}

.tn-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1055;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(8px);
}

.tn-dialog-card {
  position: relative;
  width: min(100%, 520px);
  padding: 32px;
  border-radius: 28px;
  border: 1px solid rgba(33, 43, 54, 0.08);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 252, 0.96)),
    #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.2);
}

.tn-dialog-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(33, 43, 54, 0.08);
  border-radius: 999px;
  background: #fff;
  color: #64748b;
}

.tn-dialog-text {
  margin: 14px 0 0;
  color: #475569;
  line-height: 1.7;
}

.tn-dialog-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

@media (max-width: 991px) {
  .tn-dashboard-hero,
  .tn-pricing-hero,
  .tn-account-banner,
  .tn-footer-card,
  .tn-humanize-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .tn-dashboard-summary,
  .tn-pricing-aside,
  .tn-callout-grid,
  .tn-credit-rules,
  .tn-balance-grid {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .tn-cookie-banner,
  .tn-legal-nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .tn-dialog-actions {
    flex-direction: column;
  }

  .tn-dialog-actions .btn {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .tn-hero {
    padding-top: 60px;
  }

  .tn-showcase-panel,
  .tn-surface-card,
  .tn-strip-card,
  .tn-step-card,
  .tn-use-card,
  .tn-plan-card,
  .tn-pack-card,
  .tn-credit-box,
  .tn-credit-table-wrap,
  .tn-account-banner,
  .tn-pricing-hero,
  .tn-dashboard-hero {
    padding: 22px;
  }

  .tn-hero-title {
    font-size: 2.6rem;
  }

  .tn-hero-rate-grid,
  .tn-hero-signal-grid {
    grid-template-columns: 1fr;
  }

  .tn-score-ring,
  .tn-score-ring.large {
    width: 140px;
    height: 140px;
  }

  .tn-credit-table {
    min-width: 680px;
  }

  .tn-quick-stats,
  .tn-score-split,
  .tn-tone-picker {
    grid-template-columns: 1fr;
  }

  .tn-cookie-banner {
    left: 16px;
    right: 16px;
    bottom: 16px;
    padding: 20px;
  }

  .tn-legal-card {
    padding: 24px;
    border-radius: 22px;
  }
}
