/* Global Light Theme Styles */
body {
  margin: 0;
  padding: 0;
  font-family: "Roboto", sans-serif;
  font-size:clamp(1.0rem,1vw,2rem);
  background: url("background.png") no-repeat center center fixed;
  background-size: cover;
  color: #333;
}

code {
  font-size: 1.2em;
}

p {
  margin: 0rem 0rem;
}

a {
  color: #007acc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul {
  padding-left: 20px;
}

summary {
  color: #866c47;
}
/* ----------------------------- Navigation Bar ----------------------------- */
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
  border-bottom: 2px solid #ddd;
  padding: 10px 10px;
  position: sticky;
  top: 0;
  z-index: 1;
}

/* Navigation Tabs (Horizontal for PC) */
.nav-tabs {
  display: flex;
  padding: 20px;
  gap: 10px;
}

/* Nav Buttons */
.tablinks {
  background: none;
  border: none;
  padding: 12px 16px;
  cursor: pointer;
  font-size: 1em;
  font-weight: 500;
  color: #333;
  border-radius: 10px;
  transition: background 0.3s, color 0.3s;
}

/* Hover and Active Effects */
.tablinks:hover,
.tablinks.active {
  background: #007acc;
  color: #fff;
}

/* Hamburger Menu Button */
.menu-toggle {
  display: none; /* Hidden by default on PC */
}

