/* ==========================================================================
   PROMPT RESUME - PREMIUM SAAS WORDPRESS THEME STYLESHEET
   Design Inspiration: Apple, Linear, Notion, Raycast, Stripe, Vercel
   Compact, Precise & Ultra-Responsive Layout
   ========================================================================== */

:root {
  --color-bg: #fafafa;
  --color-card: #ffffff;
  --color-text-main: #111827;
  --color-text-sub: #4b5563;
  --color-text-muted: #9ca3af;
  --color-btn-primary: #2563eb;
  --color-btn-hover: #1d4ed8;
  --color-border: #e5e7eb;
  --color-border-dark: #d1d5db;

  --font-inter: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --max-width: 1060px;
  --gutter: 20px;
  --radius-card: 14px;
  --radius-btn: 10px;
  --radius-full: 9999px;

  --shadow-subtle: 0 1px 3px 0 rgba(0, 0, 0, 0.04), 0 1px 2px -1px rgba(0, 0, 0, 0.02);
  --shadow-card: 0 4px 12px -2px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.02);
  --shadow-book: -10px 20px 36px -8px rgba(0, 0, 0, 0.25), 0 0 16px rgba(37, 99, 235, 0.1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-inter);
  font-size: 16px;
  color: var(--color-text-main);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body {
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Container & Compact Section Padding */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section {
  padding-top: 56px;
  padding-bottom: 56px;
}

/* ========================================================================== 
   HEADER
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 250, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  font-weight: 800;
  font-size: 18px;
  color: var(--color-text-main);
  text-decoration: none;
  letter-spacing: -0.025em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand span {
  color: var(--color-btn-primary);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-sub);
  text-decoration: none;
  transition: color 150ms ease;
}

.header-link:hover {
  color: var(--color-text-main);
}

.header-login-link {
  font-weight: 600;
  color: var(--color-btn-primary);
}

/* Mobile Hamburger */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 60;
}

.mobile-menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--color-text-main);
  border-radius: 2px;
  transition: all 200ms ease;
}

.mobile-menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Nav Overlay */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 64px;
  left: 0; right: 0; bottom: 0;
  background: rgba(250, 250, 250, 0.98);
  backdrop-filter: blur(20px);
  z-index: 45;
  padding: 20px;
  overflow-y: auto;
}

.mobile-nav-overlay.open { display: block; }

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav-link {
  display: block;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-main);
  text-decoration: none;
  border-radius: 10px;
}

.mobile-nav-link:hover,
.mobile-nav-link:active {
  background: var(--color-bg);
}

/* ========================================================================== 
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-btn);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 150ms cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  font-family: var(--font-inter);
}

.btn-primary {
  background-color: var(--color-btn-primary);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--color-btn-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: #ffffff;
  color: var(--color-text-main);
  border-color: var(--color-border);
}

.btn-secondary:hover {
  background-color: #f3f4f6;
}

.btn-lg {
  padding: 13px 26px;
  font-size: 15px;
  border-radius: 12px;
}

/* ========================================================================== 
   HERO SECTION
   ========================================================================== */
.hero {
  padding-top: 48px;
  padding-bottom: 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 44px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-btn-primary);
  margin-bottom: 12px;
}

.hero-title {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--color-text-main);
  margin-bottom: 16px;
}

.hero-description {
  font-size: 16px;
  line-height: 1.55;
  color: var(--color-text-sub);
  margin-bottom: 20px;
  max-width: 500px;
}

.hero-trust-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.hero-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #eff6ff;
  color: var(--color-btn-primary);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  border: 1px solid #dbeafe;
}

.hero-ai-compat {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.hero-ai-compat strong { color: var(--color-text-sub); }

.hero-ctas {
  display: flex;
  gap: 14px;
  align-items: center;
}

/* Product Gallery Showcase */
.hero-book-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.hero-product-gallery {
  width: 100%;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gallery-main-display {
  position: relative;
  width: 100%;
  height: 420px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-book);
  border: 1px solid var(--color-border);
  background: #090d16;
}

.gallery-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.96);
  transition: opacity 350ms cubic-bezier(0.16, 1, 0.3, 1), transform 350ms cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #090d16;
}

.gallery-slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 14px;
}

.gallery-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  color: #38bdf8;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(56, 189, 248, 0.3);
  letter-spacing: 0.05em;
  z-index: 10;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid var(--color-border);
  color: var(--color-text-main);
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  opacity: 0.85;
  transition: all 150ms ease;
}

