:root {
  --tks-blue: #9a9a9a;
  --tks-cyan: #d0d0d0;
  --tks-white: #f5f5f5;
}

body {
  background: #050505 !important;
}

.back-to-top {
  border-color: rgba(255, 255, 255, 0.28) !important;
  background: rgba(5, 5, 5, 0.92) !important;
  color: #f5f5f5 !important;
}

.back-to-top:hover {
  border-color: rgba(255, 255, 255, 0.65) !important;
  background: rgba(255, 255, 255, 0.14) !important;
  color: #fff !important;
}

.login-page {
  filter: saturate(0) !important;
  background: #050505 !important;
}

.login-container {
  background: linear-gradient(155deg, rgba(24, 24, 24, 0.96), rgba(8, 8, 8, 0.98)) !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
}

.login-container::before {
  background: linear-gradient(90deg, transparent, #f5f5f5, #777777, transparent) !important;
}

.login-subtitle,
.login-forgot a,
.login-register a,
.login-back {
  color: #bdbdbd !important;
}

.login-forgot a:hover,
.login-register a:hover,
.login-back:hover {
  color: #fff !important;
}

.login-field input:focus {
  border-color: #d0d0d0 !important;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08) !important;
}

.login-button {
  background: linear-gradient(135deg, #f5f5f5 0%, #bdbdbd 100%) !important;
  color: #090909 !important;
  box-shadow: 0 14px 26px rgba(255, 255, 255, 0.16) !important;
}

.social-auth-google > span,
.social-auth-facebook > span,
.social-auth-github > span {
  color: #202020 !important;
}

.dashboard-layout {
  background: #050505 !important;
}

.dashboard-layout img,
.dashboard-layout .profile-preview img,
.dashboard-layout .project-image,
.dashboard-layout .project-item .project-image,
.dashboard-layout .sidebar-avatar img,
.dashboard-layout .topbar-avatar img,
.dashboard-layout .message-avatar img,
.dashboard-layout .user-avatar img {
  position: static !important;
  inset: auto !important;
  filter: none !important;
}

.dashboard-layout .success-message,
.dashboard-layout .status-active,
.dashboard-layout .status-active,
.dashboard-layout .status-pill.status-won {
  color: #65d391 !important;
}

.dashboard-layout .success-message {
  border-color: rgba(101, 211, 145, 0.28) !important;
  background: rgba(101, 211, 145, 0.1) !important;
}

.dashboard-layout .dashboard-sidebar,
.dashboard-layout .dashboard-topbar,
.dashboard-layout .content-card,
.dashboard-layout .stat-card,
.dashboard-layout .dashboard-welcome,
.dashboard-layout .lead-column,
.dashboard-layout .lead-card,
.dashboard-layout .project-item,
.dashboard-layout .message-item,
.dashboard-layout .user-row {
  background-color: #111111 !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
}

html {
  overflow-x: clip;
}

.hero,
.proof-section,
.metrics-section,
.benefits-section,
.testimonials-section,
.about-section,
.projects-section,
.services-section,
.process-section,
.cases-section,
.faq-section,
.final-cta-section,
.contact-section,
.tks-ai-section,
.footer,
.services-page,
.services-page-header,
.services-page-content,
.hero-background,
.service-card,
.project-card,
.case-card,
.benefit-card,
.metric-card,
.testimonial-card,
.tks-ai-value-card,
.tks-ai-conversation-panel,
.tks-ai-side-panel,
.tks-ai-highlight-card,
.tks-ai-metric-card {
  filter: saturate(0) !important;
}

.hero,
.proof-section,
.metrics-section,
.benefits-section,
.testimonials-section,
.about-section,
.projects-section,
.services-section,
.process-section,
.cases-section,
.faq-section,
.contact-section,
.tks-ai-section,
.footer {
  background: #050505 !important;
}

.services-page,
.services-page-header,
.services-page-content,
.services-page .service-card,
.services-page .service-card::before,
.services-page .service-card-topline,
.services-page .service-icon,
.services-page .service-card-link,
.services-page-header::after {
  filter: saturate(0) !important;
}

.services-page {
  background: #050505 !important;
}

.services-page-header,
.services-page .service-card {
  border-color: rgba(255, 255, 255, 0.16) !important;
  background: #111111 !important;
}

.services-page-header::after {
  background: linear-gradient(90deg, #f5f5f5, transparent) !important;
}

.services-page .service-card-topline,
.services-page .service-icon,
.services-page .service-card-link {
  color: #d0d0d0 !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

.navbar-ai-button,
.mobile-ai-button,
.logo,
.whatsapp-button,
.tks-ai-badge,
.project-link,
.service-link,
.primary-button,
.secondary-button {
  border-color: rgba(255, 255, 255, 0.28) !important;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.04)) !important;
  color: #f5f5f5 !important;
}

.primary-button {
  background: linear-gradient(135deg, #f5f5f5, #bdbdbd) !important;
  color: #090909 !important;
}

.hero-tag,
.service-icon,
.benefit-tag,
.benefit-icon,
.project-category,
.contact-promise {
  border-color: rgba(255, 255, 255, 0.18) !important;
  background: rgba(255, 255, 255, 0.045) !important;
}

.footer-social-links a:first-child,
.footer-social-links a:nth-child(2),
.footer-social-links a:nth-child(3),
.footer-social-links a:nth-child(4) {
  color: #202020 !important;
}

.desktop-menu a::after,
.desktop-menu a.active::after {
  background: linear-gradient(90deg, rgba(245, 245, 245, 0), rgba(245, 245, 245, 0.9), rgba(189, 189, 189, 0)) !important;
}

.mobile-menu {
  background: rgba(7, 7, 7, 0.98) !important;
  border-bottom-color: rgba(255, 255, 255, 0.12) !important;
}

.mobile-menu a.active {
  color: #f5f5f5 !important;
  border-left-color: rgba(245, 245, 245, 0.75) !important;
}

.mobile-menu a:hover {
  color: #fff !important;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.28) !important;
}

@media (max-width: 600px) {
  .footer-social {
    justify-items: center;
    padding-bottom: 84px;
  }

  .footer-social-links a,
  .footer-social-links a:first-child,
  .footer-social-links a:nth-child(2),
  .footer-social-links a:nth-child(3),
  .footer-social-links a:nth-child(4) {
    background: #f5f5f5 !important;
    color: #202020 !important;
  }
}

/* Keep the TKS AL section header stacked on narrow screens. */
.tks-ai-section > .tks-ai-header-shell .tks-ai-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
}

@media (max-width: 900px) {
  .tks-ai-section > .tks-ai-header-shell .tks-ai-header {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .tks-ai-section > .tks-ai-header-shell .tks-ai-header > p {
    max-width: 100%;
    margin: 0;
  }
}