/* ----------------------------- Branding ----------------------------- */
.branding {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.branding img {
  width: 60px;
  height: 60px;
  margin-left: 10px;
  margin-right: 10px;
}
.branding .branding-text h1 {
  margin: 0;
  font-size: 1.6em;
  color: #222;
}
.branding .branding-text p {
  margin: 5px 0 0;
  font-size: 1.2em;
  color: #555;
}

/* ----------------------------- Chatbot ----------------------------- */
.chat-toggle {
  position: fixed;
  bottom: 0.5vh;
  right: 0.5vw;
  background: none;
  border: none;
  padding: 0;
  width: 12vw;
  height: 12vw;
  min-width: 30px;
  min-height: 30px;
  max-width: 60px;
  max-height: 60px;
  cursor: pointer;
  z-index: 1;
}

.chat-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.chat-container {
  display: none;
  position: fixed;
  bottom: 9vh;
  right: 1vw;
  width: 80vw;
  max-width: 600px;
  background: #fff;
  padding: 5px 10px 10px 10px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  z-index: 1;
}

.chat-container h4 {
  font-size: 1.5em;
  margin: 0;
  text-align: center;
  color: #007bff;
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

.messages {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 400px;
  overflow-y: auto;
  border: 1px solid #ccc;
  padding: 10px;
  margin-bottom: 10px;
  background: #f9f9f9;
  border-radius: 6px;
  align-items: stretch;
}

.message {
  margin: 8px 0;
}

.message.user {
  align-self: flex-end;
  background-color: #007BFF;
  color: white;
  padding: 8px 12px;
  border-radius: 15px 15px 0 15px;
  max-width: 80%;
  width: fit-content;
  word-wrap: break-word;
  margin: 2px 5px;
  text-align: left;
}

.message.bot {
  align-self: flex-start;
  background-color: #e9ecef;
  color: #333;
  padding: 8px 12px;
  border-radius: 15px 15px 15px 0;
  max-width: 80%;
  width: fit-content;
  word-wrap: break-word;
  margin: 2px 5px;
  text-align: left;
}

.message.bot strong {
  font-weight: bold;
}

.message.bot em {
  font-style: italic;
}

.message.error {
  align-self: left;
  background-color: #f8d7da;
  color: #721c24;
  padding: 8px 12px;
  border-radius: 15px 15px 15px 0;
  max-width: 90%;
  width: fit-content;
  text-align: left;
  margin: 2px 5px;
}

.message.loading {
  align-self: flex-start;
  background-color: #f0f0f0;
  color: #666;
  padding: 8px 12px;
  border-radius: 15px 15px 15px 0;
  max-width: 80%;
  width: fit-content;
  text-align: left;
  margin: 2px 5px;
}

.chat-container input[type="text"] {
  width: calc(100% - 90px);
  padding: 10px;
  border-radius: 4px;
  border: 1px solid #ccc;
}

.chat-input-area {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-container button {
  width: 70px;
  padding: 10px;
  margin-left: 10px;
  background: #007BFF;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

/* ----------------------------- Features ----------------------------- */
/* Shared Section Styling */
.features-section {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin: 20px auto;
  text-align: center;
}

/* Section Headings */
.feature-heading {
  font-size: clamp(1.4rem, 2.5vw, 3rem);
  margin: 5px 0;
  color: #007acc;
}

.feature-title {
  color: #007acc;
  margin-top: 0;
  font-size: 1.2rem;
}

/* Shared Card Container Layout */
.features-container,
.feature-box-container {
  --gap: 20px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: var(--card-width, 300px);
  gap: var(--gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  padding-bottom: 10px;
  padding-right: var(--gap);
  box-sizing: border-box;
}

/* Shared Card Styles */
.feature-card,
.feature-box {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  text-align: left;
  scroll-snap-align: start;
  box-sizing: border-box;
}

.feature-card:hover,
.feature-box:hover {
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

.feature-card h3,
.feature-box h3 {
  margin: 0 0 10px;
  font-size: 1.3em;
  color: #007BFF;
}

.feature-card p,
.feature-box p {
  margin-top: 8px;
  line-height: 1.6;
  font-size: 0.95em;
}

.feature-card ul {
  list-style: disc inside;
  margin: 0;
  padding: 0;
}

.feature-card li {
  line-height: 1.6;
  font-size: 0.95em;
  margin: 8px 0;
}

/* Comparison Card Styling */
.comparison-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 15px 18px;
  margin-bottom: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  font-size: 0.95em;
  line-height: 1.6;
  text-align: left;
  transition: transform 0.2s ease;
}

.comparison-card:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.comparison-card:last-child {
  margin-bottom: 0;
}

.comparison-card.our-software {
  border: 2px solid goldenrod;
  background: #fdf9ed;
}

.comparison-card.other-competitor {
  background: #f9f9f9;
  border: 1px dashed #bbb;
  opacity: 0.95;
}

.card-title {
  font-weight: 600;
  font-size: 1em;
  margin-top: 5px;
  margin-bottom: 5px;
}

.comparison-card.our-software .card-title {
  color: goldenrod;
}

.comparison-card.other-competitor .card-title {
  color: #666;
}
/* ----------------------------- Youtube Video ----------------------------- */
.video-wrapper {
  position: relative;
  max-width: 100%;
  height: 0;
  padding-bottom: 53%;
  margin: 0 auto;
  text-align: center;
}

.youtube-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 20px;
}
/* ----------------------------- Mobile styles using media query ----------------------------- */
@media (max-width: 1200px) {
  body {
      font-size: 14px;
  }
  .nav-tabs {
      display: none;
      flex-direction: column;
      position: absolute;
      top: 100%;
      left: 0;
      background: white;
      width: 200px;
      box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
      padding: 10px 0;
      z-index: 1;
  }

  .nav-bar {
      display: flex;
      align-items: center;
      justify-content: flex-start;
      background: white;
      border-bottom: 1px solid #ddd;
      padding: 10px;
      position: relative;
  }

  .nav-tabs.show {
      display: flex;
  }

  .menu-toggle {
    display: block;
    font-size: 2em;
    margin: 0;
    padding: 5px 0;
    background: none;
    border: none;
    cursor: pointer;
    color: #007acc;
    min-width: 40px;
    text-align: center;
  }

  .branding img {
      width: 50px;
      height: 50px;
      margin-left: 5px;
      margin-right: 5px;
  }
  .branding .branding-text h1 {
      margin: 0;
      font-size: 1.6em;
      color: #222;
  }
  .branding .branding-text p {
      margin: 5px 0 0;
      font-size: 1em;
      color: #555;
  }

  code {
    font-size: 1em;
  }
}

/* ----------------------------- Content Container ----------------------------- */
.container {
  width: 100%;
  min-height: 100dvh;
  box-shadow: 0 8px 8px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(2px);
}

.tabcontent {
  display: none;
  animation: fadeIn 0.5s ease;
}
.tabcontent.active {
  display: block;
  padding: 2%;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ----------------------------- Advertisement Block in Home ----------------------------- */
.advertisement {
  padding: 5px 20px 20px 20px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  border-radius: 1rem;
  margin-bottom: 20px;
}

.ad-title {
  text-align: center;
  color: #007acc;
  font-size: clamp(1.5rem, 2.4vw, 2.5rem);
  margin: 5px 0;
}

.slide-up {
  transform: translateY(20px);
  opacity: 0;
  animation: slideUp 1s forwards;
}

@keyframes slideUp {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
/* ----------------------------- Slides ----------------------------- */
.slide {
  display: none;
  padding: 0 60px 40px 60px;
}
.slide.active {
  display: block;
  animation: fadeIn 0.5s;
}
.slide h2 {
  margin-bottom: 20px;
  font-size: 1.4em;
  color: #007acc;
  text-align: center;
}
.slide .detail {
  font-size: 1em;
  line-height: 1.6;
  margin: 10px 0;
  padding: 10px;
  background: #f9f9f9;
  text-align: left;
  color: #333;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.5s forwards;
  border-radius: 20px;
  border: solid #007acc;
}
.slide .detail:nth-of-type(1) {
  animation-delay: 0.3s;
}
.slide .detail:nth-of-type(2) {
  animation-delay: 0.6s;
}
.slide .detail:nth-of-type(3) {
  animation-delay: 0.9s;
}
.nav-btn {
  width: 40px;
  height: 60px;
  font-size: 1.4rem;
  font-weight: 200;
  font-family: 'Arial', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background-color: #aaa;
  color: white;
  cursor: pointer;
  border-radius: 8px;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes slideUp {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ----------------------------- General Layout Styles ----------------------------- */
.tabcontent, .info-section {
  padding: 20px;
  box-sizing: border-box;
}

.plan-selection, #coupon-section, #purchase-button {
  margin-bottom: 20px;
}

/* Center buttons */
.button-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
}

/* PayPal button container */
.purchase-button {
  text-align: center;
  margin-top: 20px;
}

/* Center the plan-selection content when inside purchase-button */
.purchase-button .plan-selection {
  display: block; /* Override flex display to allow text-align: center to work */
  text-align: center;
}

.purchase-button .plan-option {
  width: auto; /* Override fixed width to allow natural sizing */
  display: inline-block; /* Allow centering with text-align */
  text-align: left; /* Keep internal content left-aligned */
}

/* ----------------------------- Plan Selection Styles ----------------------------- */
.pricing-table {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto; /* Center the pricing-table */
}

.plan-option {
  border: 2px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  height: auto;
  width: 50%;
  cursor: pointer;
  background-color: #fff;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.plan-option:hover {
  border-color: #007acc;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.plan-option.selected {
  border-color: #007acc;
  background-color: #f8f9fa;
}

.plan-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.plan-header input[type="radio"] {
  margin: 0;
}

.plan-header label {
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: #333;
}

.plan-details {
  min-height: 100px;
}

.plan-details .price {
  font-size: 1.2em;
  margin: 5px 0;
  color: #007acc;
  line-height: 1.4;
}

.plan-details .price span {
  font-size: 1em;
  color: #666;
  display: block;
  line-height: 1.4;
}

.plan-details .deal {
  font-size: 1em;
  margin: 5px 0;
  padding: 5px 10px;
  border-radius: 15px;
  display: inline-block;
}

.monthly-deal {
  background-color: #e6ffe6;
  color: #007BFF;
}

.yearly-deal {
  background-color: #fff3e6;
  color: #28a745;
}

/* Coupon section styling */
#coupon-section {
  text-align: center;
  margin: 20px 0;
  width: 100%;
  max-width: 600px; /* Match the pricing-table width */
  margin-left: auto;
  margin-right: auto;
}

/* Style the "Your Selected Plan" section */
.purchase-button {
  margin-top: 20px;
  width: 100%;
}

.purchase-button .plan-selection {
  display: block;
  text-align: center;
  width: 100%;
}

.purchase-button .plan-option {
  width: 100%;
  max-width: 600px; /* Match the pricing-table width */
  margin: 0 auto; /* Center the plan-option */
  min-height: 100px;
  display: block;
  text-align: left;
  background-color: #f8f9fa;
  border: 2px solid #007acc;
}

/* Style the PayPal buttons to have a max-width */
#paypal-button-container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

#paypal-button-container > div {
  width: 100%;
}

#paypal-button-container button {
  width: 100%;
}

/* Ensure consistent styling for the "Your Selected Plan" card */
.purchase-button .plan-option strong {
  font-size: 1.2em;
  font-weight: bold;
  color: #333;
}

.purchase-button .plan-option p {
  font-size: 1.2em;
  margin: 5px 0;
  color: #007acc;
  line-height: 1.4;
}

/* ----------------------------- Coupon Section Styles ----------------------------- */
.coupon-wrapper {
  text-align: center;
}

.coupon-input-group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin-bottom: 10px;
}

.coupon-label {
  font-size: 1em;
  color: #333;
  margin-right: 5px;
  line-height: 1;
  padding: 0;
}

.coupon {
  padding: 8px;
  font-size: 1em;
  border: 1px solid #ddd;
  border-radius: 5px;
  width: 200px;
  min-width: 100px;
  outline: none;
  line-height: 1;
  box-sizing: border-box;
}

.coupon:focus {
  border-color: #007acc;
  box-shadow: 0 0 5px rgba(0, 122, 204, 0.3);
}

.apply-coupon {
  padding: 8px 15px;
  font-size: 1em;
  border: none;
  border-radius: 5px;
  background: linear-gradient(135deg, #007acc, #005ea6);
  color: white;
  cursor: pointer;
  transition: background 0.3s ease;
  line-height: 1;
  box-sizing: border-box;
}

.apply-coupon:hover {
  background: linear-gradient(135deg, #005ea6, #007acc);
}

.discount-message {
  font-size: 0.9em;
  margin-top: 10px;
  color: green;
  text-align: center;
}
/* ----------------------------- Button Styles ----------------------------- */
.button {
  padding: 10px 20px;
  font-size: 1em;
  border: none;
  border-radius: 5px;
  background: linear-gradient(135deg, #007acc, #005ea6);
  color: white;
  cursor: pointer;
  transition: background 0.3s ease;
  box-sizing: border-box;
}

.button:hover {
  background: linear-gradient(135deg, #005ea6, #007acc);
}

#download-btn-windows, #download-btn-linux {
  background: linear-gradient(135deg, #28a745, #66ff99);
}

#download-btn-windows:hover, #download-btn-linux:hover {
  background: linear-gradient(135deg, #66ff99, #28a745);
}

/* ----------------------------- Download Section Styles ----------------------------- */
.download-container {
  margin-top: 20px;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background-color: #f9f9f9;
  text-align: center;
}

.license-section {
  margin-top: 20px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #f9f9f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.license-section span {
  font-family: Arial, sans-serif;
  font-size: 14px;
}

.license-section button {
  padding: 5px 10px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.license-section button:hover {
  background-color: #45a049;
}

/* ----------------------------- Linux Instructions Styles ----------------------------- */
.linux-instructions {
  margin-top: 20px;
  font-size: 0.9em;
  color: #666;
}

.linux-instructions code {
  background-color: #f5f5f5;
  padding: 2px 5px;
  border-radius: 3px;
}
/* ----------------------------- Already Purchased ----------------------------- */
.already-purchased-link {
  color: #007acc;
  text-decoration: underline;
  cursor: pointer;
  margin-left: 10px; /* Add some spacing between the heading text and the link */
}

.already-purchased-link:hover {
  color: #005ea6; /* Darker blue on hover */
  text-decoration: underline;
}
/* ----------------------------- License Check Section Styles ----------------------------- */
#license-check-section {
    margin-bottom: 20px;
}

#license-check-section a {
    color: #007acc;
    text-decoration: none;
}

#license-check-section a:hover {
    text-decoration: underline;
}
/* ----------------------------- Form Styles ----------------------------- */
form {
  margin: 20px auto;
  background: #fafafa;
  padding: 20px 20px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  color: #333;
}
form label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  text-align: left;
}
form input,
form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  transition: border-color 0.3s;
  box-sizing: border-box;
}
form input:focus,
form textarea:focus {
  border-color: #007acc;
  outline: none;
}
/* Restrict textarea resizing to vertical only */
form textarea {
  resize: vertical;
}
form button {
  display: block;
  margin: auto;
  padding: 10px 20px;
  background: linear-gradient(135deg, #007acc, #66b3ff);
  border: none;
  color: #fff;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
  transition: background-color 0.3s, opacity 0.3s;
}
form button:hover {
  background: linear-gradient(135deg, #66b3ff, #007acc);
}

/* ----------------------------- Info Section Styles for static pages ----------------------------- */
.info-section {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 10px;
  margin: 20px auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  color: #333;
}
.info-section h2,
.info-section h3,
.info-section h4 {
  color: #007acc;
}
.info-section p {
  line-height: 1.6;
}

/* ----------------------------- Developer Image ----------------------------- */
.developer-img {
  max-width: 100%;
  display: block;
  margin: 20px auto;
}

/* ----------------------------- Release Log Module Styling ----------------------------- */
.release-log details {
  background: #f0f0f0;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.release-log summary {
  font-weight: 500;
  cursor: pointer;
  outline: none;
  color: #007acc;
}
.release-log p {
  white-space: normal;
  word-wrap: break-word;
}

/* ----------------------------- Chatbot professional UI ----------------------------- */
.chat-toggle {
  right: 22px;
  bottom: 22px;
  width: 64px;
  height: 64px;
  max-width: 64px;
  max-height: 64px;
  min-width: 54px;
  min-height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffffff, #eaf2ff);
  border: 1px solid rgba(31, 111, 214, 0.2);
  box-shadow: 0 18px 36px rgba(19, 31, 56, 0.22), 0 0 0 8px rgba(31, 111, 214, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.chat-toggle:hover,
.chat-toggle:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 22px 44px rgba(19, 31, 56, 0.26), 0 0 0 10px rgba(31, 111, 214, 0.1);
  outline: none;
}

.chat-icon {
  width: 72%;
  height: 72%;
  border-radius: 50%;
}

.chat-container {
  right: 22px;
  bottom: 104px;
  width: min(420px, calc(100vw - 28px));
  max-width: 420px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(217, 224, 234, 0.95);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 28px 70px rgba(19, 31, 56, 0.28);
  backdrop-filter: blur(18px);
}

.chat-container h4 {
  margin: 0;
  padding: 16px 18px;
  border-bottom: 1px solid var(--ss-line, #d9e0ea);
  background: linear-gradient(135deg, #f8fbff 0%, #edf5ff 100%);
  color: var(--ss-ink, #182033);
  font-family: "Roboto", sans-serif;
  font-size: 1rem;
  font-weight: 800;
  text-align: left;
}

.chat-container h4::after {
  content: none;
  float: right;
  margin-top: 1px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(31, 138, 98, 0.12);
  color: var(--ss-green, #1f8a62);
  font-size: 0.72rem;
  font-weight: 800;
}

.messages {
  height: min(430px, 52vh);
  margin: 0;
  padding: 16px;
  border: none;
  border-radius: 0;
  background:
    linear-gradient(rgba(247, 249, 252, 0.92), rgba(247, 249, 252, 0.92)),
    radial-gradient(circle at 10% 0%, rgba(31, 111, 214, 0.08), transparent 18rem);
}

.message {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.48;
}

.message.user,
.message.bot,
.message.loading,
.message.error {
  max-width: min(82%, 330px);
  padding: 10px 13px;
  box-shadow: 0 8px 18px rgba(19, 31, 56, 0.08);
}

.message.user {
  background: linear-gradient(135deg, var(--ss-blue, #1f6fd6), #3b82f6);
  border-radius: 16px 16px 4px 16px;
}

.message.bot,
.message.loading {
  border: 1px solid #e3e9f2;
  background: #ffffff;
  color: var(--ss-ink, #182033);
  border-radius: 16px 16px 16px 4px;
}

.message.error {
  border: 1px solid #f0b7bd;
  background: #fff2f3;
  color: #9f1d2f;
  border-radius: 16px 16px 16px 4px;
}

.message.loading {
  color: var(--ss-muted, #657084);
}

.chat-input-area {
  gap: 10px;
  padding: 12px;
  border-top: 1px solid var(--ss-line, #d9e0ea);
  background: #ffffff;
}

.chat-container input[type="text"] {
  width: 100%;
  min-height: 42px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #cfd8e6;
  border-radius: 8px;
  background: #f8fafc;
  color: var(--ss-ink, #182033);
  font: inherit;
}

.chat-container input[type="text"]::placeholder {
  color: #8a95a8;
}

.chat-container button {
  flex: 0 0 auto;
  width: auto;
  min-width: 74px;
  min-height: 42px;
  margin-left: 0;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ss-blue, #1f6fd6);
  font-weight: 800;
}

@media (max-width: 640px) {
  .chat-toggle {
    right: 16px;
    bottom: 16px;
    width: 58px;
    height: 58px;
  }

  .chat-container {
    right: 12px;
    bottom: 88px;
    width: calc(100vw - 24px);
  }
}

/* ----------------------------- Final final home and chat state ----------------------------- */
.chat-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 70px;
  height: 44px;
  max-width: none;
  max-height: none;
  padding: 0 18px;
  border-radius: 999px;
  color: var(--ss-blue);
  font-family: "Roboto", sans-serif;
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0;
}

.chat-toggle::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--ss-green);
  box-shadow: 0 0 0 4px rgba(31, 138, 98, 0.12);
}

.chat-container h4::after,
#home .advertisement::after {
  content: none;
  display: none;
}

#home #adAndCarousel {
  overflow: visible !important;
}

#home .advertisement {
  display: block;
  max-width: 1180px;
  padding: clamp(30px, 4vw, 52px);
  text-align: center;
}

#home .ad-title {
  max-width: 900px;
  margin: 0 auto 28px;
  padding-bottom: 0;
  font-size: clamp(2.6rem, 5.2vw, 5rem);
  line-height: 0.98;
  text-align: center;
}

#home .advertisement p {
  max-width: 980px;
  margin: 18px auto 0;
  text-align: left;
  font-size: clamp(1rem, 0.35vw + 0.94rem, 1.16rem);
}

#home .advertisement p:nth-of-type(4) {
  display: flex;
  justify-content: center;
  margin-top: 26px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

#home .advertisement p:nth-of-type(4) a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  background: var(--ss-blue);
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(31, 111, 214, 0.22);
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

#home .advertisement p:nth-of-type(4) a:hover,
#home .advertisement p:nth-of-type(4) a:focus-visible {
  background: var(--ss-blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(31, 111, 214, 0.26);
}

#home .features-container,
#home .feature-box-container {
  --gap: 16px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: var(--card-width, 300px);
  gap: var(--gap);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  padding: 4px var(--gap) 18px 4px;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .chat-toggle {
    width: auto;
    min-width: 66px;
    height: 42px;
    padding: 0 16px;
  }

  #home .features-container,
  #home .feature-box-container {
    grid-auto-columns: minmax(280px, 88vw);
  }
}

/* ----------------------------- Corrected home layout preserving sliders ----------------------------- */
#home .advertisement {
  display: block;
  max-width: 1180px;
  padding: clamp(30px, 4vw, 52px);
  text-align: center;
}

#home .ad-title {
  max-width: 900px;
  margin: 0 auto 28px;
  font-size: clamp(2.6rem, 5.2vw, 5rem);
  line-height: 0.98;
  text-align: center;
}

#home .advertisement p {
  max-width: 980px;
  margin: 18px auto 0;
  text-align: left;
  font-size: clamp(1rem, 0.35vw + 0.94rem, 1.16rem);
}

#home .advertisement p:nth-of-type(4) {
  display: flex;
  justify-content: center;
  margin-top: 26px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

#home .advertisement p:nth-of-type(4) a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  background: var(--ss-blue);
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(31, 111, 214, 0.22);
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

#home .advertisement p:nth-of-type(4) a:hover,
#home .advertisement p:nth-of-type(4) a:focus-visible {
  background: var(--ss-blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(31, 111, 214, 0.26);
}

#home .features-section {
  max-width: 1180px;
  padding: clamp(24px, 3vw, 36px);
}

#home .features-section .feature-heading {
  margin-bottom: 20px;
  font-size: clamp(1.55rem, 2.2vw, 2.4rem);
}