.gallery-arrow:hover {
  opacity: 1;
  background: #ffffff;
  transform: translateY(-50%) scale(1.08);
}

.gallery-arrow.prev { left: 10px; }
.gallery-arrow.next { right: 10px; }

.gallery-thumbs-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.thumb-btn {
  background: var(--color-card);
  border: 2px solid var(--color-border);
  border-radius: 8px;
  padding: 2px;
  cursor: pointer;
  opacity: 0.55;
  transition: all 150ms ease;
  overflow: hidden;
  height: 60px;
}

.thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
  display: block;
}

.thumb-btn.active {
  border-color: var(--color-btn-primary);
  opacity: 1;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

/* ========================================================================== 
   SECTION TITLES (Compact)
   ========================================================================== */
.section-header {
  max-width: 600px;
  margin: 0 auto 36px auto;
  text-align: center;
}

.section-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-btn-primary);
  margin-bottom: 8px;
}

.section-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--color-text-main);
  margin-bottom: 8px;
}

.section-subtitle {
  font-size: 15px;
  color: var(--color-text-sub);
  line-height: 1.5;
}

/* ========================================================================== 
   WHAT YOU GET SECTION (Precise 3x2 Grid)
   ========================================================================== */
.wyg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.wyg-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 22px;
  box-shadow: var(--shadow-subtle);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.wyg-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.wyg-icon {
  font-size: 24px;
  margin-bottom: 12px;
}

.wyg-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 6px;
}

.wyg-desc {
  font-size: 13px;
  color: var(--color-text-sub);
  line-height: 1.5;
}

/* ========================================================================== 
   HOW IT WORKS SECTION (Compact Process)
   ========================================================================== */
.hiw-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 840px;
  margin: 0 auto;
}

.hiw-step {
  text-align: center;
  position: relative;
}

.hiw-number {
  width: 44px;
  height: 44px;
  background: var(--color-btn-primary);
  color: #ffffff;
  border-radius: 50%;
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px auto;
}

.hiw-connector {
  position: absolute;
  top: 22px;
  left: calc(50% + 30px);
  width: calc(100% - 60px + 24px);
  height: 2px;
  background: var(--color-border);
}

.hiw-step:last-child .hiw-connector { display: none; }

.hiw-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 6px;
}

.hiw-desc {
  font-size: 13px;
  color: var(--color-text-sub);
  line-height: 1.5;
}

/* ========================================================================== 
   HEADLINES MARQUEE SECTION
   ========================================================================== */
.headlines-section {
  padding: 16px 0;
  background: var(--color-text-main);
  overflow: hidden;
}

.headlines-marquee {
  overflow: hidden;
  white-space: nowrap;
}

.headlines-track {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  animation: marquee-scroll 35s linear infinite;
}

.headline-item {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
}

.headline-dot {
  color: var(--color-btn-primary);
  font-size: 11px;
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ========================================================================== 
   PDF SCREENSHOT PREVIEW GRID
   ========================================================================== */
.preview-ss-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.ss-preview-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 20px;
  box-shadow: var(--shadow-card);
}

.ss-number-badge {
  width: 28px;
  height: 28px;
  background: var(--color-btn-primary);
  color: #ffffff;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.ss-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 6px;
  line-height: 1.3;
}

.ss-desc {
  font-size: 12px;
  color: var(--color-text-sub);
  margin-bottom: 16px;
  line-height: 1.4;
}

.ss-img-container {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  background: #f8fafc;
}

.ss-img {
  width: 100%;
  height: auto;
  display: block;
}

/* ========================================================================== 
   FAQ ACCORDION SECTION
   ========================================================================== */
.faq-container {
  max-width: 680px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: 10px;
  margin-bottom: 10px;
  background: var(--color-card);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-main);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-inter);
}

.faq-icon {
  font-size: 18px;
  color: var(--color-text-muted);
  transition: transform 200ms ease;
}

.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 250ms cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.open .faq-answer { max-height: 250px; }

.faq-answer p {
  padding: 0 20px 16px 20px;
  font-size: 13.5px;
  color: var(--color-text-sub);
  line-height: 1.55;
}

/* ========================================================================== 
   PRICING SECTION
   ========================================================================== */
