/* ===== PAGE WRAPPER ===== */
.page-wrapper {
  padding-top: var(--nav-height);
  min-height: 100vh;
}

.page-hero {
  padding: 80px 0 48px;
  background: var(--gray-50);
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--gray-900);
  margin-bottom: 12px;
}

.page-hero p {
  font-size: 1.1rem;
  color: var(--gray-500);
  max-width: 540px;
  margin: 0 auto;
}

.page-section {
  padding: 64px 0;
}

/* ===== AUTH FORMS (login / signup) ===== */
.auth-section {
  padding: 40px 0 80px;
  background: var(--gray-50);
}

.auth-container {
  max-width: 440px;
  margin: 0 auto;
}

.auth-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  padding: 40px 36px;
  box-shadow: var(--shadow-md);
}

.auth-card h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.auth-card .auth-subtitle {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin-bottom: 28px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  font-size: 0.8rem;
  color: var(--gray-400);
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-200);
}

.social-auth {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  background: var(--white);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-social:hover {
  background: var(--gray-50);
  border-color: var(--gray-300);
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 0.875rem;
  color: var(--gray-500);
}

.auth-footer a {
  color: var(--indigo-600);
  font-weight: 600;
}

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

.auth-success {
  display: none;
  text-align: center;
  padding: 24px 0;
}

.auth-success.active {
  display: block;
}

.auth-success .success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #dcfce7;
  color: var(--green-600);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.auth-success h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.auth-success p {
  font-size: 0.9rem;
  color: var(--gray-500);
}

/* ===== FORM ELEMENTS ===== */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: var(--font-sans);
  color: var(--gray-900);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-input:focus {
  border-color: var(--indigo-500);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-input.error {
  border-color: var(--red-500);
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--gray-600);
}

.form-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--indigo-600);
}

.form-link {
  font-size: 0.85rem;
  color: var(--indigo-600);
  font-weight: 600;
}

.form-link:hover {
  text-decoration: underline;
}

.form-submit {
  width: 100%;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-md);
  background: var(--gradient-primary);
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.35);
}

.form-error {
  display: none;
  font-size: 0.8rem;
  color: var(--red-500);
  margin-top: 4px;
}

.form-error.visible {
  display: block;
}

.form-select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: var(--font-sans);
  color: var(--gray-700);
  background: var(--white);
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
}

.form-select:focus {
  border-color: var(--indigo-500);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

textarea.form-input {
  min-height: 120px;
  resize: vertical;
}

/* ===== BLOG LISTING ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.blog-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  background: var(--white);
  overflow: hidden;
  transition: all 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.blog-card-image {
  height: 200px;
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.blog-card-image .blog-category {
  background: rgba(255, 255, 255, 0.9);
  color: var(--gray-800);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.blog-card-body {
  padding: 24px;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--gray-400);
  margin-bottom: 10px;
}

.blog-card-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
  line-height: 1.3;
}

.blog-card-body h3 a {
  color: inherit;
  transition: color 0.2s;
}

.blog-card-body h3 a:hover {
  color: var(--indigo-600);
}

.blog-card-body p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.6;
}

.blog-card-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  gap: 12px;
}

.blog-author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.blog-author-info strong {
  display: block;
  font-size: 0.85rem;
  color: var(--gray-900);
}

.blog-author-info span {
  font-size: 0.75rem;
  color: var(--gray-400);
}

/* ===== BLOG POST ===== */
.blog-post {
  max-width: 720px;
  margin: 0 auto;
}

.blog-post-header {
  text-align: center;
  margin-bottom: 40px;
}

.blog-post-header .blog-category {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 100px;
  background: var(--indigo-100);
  color: var(--indigo-700);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.blog-post-header h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.blog-post-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--gray-400);
}

.blog-post-meta .sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gray-300);
}

.blog-post-hero {
  width: 100%;
  height: 320px;
  border-radius: var(--radius-lg);
  margin-bottom: 40px;
}

.blog-post-content {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--gray-700);
}

.blog-post-content p {
  margin-bottom: 20px;
}

.blog-post-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gray-900);
  margin: 36px 0 12px;
}

.blog-post-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gray-900);
  margin: 28px 0 10px;
}

.blog-post-content ul,
.blog-post-content ol {
  margin: 0 0 20px 20px;
}

.blog-post-content li {
  margin-bottom: 8px;
}

.blog-post-content blockquote {
  border-left: 4px solid var(--indigo-500);
  padding: 16px 20px;
  margin: 24px 0;
  background: var(--gray-50);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--gray-600);
}

.blog-post-content pre {
  background: var(--gray-900);
  color: #e2e8f0;
  padding: 20px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  overflow-x: auto;
  margin-bottom: 20px;
}

.blog-post-content code {
  font-family: 'SF Mono', 'Fira Code', monospace;
}

.related-posts {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--gray-200);
}