#home .features-container,
#home .feature-box-container {
  --gap: 16px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: var(--card-width, 300px);
  gap: var(--gap);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  padding: 4px var(--gap) 18px 4px;
  box-sizing: border-box;
}

#home .feature-card,
#home .feature-box {
  scroll-snap-align: start;
  min-height: 100%;
  padding: 18px;
}

#home .feature-card h3,
#home .feature-box h3 {
  font-size: 1.08rem;
  line-height: 1.25;
}

#home .feature-card ul {
  list-style: disc inside;
  margin: 0;
  padding: 0;
}

#home .feature-card li {
  padding-left: 0;
}

#home .feature-card li::before {
  content: none;
}

#home .feature-box {
  display: block;
}

#home .comparison-card {
  margin-bottom: 12px;
}

@media (max-width: 640px) {
  #home .advertisement {
    padding: 24px 18px;
  }

  #home .ad-title {
    font-size: clamp(2.1rem, 11vw, 3.4rem);
  }

  #home .features-container,
  #home .feature-box-container {
    grid-auto-columns: minmax(280px, 88vw);
  }
}

/* ----------------------------- Corrected home layout preserving sliders ----------------------------- */
#home .advertisement {
  display: block;
  max-width: 1180px;
  padding: clamp(30px, 4vw, 52px);
  text-align: center;
}