.pricing-container {
  max-width: 420px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--color-card);
  border: 2px solid var(--color-btn-primary);
  border-radius: var(--radius-card);
  padding: 32px 28px;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.pricing-badge {
  display: inline-block;
  background: #eff6ff;
  color: var(--color-btn-primary);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.price-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
}

.price-launch {
  font-size: 48px;
  font-weight: 900;
  color: var(--color-btn-primary);
  letter-spacing: -0.03em;
  line-height: 1;
}

.price-original {
  font-size: 18px;
  color: var(--color-text-muted);
  text-decoration: line-through;
  font-weight: 500;
}

.pricing-list {
  text-align: left;
  list-style: none;
  margin: 22px 0;
}

.pricing-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--color-bg);
  font-size: 13.5px;
  color: var(--color-text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pricing-list li span {
  color: #059669;
  font-weight: bold;
}

/* ========================================================================== 
   CONTACT SECTION
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 600px;
  margin: 0 auto;
}

.contact-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 24px;
  text-align: center;
}

.contact-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}

.contact-card p {
  font-size: 13px;
  color: var(--color-text-sub);
  margin-bottom: 14px;
}

/* ========================================================================== 
   WORKSPACE / DASHBOARD
   ========================================================================== */
.workspace-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 28px;
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
}

.workspace-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 14px;
}

.workspace-user-badge {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-btn-primary);
  color: #ffffff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.downloads-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.download-item {
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fafafa;
  gap: 10px;
  flex-wrap: wrap;
}

/* ========================================================================== 
   THANK YOU PAGE
   ========================================================================== */
.thankyou-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 36px 28px;
  box-shadow: var(--shadow-card);
}

.thankyou-header {
  text-align: center;
  margin-bottom: 28px;
}

.thankyou-check-icon {
  width: 64px;
  height: 64px;
  background: #ecfdf5;
  color: #059669;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 16px auto;
  border: 2px solid #a7f3d0;
}

.thankyou-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.thankyou-subtitle {
  color: var(--color-text-sub);
  font-size: 15px;
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.5;
}

.thankyou-order-details {
  background: #f8fafc;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.thankyou-download-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 16px;
}

.thankyou-downloads {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.thankyou-download-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-subtle);
  gap: 14px;
  flex-wrap: wrap;
}

.thankyou-file-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 180px;
}

.thankyou-file-info strong {
  display: block;
  font-size: 14.5px;
  margin-bottom: 2px;
}

.thankyou-file-info span {
  font-size: 12px;
  color: var(--color-text-sub);
}

.thankyou-guide {
  background: #f8fafc;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 20px;
}

/* ========================================================================== 
   LOGIN PAGE
   ========================================================================== */
.login-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 32px 24px;
  box-shadow: var(--shadow-card);
}

.login-header {
  text-align: center;
  margin-bottom: 24px;
}

.login-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 6px;
}

.login-subtitle {
  font-size: 13.5px;
  color: var(--color-text-sub);
}

.login-form .form-group {
  margin-bottom: 16px;
}

.login-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}

.form-input,
.login-form input[type="text"],
.login-form input[type="email"],
.login-form input[type="password"] {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-family: var(--font-inter);
  font-size: 14px;
  background: #ffffff;
}

.form-input:focus,
.login-form input:focus {
  outline: none;
  border-color: var(--color-btn-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* ========================================================================== 
   AI CHATBOT WIDGET (Ultra-Responsive & Non-Overlapping)
   ========================================================================== */
.chat-fab {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-btn-primary);
  color: #ffffff;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.4);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 150ms ease, bottom 150ms ease;
}

.chat-fab:hover {
  transform: scale(1.06);
}

.chat-fab-icon { font-size: 22px; }

.chat-window {
  position: fixed;
  bottom: 84px;
  right: 20px;
  width: 360px;
  max-height: 480px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
  z-index: 9999;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.chat-window.open { display: flex; }

.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--color-border);
  background: #f8fafc;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-avatar { font-size: 22px; }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 320px;
  min-height: 180px;
}

.chat-msg-bubble {
  padding: 9px 13px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.45;
}

.chat-msg.bot .chat-msg-bubble {
  background: #f1f5f9;
  color: var(--color-text-main);
  border-bottom-left-radius: 4px;
}