.related-posts h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--gray-900);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.related-card {
  padding: 20px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.related-card:hover {
  border-color: var(--indigo-200);
  box-shadow: var(--shadow-sm);
}

.related-card .related-category {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--indigo-600);
  margin-bottom: 8px;
}

.related-card h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 6px;
  line-height: 1.3;
}

.related-card p {
  font-size: 0.8rem;
  color: var(--gray-500);
  line-height: 1.5;
}

/* ===== TEAM / ABOUT ===== */
.about-story {
  max-width: 720px;
  margin: 0 auto 64px;
}

.about-story h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 16px;
}

.about-story p {
  font-size: 1rem;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-mission {
  background: var(--indigo-50);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}

.about-mission h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--indigo-700);
  margin-bottom: 12px;
}

.about-mission p {
  font-size: 1rem;
  color: var(--gray-600);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.team-card {
  text-align: center;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  background: var(--white);
  transition: all 0.2s ease;
}

.team-card:hover {
  box-shadow: var(--shadow-md);
}

.team-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 700;
}

.team-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.team-card .team-role {
  font-size: 0.85rem;
  color: var(--gray-500);
}

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-form-container h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 20px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--indigo-50);
  color: var(--indigo-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-item h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 2px;
}

.contact-info-item p {
  font-size: 0.85rem;
  color: var(--gray-500);
}

/* ===== LEGAL (terms / privacy) ===== */
.legal-content {
  max-width: 720px;
  margin: 0 auto;
}

.legal-content .last-updated {
  font-size: 0.85rem;
  color: var(--gray-400);
  margin-bottom: 32px;
  text-align: center;
}

.legal-content h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gray-900);
  margin: 32px 0 12px;
}

.legal-content p {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 14px;
}

.legal-content ul {
  margin: 0 0 14px 20px;
}

.legal-content li {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 6px;
}

/* ===== DOCS ===== */
.docs-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  align-items: start;
}

.docs-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
}

.docs-sidebar h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-400);
  margin-bottom: 12px;
}

.docs-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.docs-nav a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--gray-600);
  transition: all 0.2s;
}

.docs-nav a:hover {
  background: var(--gray-50);
  color: var(--indigo-600);
}

.docs-nav a.active {
  background: var(--indigo-50);
  color: var(--indigo-700);
  font-weight: 600;
}

.docs-article {
  display: none;
}

.docs-article.active {
  display: block;
}

.docs-article h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 16px;
}

.docs-article p {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 14px;
}

.docs-article h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gray-900);
  margin: 24px 0 10px;
}

.docs-article ul {
  margin: 0 0 14px 20px;
}

.docs-article li {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 6px;
}

.docs-article code {
  background: var(--gray-100);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.85rem;
  color: var(--indigo-700);
}

.docs-article pre {
  background: var(--gray-900);
  color: #e2e8f0;
  padding: 16px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  overflow-x: auto;
  margin-bottom: 16px;
}

/* ===== CAREERS ===== */
.jobs-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.job-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  background: var(--white);
  transition: all 0.2s ease;
  cursor: default;
}

.job-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--indigo-200);
}

.job-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.job-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-900);
}

.job-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.job-tag {
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
}

.job-tag.department {
  background: var(--indigo-50);
  color: var(--indigo-700);
}

.job-tag.location {
  background: var(--gray-100);
  color: var(--gray-600);
}

.job-card p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.6;
  margin-bottom: 16px;
}

.job-card .job-apply {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--indigo-600);
  transition: gap 0.2s;
}

.job-card .job-apply:hover {
  gap: 10px;
}

.careers-cta {
  text-align: center;
  margin-top: 48px;
  padding: 40px;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
}

.careers-cta h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.careers-cta p {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin-bottom: 16px;
}

/* ===== CHANGELOG ===== */
.changelog {
  max-width: 640px;
  margin: 0 auto;
}

.changelog-entry {
  display: flex;
  gap: 20px;
  padding-bottom: 32px;
  position: relative;
}

.changelog-entry::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 32px;
  bottom: 0;
  width: 2px;
  background: var(--gray-200);
}

.changelog-entry:last-child::before {
  display: none;
}

.changelog-date {
  width: 100px;
  flex-shrink: 0;
  text-align: right;
  padding-top: 2px;
}

.changelog-date .date-day {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-400);
}

.changelog-date .date-full {
  font-size: 0.75rem;
  color: var(--gray-400);
}

.changelog-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--indigo-100);
  color: var(--indigo-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.changelog-body {
  flex: 1;
  padding-top: 4px;
}

.changelog-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 6px;
}

.changelog-body p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.6;
  margin-bottom: 8px;
}

.changelog-tags {
  display: flex;
  gap: 6px;
}