#home .ad-title {
  max-width: 900px;
  margin: 0 auto 28px;
  font-size: clamp(2.6rem, 5.2vw, 5rem);
  line-height: 0.98;
  text-align: center;
}

#home .advertisement p {
  max-width: 980px;
  margin: 18px auto 0;
  text-align: left;
  font-size: clamp(1rem, 0.35vw + 0.94rem, 1.16rem);
}

#home .advertisement p:nth-of-type(4) {
  display: flex;
  justify-content: center;
  margin-top: 26px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

#home .advertisement p:nth-of-type(4) a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  background: var(--ss-blue);
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(31, 111, 214, 0.22);
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

#home .advertisement p:nth-of-type(4) a:hover,
#home .advertisement p:nth-of-type(4) a:focus-visible {
  background: var(--ss-blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(31, 111, 214, 0.26);
}

#home .features-section {
  max-width: 1180px;
  padding: clamp(24px, 3vw, 36px);
}

#home .features-section .feature-heading {
  margin-bottom: 20px;
  font-size: clamp(1.55rem, 2.2vw, 2.4rem);
}

#home .features-container,
#home .feature-box-container {
  --gap: 16px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: var(--card-width, 300px);
  gap: var(--gap);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  padding: 4px var(--gap) 18px 4px;
  box-sizing: border-box;
}