.chat-msg.user .chat-msg-bubble {
  background: var(--color-btn-primary);
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

.chat-input-form {
  display: flex;
  padding: 10px 14px;
  border-top: 1px solid var(--color-border);
  gap: 6px;
  background: #ffffff;
}

.chat-input {
  flex: 1;
  padding: 9px 12px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-family: var(--font-inter);
  font-size: 13px;
}

.chat-send-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--color-btn-primary);
  color: #ffffff;
  border: none;
  cursor: pointer;
  font-size: 15px;
}

/* ========================================================================== 
   FOOTER & MOBILE STICKY BAR
   ========================================================================== */
.footer {
  background: #ffffff;
  border-top: 1px solid var(--color-border);
  padding: 48px 0 24px 0;
  margin-top: auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}

.footer-brand {
  font-weight: 800;
  font-size: 17px;
  margin-bottom: 6px;
}

.footer-desc {
  font-size: 13px;
  color: var(--color-text-sub);
  max-width: 300px;
  line-height: 1.5;
}

.footer-nav-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-main);
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-link {
  font-size: 13px;
  color: var(--color-text-sub);
  text-decoration: none;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-inter);
  padding: 0;
}

.footer-link:hover { color: var(--color-text-main); }

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: var(--color-text-sub);
}

/* Mobile Sticky Bar */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--color-border);
  padding: 10px var(--gutter);
  z-index: 990;
}

/* MODALS */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.6);
  backdrop-filter: blur(6px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 150ms ease;
}

.modal-backdrop.open { opacity: 1; pointer-events: auto; }

.modal-box {
  background: var(--color-card);
  border-radius: var(--radius-card);
  width: 100%;
  max-width: 520px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 28px 24px;
  position: relative;
  box-shadow: var(--shadow-card);
}

.modal-close-btn {
  position: absolute;
  top: 14px; right: 14px;
  background: var(--color-bg);
  border: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  font-size: 15px;
  cursor: pointer;
}

/* ========================================================================== 
   RESPONSIVE BREAKPOINTS & PERFECT MOBILE CHAT FIX
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }
  .hero-left { display: flex; flex-direction: column; align-items: center; }
  .hero-description { max-width: 560px; }
  .hero-trust-row, .hero-ctas { justify-content: center; }
  .wyg-grid { grid-template-columns: repeat(2, 1fr); }
  .hiw-connector { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 768px) {
  :root { --gutter: 16px; }
  .section { padding-top: 44px; padding-bottom: 44px; }
  .header-container { height: 60px; }
  .header-right { display: none; }
  .mobile-menu-toggle { display: flex; }
  .hero { padding-top: 28px; padding-bottom: 44px; }
  .hero-title { font-size: 28px; }
  .hero-description { font-size: 14.5px; }
  .hero-ctas { width: 100%; flex-direction: column; gap: 10px; }
  .hero-ctas .btn { width: 100%; }
  .gallery-main-display { height: 340px; }
  .thumb-btn { height: 50px; }
  .section-title { font-size: 24px; }
  .wyg-grid { grid-template-columns: 1fr; gap: 14px; }
  .hiw-grid { grid-template-columns: 1fr; gap: 20px; }
  .preview-ss-grid { grid-template-columns: 1fr; gap: 16px; }
  .contact-grid { grid-template-columns: 1fr; }
  .downloads-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 6px; text-align: center; }
  
  /* Mobile Sticky Buy Bar */
  .mobile-sticky-bar { display: flex; align-items: center; justify-content: space-between; }
  body { padding-bottom: 64px; }

  /* Mobile Chat FAB Position Above Sticky Bar */
  .chat-fab {
    bottom: 74px;
    right: 16px;
    width: 48px;
    height: 48px;
    z-index: 995;
  }

  .chat-fab-icon { font-size: 20px; }

  /* Mobile Chat Window Open Overlay (Clean & Non-overlapping) */
  .chat-window {
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    height: 75vh;
    max-height: 75vh;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.25);
    z-index: 99999;
  }

  .thankyou-card, .login-card, .workspace-card { padding: 24px 18px; }
  .thankyou-order-details, .thankyou-download-card, .thankyou-file-info { flex-direction: column; text-align: center; }
  .thankyou-download-card .btn, .download-item .btn { width: 100%; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 24px; }
  .gallery-main-display { height: 280px; }
  .pricing-card { padding: 24px 18px; }
  .price-launch { font-size: 40px; }

  .chat-window {
    height: 80vh;
    max-height: 80vh;
  }
}