.changelog-tag {
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.changelog-tag.new {
  background: #dcfce7;
  color: var(--green-600);
}

.changelog-tag.improved {
  background: #dbeafe;
  color: #2563eb;
}

.changelog-tag.fixed {
  background: #fef3c7;
  color: #d97706;
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 640px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item:hover {
  border-color: var(--indigo-200);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 20px;
  background: none;
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-800);
  cursor: pointer;
  text-align: left;
  font-family: var(--font-sans);
  transition: color 0.2s;
}

.faq-question:hover {
  color: var(--indigo-600);
}

.faq-question .faq-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: var(--gray-400);
}

.faq-item.open .faq-question .faq-icon {
  transform: rotate(45deg);
  color: var(--indigo-600);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 20px 18px;
}

.faq-answer p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.7;
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--gray-900);
  color: var(--gray-300);
  padding: 16px 24px;
  z-index: 9999;
  display: none;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
}

.cookie-banner.visible {
  display: block;
}

.cookie-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cookie-container p {
  font-size: 0.85rem;
  line-height: 1.5;
}

.cookie-container a {
  color: var(--indigo-400);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  white-space: nowrap;
}

.cookie-btn-accept {
  background: var(--indigo-600);
  color: var(--white);
}

.cookie-btn-accept:hover {
  background: var(--indigo-700);
}

.cookie-btn-settings {
  background: transparent;
  border: 1px solid var(--gray-600);
  color: var(--gray-300);
}

.cookie-btn-settings:hover {
  border-color: var(--gray-400);
  color: var(--white);
}

/* ===== CHAT WIDGET ===== */
.chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9998;
}

.chat-bubble {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--indigo-600);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(79, 70, 229, 0.35);
  transition: all 0.3s ease;
  position: relative;
}

.chat-bubble:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(79, 70, 229, 0.45);
}

.chat-bubble .chat-icon-close {
  display: none;
}

.chat-bubble.open .chat-icon-open {
  display: none;
}

.chat-bubble.open .chat-icon-close {
  display: block;
}

.chat-bubble .chat-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--red-500);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-window {
  position: absolute;
  bottom: 68px;
  right: 0;
  width: 340px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  display: none;
  flex-direction: column;
}

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

.chat-header {
  background: var(--gradient-primary);
  color: var(--white);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-header-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.chat-header-info h4 {
  font-size: 0.9rem;
  font-weight: 700;
}

.chat-header-info span {
  font-size: 0.75rem;
  opacity: 0.8;
}

.chat-messages {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 220px;
  max-height: 260px;
  overflow-y: auto;
}

.chat-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  line-height: 1.5;
}

.chat-msg.bot {
  background: var(--gray-100);
  color: var(--gray-700);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chat-msg.user {
  background: var(--indigo-600);
  color: var(--white);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 16px 12px;
}

.chat-quick-btn {
  padding: 6px 12px;
  border-radius: 100px;
  border: 1px solid var(--indigo-200);
  background: var(--white);
  color: var(--indigo-700);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.chat-quick-btn:hover {
  background: var(--indigo-50);
  border-color: var(--indigo-400);
}

.chat-input-area {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--gray-200);
}

.chat-input-area input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 0.85rem;
  font-family: var(--font-sans);
  color: var(--gray-800);
}

.chat-input-area input::placeholder {
  color: var(--gray-400);
}

.chat-send-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--indigo-600);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}

.chat-send-btn:hover {
  background: var(--indigo-700);
}

/* ===== STATUS INDICATOR ===== */
.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--gray-500);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-500);
  animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ===== NEWSLETTER FORM ===== */
.newsletter-form {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.newsletter-form .form-input {
  flex: 1;
  font-size: 0.85rem;
  padding: 8px 12px;
}

.newsletter-form .newsletter-btn {
  padding: 8px 16px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--indigo-600);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.newsletter-form .newsletter-btn:hover {
  background: var(--indigo-700);
}

.newsletter-success {
  display: none;
  font-size: 0.85rem;
  color: var(--green-500);
  margin-top: 8px;
}

.newsletter-success.visible {
  display: block;
}

/* ===== AUTH STATE NAVBAR ===== */
.nav-user {
  display: none;
  align-items: center;
  gap: 10px;
}

.nav-user.visible {
  display: flex;
}

.nav-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}

.nav-user-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-700);
}

.nav-auth-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .blog-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; max-width: 320px; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-sidebar { position: static; }
  .related-grid { grid-template-columns: 1fr; }
  .cookie-container { flex-direction: column; align-items: flex-start; gap: 12px; }
  .chat-window { width: calc(100vw - 48px); right: -8px; }
  .changelog-entry { flex-wrap: wrap; gap: 12px; }
  .changelog-date { width: auto; text-align: left; }
  .changelog-entry::before { left: 15px; }
  .job-card-header { flex-direction: column; }
}

@media (max-width: 480px) {
  .auth-card { padding: 28px 20px; }
  .newsletter-form { flex-direction: column; }
  .blog-card-image { height: 160px; }
  .blog-post-hero { height: 200px; }
}