#home .feature-card,
#home .feature-box {
  scroll-snap-align: start;
  min-height: 100%;
  padding: 18px;
}

#home .feature-card h3,
#home .feature-box h3 {
  font-size: 1.08rem;
  line-height: 1.25;
}

#home .feature-card ul {
  list-style: disc inside;
  margin: 0;
  padding: 0;
}

#home .feature-card li {
  padding-left: 0;
}

#home .feature-card li::before {
  content: none;
}

#home .feature-box {
  display: block;
}

#home .comparison-card {
  margin-bottom: 12px;
}

@media (max-width: 640px) {
  #home .advertisement {
    padding: 24px 18px;
  }

  #home .ad-title {
    font-size: clamp(2.1rem, 11vw, 3.4rem);
  }

  #home .features-container,
  #home .feature-box-container {
    grid-auto-columns: minmax(280px, 88vw);
  }
}

/* ----------------------------- Last-mile home and chat refinements ----------------------------- */
.chat-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 70px;
  height: 44px;
  max-width: none;
  max-height: none;
  padding: 0 18px;
  border-radius: 999px;
  color: var(--ss-blue);
  font-family: "Roboto", sans-serif;
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0;
}

.chat-toggle::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--ss-green);
  box-shadow: 0 0 0 4px rgba(31, 138, 98, 0.12);
}

.chat-container h4::after,
#home .advertisement::after {
  content: none;
  display: none;
}

#home #adAndCarousel {
  overflow: visible !important;
}

#home .advertisement {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "title title"
    "intro support";
  gap: 18px 34px;
  align-items: end;
  padding: clamp(34px, 5vw, 64px);
}

#home .ad-title {
  grid-area: title;
  max-width: 980px;
  margin: 0 auto;
  padding-bottom: 0;
}

#home .advertisement p {
  max-width: 850px;
  margin: 0;
  text-align: left;
}

#home .advertisement p:nth-of-type(1) {
  grid-area: intro;
}

#home .advertisement p:nth-of-type(2),
#home .advertisement p:nth-of-type(3) {
  grid-column: 1;
  margin-top: 12px;
}

#home .advertisement p:nth-of-type(4) {
  grid-area: support;
  justify-self: end;
  align-self: center;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--ss-line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--ss-soft-shadow);
}

#home .features-container,
#home .feature-box-container {
  display: grid;
  grid-auto-flow: row;
  grid-auto-columns: initial;
  overflow: visible;
  padding: 0;
  scroll-snap-type: none;
}

#home .features-container {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

#home .feature-box-container {
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
}

@media (max-width: 900px) {
  #home .advertisement {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "intro"
      "support";
  }

  #home .advertisement p:nth-of-type(4) {
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .chat-toggle {
    width: auto;
    min-width: 66px;
    height: 42px;
    padding: 0 16px;
  }

  #home .features-container,
  #home .feature-box-container {
    grid-template-columns: 1fr;
  }
}

/* ----------------------------- Home page redesign cascade ----------------------------- */
#home #adAndCarousel {
  overflow: visible !important;
}

#home .advertisement {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "title title"
    "intro support";
  gap: 18px 34px;
  align-items: end;
  min-height: 0;
  padding: clamp(34px, 5vw, 64px);
  border: 1px solid rgba(255, 255, 255, 0.86);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.92)),
    radial-gradient(circle at 88% 14%, rgba(31, 111, 214, 0.12), transparent 22rem);
}

#home .advertisement::after {
  content: none;
  grid-area: title;
  justify-self: center;
  margin-top: clamp(6px, 1vw, 10px);
  padding: 7px 12px;
  border: 1px solid rgba(31, 111, 214, 0.16);
  border-radius: 999px;
  background: #eef5ff;
  color: var(--ss-blue);
  font-size: 0.8rem;
  font-weight: 800;
}

#home .ad-title {
  grid-area: title;
  max-width: 980px;
  margin: 0 auto;
  padding-bottom: 34px;
  font-size: clamp(2.7rem, 6vw, 5.9rem);
  line-height: 0.96;
  letter-spacing: 0;
}

#home .advertisement p {
  max-width: 850px;
  margin: 0;
  text-align: left;
}

#home .advertisement p:nth-of-type(1),
#home .advertisement p:nth-of-type(2),
#home .advertisement p:nth-of-type(3) {
  grid-column: 1;
}

#home .advertisement p:nth-of-type(1) {
  grid-area: intro;
}

#home .advertisement p:nth-of-type(2) {
  margin-top: 12px;
}

#home .advertisement p:nth-of-type(3) {
  margin-top: 12px;
}

#home .advertisement p:nth-of-type(4) {
  grid-area: support;
  justify-self: end;
  align-self: center;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--ss-line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--ss-soft-shadow);
}

#home .advertisement p:nth-of-type(4) a {
  display: inline-flex;
}

#home .advertisement p:nth-of-type(4) img {
  height: 42px;
  display: block;
}

#home .features-section {
  padding: clamp(28px, 4vw, 44px);
}

#home .features-section .feature-heading {
  max-width: 760px;
  margin: 0 auto 28px;
  text-align: center;
  font-size: clamp(1.75rem, 3vw, 3rem);
}

#home .features-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  grid-auto-flow: row;
  grid-auto-columns: initial;
  gap: 14px;
  overflow: visible;
  padding: 0;
  scroll-snap-type: none;
}

#home .feature-card {
  min-height: 100%;
  padding: 22px;
  border-color: rgba(217, 224, 234, 0.95);
}

#home .feature-card h3 {
  font-size: 1.06rem;
}

#home .feature-card ul {
  list-style: none;
}

#home .feature-card li {
  position: relative;
  margin: 10px 0;
  padding-left: 18px;
}

#home .feature-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ss-blue);
}

#home .feature-box-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  grid-auto-flow: row;
  grid-auto-columns: initial;
  gap: 16px;
  overflow: visible;
  padding: 0;
  scroll-snap-type: none;
}

#home .feature-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
}

#home .feature-box h3 {
  min-height: auto;
  margin-bottom: 0;
  font-size: 1.08rem;
}

#home .feature-content {
  display: grid;
  gap: 10px;
}

#home .comparison-card {
  margin: 0;
  padding: 14px;
}

#home .comparison-card:hover {
  transform: translateY(-1px);
}

#home .card-title {
  margin: 0 0 6px;
}

.chat-toggle {
  width: auto;
  min-width: 70px;
  height: 44px;
  max-width: none;
  max-height: none;
  padding: 0 18px;
  border-radius: 999px;
  color: var(--ss-blue);
  font-family: "Roboto", sans-serif;
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0;
}

.chat-toggle::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--ss-green);
  box-shadow: 0 0 0 4px rgba(31, 138, 98, 0.12);
}

.chat-icon {
  display: none;
}

@media (max-width: 900px) {
  #home .advertisement {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "intro"
      "support";
  }

  #home .advertisement p:nth-of-type(2),
  #home .advertisement p:nth-of-type(3) {
    grid-column: 1;
  }

  #home .advertisement p:nth-of-type(4) {
    justify-self: start;
  }
}

@media (max-width: 640px) {
  #home .ad-title {
    padding-bottom: 44px;
    font-size: clamp(2.2rem, 12vw, 3.6rem);
  }

  #home .advertisement::after {
    text-align: center;
  }

  #home .features-container,
  #home .feature-box-container {
    grid-template-columns: 1fr;
  }

  .chat-toggle {
    width: auto;
    min-width: 66px;
    height: 42px;
    padding: 0 16px;
  }
}

/* Preserve existing visible copy while keeping the redesigned layout. */
.chat-container h4::after,
#home .advertisement::after {
  content: none;
  display: none;
}

#home .ad-title {
  padding-bottom: 0;
}

.chat-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ----------------------------- Professional polish overrides ----------------------------- */
:root {
  --ss-ink: #182033;
  --ss-muted: #657084;
  --ss-line: #d9e0ea;
  --ss-panel: rgba(255, 255, 255, 0.94);
  --ss-panel-solid: #ffffff;
  --ss-blue: #1f6fd6;
  --ss-blue-dark: #174f9c;
  --ss-gold: #b6862c;
  --ss-green: #1f8a62;
  --ss-shadow: 0 18px 48px rgba(19, 31, 56, 0.14);
  --ss-soft-shadow: 0 10px 28px rgba(19, 31, 56, 0.1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-size: clamp(0.98rem, 0.35vw + 0.9rem, 1.08rem);
  line-height: 1.58;
  color: var(--ss-ink);
  background:
    linear-gradient(rgba(245, 248, 252, 0.76), rgba(245, 248, 252, 0.82)),
    url("background.png") no-repeat center center fixed;
  background-size: cover;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 16% 18%, rgba(31, 111, 214, 0.16), transparent 26rem),
    radial-gradient(circle at 88% 10%, rgba(182, 134, 44, 0.14), transparent 24rem);
  z-index: -1;
}

a {
  color: var(--ss-blue);
  font-weight: 500;
}

a:hover {
  color: var(--ss-blue-dark);
}

p {
  color: var(--ss-muted);
  line-height: 1.68;
}

code {
  padding: 0.08rem 0.32rem;
  border: 1px solid #dfe6f0;
  border-radius: 5px;
  background: #f4f7fb;
  color: #0f172a;
  font-size: 0.95em;
}

.nav-bar {
  gap: 18px;
  border-bottom: 1px solid rgba(217, 224, 234, 0.88);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 28px rgba(19, 31, 56, 0.08);
  backdrop-filter: blur(18px);
  padding: 12px clamp(14px, 2vw, 28px);
  z-index: 20;
}

.branding {
  min-width: 280px;
  color: inherit;
  text-decoration: none;
}

.branding:hover,
.branding:focus-visible {
  color: inherit;
  text-decoration: none;
}

.branding img {
  width: 56px;
  height: 56px;
  margin-left: 0;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(31, 111, 214, 0.16);
}

.branding .branding-text h1 {
  color: var(--ss-ink);
  font-size: clamp(1.35rem, 1.15vw + 1rem, 2rem);
  letter-spacing: 0;
}

.branding .branding-text p {
  margin-top: 2px;
  color: var(--ss-muted);
  font-size: clamp(0.88rem, 0.3vw + 0.78rem, 1.02rem);
  line-height: 1.35;
}

.nav-tabs {
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
}

.tablinks {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 9px 12px;
  color: #344055;
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.tablinks:hover,
.tablinks.active {
  border-color: rgba(31, 111, 214, 0.22);
  background: #eaf2ff;
  color: var(--ss-blue);
  text-decoration: none;
}

.tablinks:hover {
  transform: translateY(-1px);
}

.container {
  width: min(1180px, calc(100% - 32px));
  min-height: calc(100dvh - 88px);
  margin: 0 auto;
  box-shadow: none;
  backdrop-filter: none;
}

.tabcontent.active {
  padding: clamp(18px, 2.5vw, 34px) 0;
}

.advertisement,
.features-section,
.info-section {
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  background: var(--ss-panel);
  box-shadow: var(--ss-shadow);
  backdrop-filter: blur(18px);
}

.advertisement {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 4vw, 48px);
  margin: 0 0 18px;
}

.advertisement::before {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 4px solid var(--ss-blue);
  pointer-events: none;
}

.advertisement p {
  max-width: 980px;
  margin: 14px auto 0;
  font-size: 1.02rem;
}

.ad-title,
.feature-heading,
.info-section h2 {
  color: var(--ss-ink);
  letter-spacing: 0;
}

.ad-title {
  max-width: 900px;
  margin: 0 auto 18px;
  font-size: clamp(2.2rem, 4.4vw, 4.5rem);
  line-height: 1;
}

.feature-heading {
  margin: 0 0 22px;
  font-size: clamp(1.55rem, 2.2vw, 2.55rem);
}

.features-section {
  padding: clamp(22px, 3vw, 34px);
  margin: 18px auto;
}

.features-container,
.feature-box-container {
  --gap: 16px;
  padding: 4px var(--gap) 16px 4px;
  scrollbar-color: rgba(31, 111, 214, 0.38) rgba(226, 232, 240, 0.8);
}

.features-container::-webkit-scrollbar,
.feature-box-container::-webkit-scrollbar {
  height: 10px;
}

.features-container::-webkit-scrollbar-thumb,
.feature-box-container::-webkit-scrollbar-thumb {
  border-radius: 8px;
  background: rgba(31, 111, 214, 0.38);
}

.feature-card,
.feature-box,
.comparison-card,
.plan-option,
.download-container,
form,
.release-log details {
  border: 1px solid var(--ss-line);
  border-radius: 8px;
  background: var(--ss-panel-solid);
  box-shadow: var(--ss-soft-shadow);
}

.feature-card,
.feature-box {
  padding: 20px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.feature-card:hover,
.feature-box:hover {
  transform: translateY(-3px);
  border-color: rgba(31, 111, 214, 0.28);
  box-shadow: 0 18px 38px rgba(19, 31, 56, 0.15);
}

.feature-card h3,
.feature-box h3,
.feature-title,
.info-section h3,
.info-section h4 {
  color: var(--ss-blue);
  letter-spacing: 0;
}

.feature-card h3,
.feature-box h3 {
  font-size: 1.16rem;
  line-height: 1.22;
}

.feature-card li {
  margin: 10px 0;
  color: var(--ss-muted);
  line-height: 1.55;
}

.comparison-card {
  box-shadow: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

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

.comparison-card.our-software {
  border: 1px solid rgba(182, 134, 44, 0.42);
  background: #fff8e9;
}

.comparison-card.our-software .card-title {
  color: #8b641b;
}

.comparison-card.other-competitor {
  border: 1px dashed #b8c2d1;
  background: #f8fafc;
}

.video-wrapper {
  border: 1px solid var(--ss-line);
  border-radius: 8px;
  overflow: hidden;
  background: #0f172a;
  box-shadow: var(--ss-soft-shadow);
}

.youtube-video {
  border-radius: 0;
}

.pricing-table {
  gap: 16px;
}

.plan-option {
  border-width: 1px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.plan-option:hover,
.plan-option.selected {
  transform: translateY(-2px);
  border-color: rgba(31, 111, 214, 0.44);
  box-shadow: 0 16px 36px rgba(19, 31, 56, 0.13);
}

.plan-option.selected,
.purchase-button .plan-option {
  background: #f8fbff;
}

.plan-header label,
.purchase-button .plan-option strong {
  color: var(--ss-ink);
}

.plan-details .price,
.purchase-button .plan-option p {
  color: var(--ss-blue);
}

.button,
.apply-coupon,
form button,
.chat-container button {
  min-height: 40px;
  border-radius: 8px;
  background: var(--ss-blue);
  color: #fff;
  font-weight: 700;
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.button:hover,
.button:focus-visible,
.apply-coupon:hover,
.apply-coupon:focus-visible,
form button:hover,
form button:focus-visible,
.chat-container button:focus-visible,
.chat-container button:hover {
  background: var(--ss-blue-dark);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(31, 111, 214, 0.24);
  transform: translateY(-1px);
  text-decoration: none;
}

#download-btn-windows,
#download-btn-linux {
  background: var(--ss-green);
  color: #ffffff;
  text-decoration: none;
}

#download-btn-windows:active,
#download-btn-linux:active,
#download-btn-windows:hover,
#download-btn-windows:focus-visible,
#download-btn-linux:hover,
#download-btn-linux:focus-visible {
  background: #176f50;
  color: #ffffff;
  text-decoration: none;
}

#download-btn-windows:visited,
#download-btn-linux:visited {
  color: #ffffff;
}

.download-container {
  padding: 20px;
  background: #ffffff;
}

form {
  max-width: 760px;
  padding: clamp(20px, 3vw, 30px);
}

form input,
form textarea,
.coupon,
.chat-container input[type="text"] {
  border: 1px solid #cfd8e6;
  border-radius: 8px;
  background: #fff;
}

form input:focus,
form textarea:focus,
.coupon:focus,
.chat-container input[type="text"]:focus {
  border-color: var(--ss-blue);
  box-shadow: 0 0 0 3px rgba(31, 111, 214, 0.12);
  outline: none;
}

.chat-toggle {
  right: 20px;
  bottom: 20px;
  z-index: 30;
  filter: drop-shadow(0 12px 22px rgba(19, 31, 56, 0.22));
}

.chat-container {
  right: 20px;
  bottom: 92px;
  border: 1px solid var(--ss-line);
  border-radius: 8px;
  box-shadow: 0 22px 56px rgba(19, 31, 56, 0.2);
  z-index: 31;
}

.chat-container h4 {
  margin: 6px 0 12px;
  color: var(--ss-blue);
}

.messages {
  border: 1px solid var(--ss-line);
  border-radius: 8px;
  background: #f7f9fc;
}

.message.user {
  background: var(--ss-blue);
}

.message.bot,
.message.loading {
  background: #eef3f8;
}

.license-section {
  border-color: var(--ss-line);
  border-radius: 8px;
  background: #f8fafc;
}

.release-log details {
  background: #ffffff;
}

.release-log summary,
summary {
  color: var(--ss-blue);
}

@media (max-width: 1200px) {
  .nav-bar {
    position: sticky;
    justify-content: flex-start;
    gap: 12px;
    background: rgba(255, 255, 255, 0.92);
  }

  .nav-tabs {
    width: min(320px, calc(100vw - 24px));
    border: 1px solid var(--ss-line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--ss-shadow);
    padding: 8px;
  }

  .menu-toggle {
    min-width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid var(--ss-line);
    border-radius: 8px;
    background: #ffffff;
    color: var(--ss-blue);
    font-size: 1.45rem;
  }

  .branding {
    min-width: 0;
  }

  .container {
    width: min(100% - 20px, 1180px);
  }

  .pricing-table,
  .coupon-input-group,
  .button-container,
  .license-section {
    align-items: stretch;
    flex-direction: column;
  }

  .plan-option {
    width: 100%;
  }

  .coupon {
    width: 100%;
  }

  .chat-container {
    right: 10px;
    width: calc(100vw - 20px);
  }
}

@media (max-width: 640px) {
  .branding .branding-text h1 {
    font-size: 1.2rem;
  }

  .branding .branding-text p {
    font-size: 0.82rem;
  }

  .branding img {
    width: 46px;
    height: 46px;
  }

  .advertisement,
  .features-section,
  .info-section {
    padding: 18px;
  }

  .ad-title {
    font-size: clamp(1.9rem, 10vw, 3rem);
  }

  .slide {
    padding: 0 12px 28px;
  }
}

/* ----------------------------- Final chatbot cascade ----------------------------- */
.chat-toggle {
  right: 22px;
  bottom: 22px;
  width: 64px;
  height: 64px;
  max-width: 64px;
  max-height: 64px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffffff, #eaf2ff);
  border: 1px solid rgba(31, 111, 214, 0.2);
  box-shadow: 0 18px 36px rgba(19, 31, 56, 0.22), 0 0 0 8px rgba(31, 111, 214, 0.08);
}

.chat-container {
  right: 22px;
  bottom: 104px;
  width: min(420px, calc(100vw - 28px));
  max-width: 420px;
  padding: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 28px 70px rgba(19, 31, 56, 0.28);
}

.chat-container h4 {
  margin: 0;
  padding: 16px 18px;
  border-bottom: 1px solid var(--ss-line);
  background: linear-gradient(135deg, #f8fbff 0%, #edf5ff 100%);
  color: var(--ss-ink);
  text-align: left;
}

.messages {
  height: min(430px, 52vh);
  margin: 0;
  padding: 16px;
  border: none;
  border-radius: 0;
}

.chat-input-area {
  gap: 10px;
  padding: 12px;
  border-top: 1px solid var(--ss-line);
  background: #ffffff;
}

.chat-container input[type="text"] {
  width: 100%;
  min-height: 42px;
  margin: 0;
  border-radius: 8px;
}

.chat-container button {
  width: auto;
  min-width: 74px;
  margin-left: 0;
  border-radius: 8px;
}

@media (max-width: 640px) {
  .chat-toggle {
    right: 16px;
    bottom: 16px;
    width: 58px;
    height: 58px;
  }

  .chat-container {
    right: 12px;
    bottom: 88px;
    width: calc(100vw - 24px);
  }
}

/* ----------------------------- End-of-file home and chat state ----------------------------- */
.chat-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 70px;
  height: 44px;
  max-width: none;
  max-height: none;
  padding: 0 18px;
  border-radius: 999px;
  color: var(--ss-blue);
  font-family: "Roboto", sans-serif;
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0;
}

.chat-toggle::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--ss-green);
  box-shadow: 0 0 0 4px rgba(31, 138, 98, 0.12);
}

.chat-container h4::after,
#home .advertisement::after {
  content: none;
  display: none;
}

#home #adAndCarousel {
  overflow: visible !important;
}

#home .advertisement {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "title title"
    "intro support";
  gap: 18px 34px;
  align-items: end;
  padding: clamp(34px, 5vw, 64px);
}

#home .ad-title {
  grid-area: title;
  max-width: 980px;
  margin: 0 auto;
  padding-bottom: 0;
}

#home .advertisement p {
  max-width: 850px;
  margin: 0;
  text-align: left;
}

#home .advertisement p:nth-of-type(1) {
  grid-area: intro;
}

#home .advertisement p:nth-of-type(2),
#home .advertisement p:nth-of-type(3) {
  grid-column: 1;
  margin-top: 12px;
}

#home .advertisement p:nth-of-type(4) {
  grid-area: support;
  justify-self: end;
  align-self: center;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--ss-line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--ss-soft-shadow);
}

#home .features-container,
#home .feature-box-container {
  display: grid;
  grid-auto-flow: row;
  grid-auto-columns: initial;
  overflow: visible;
  padding: 0;
  scroll-snap-type: none;
}

#home .features-container {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

#home .feature-box-container {
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
}

@media (max-width: 900px) {
  #home .advertisement {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "intro"
      "support";
  }

  #home .advertisement p:nth-of-type(4) {
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .chat-toggle {
    width: auto;
    min-width: 66px;
    height: 42px;
    padding: 0 16px;
  }

  #home .features-container,
  #home .feature-box-container {
    grid-template-columns: 1fr;
  }
}

/* ----------------------------- Footer ----------------------------- */
.footer {
  text-align: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.9);
  border-top: 1px solid #ddd;
  margin-top: 40px;
}

.footer p {
  font-size: 0.9rem;
  color: #666;
}

.footer a {
  color: #007acc;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}
