/*
Theme Name: Webnitix
Theme URI: https://webnitix.com/
Author: Webnitix
Description: Custom WordPress theme for Webnitix
Version: 1.0.0
Text Domain: webnitix
*/


:root {
  --bg: #030407;
  --bg-secondary: #0a0c10;
  --bg-tertiary: #111418;
  --text: #f0f2f5;
  --text-muted: #949eae;
  --accent: #2f81f7;
  --accent-glow: rgba(47, 129, 247, 0.15);
  --border: rgba(255, 255, 255, 0.06);
  --border-bright: rgba(255, 255, 255, 0.12);

  --f-sans: "Inter", -apple-system, system-ui, sans-serif;
  --f-display: "Outfit", sans-serif;
  --f-accent: "Space Grotesk", sans-serif;
  --f-mono: "JetBrains Mono", monospace;

  --container-max: 1240px;
}

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

body {
  font-family: var(--f-sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.mono {
  font-family: var(--f-mono);
  letter-spacing: -0.02em;
}
.display {
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.accent-heading {
  font-family: var(--f-accent);
  font-weight: 500;
  letter-spacing: -0.03em;
}

/* Subtle Grid Background */
.mesh-grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at 50% 50%, black, transparent 90%);
  opacity: 0.3;
  pointer-events: none;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 32px;
}

section {
  padding: 120px 0;
  position: relative;
}

/* Typography Overhaul */
h1,
h2,
h3,
h4 {
  font-family: var(--f-display);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}

h1 {
  font-size: clamp(3rem, 10vw, 5.5rem);
  margin-bottom: 24px;
}
h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 32px;
  letter-spacing: -0.03em;
}
h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.text-blue {
  color: var(--accent);
}
.text-secondary {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Premium Components */
.flex-header {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 80px;
  gap: 40px;
}

@media (min-width: 768px) {
  .flex-header {
    flex-direction: row;
    align-items: flex-end;
  }
}

.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 2px; /* Sharper edges for a more editorial look */
  padding: 48px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.card:hover {
  border-color: var(--accent);
  background: var(--bg-tertiary);
  transform: translateY(-4px);
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.card:hover::before {
  opacity: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 2px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  gap: 12px;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 20px -10px var(--accent-glow);
}

.btn-primary:hover {
  background: #4791ff;
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -10px var(--accent-glow);
}

.btn-outline {
  border-color: var(--border-bright);
  color: var(--text);
  background: transparent;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--text-muted);
}

/* Navbar Premium Update */
nav {
  height: 80px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(3, 4, 7, 0.8);
  backdrop-filter: blur(24px);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}

.mobile-nav-toggle {
  display: none;
}

/* Premium Image Containers & Device Frames */
.image-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.image-wrapper.aspect-4-3 {
  aspect-ratio: 4 / 3;
}

.image-wrapper.aspect-16-9 {
  aspect-ratio: 16 / 9;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.image-wrapper:hover img {
  transform: scale(1.03);
}

/* Device Frame Mockup Simulation */
.portfolio-item-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.portfolio-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

@media(min-width: 768px) {
  .portfolio-item-layout {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
  }
  .portfolio-text {
    align-items: center;
    text-align: center;
  }
}

.device-macbook {
  position: relative;
  width: 100%;
  padding-top: 60%; /* Aspect near 16:10 */
  background: #111;
  border-radius: 8px 8px 0 0;
  border: 8px solid #222;
  border-bottom-width: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.device-macbook::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 15%;
  height: 12px;
  background: #222;
  border-radius: 0 0 6px 6px;
  z-index: 10;
}

.device-macbook img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-visual-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
}

.glow-orb.primary {
  top: -10%;
  right: -10%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
}

.glow-orb.secondary {
  bottom: -20%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(47, 129, 247, 0.8) 0%,
    transparent 70%
  );
}

.fine-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, black 10%, transparent 80%);
}

.abstract-ring {
  position: absolute;
  top: 50%;
  right: 10%;
  transform: translateY(-50%) rotate(15deg);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 40px rgba(47, 129, 247, 0.05);
}

.abstract-ring.ring-1 {
  width: 600px;
  height: 600px;
  right: -5%;
  border-width: 2px;
  border-color: rgba(47, 129, 247, 0.1);
}

.abstract-ring.ring-2 {
  width: 800px;
  height: 800px;
  right: -15%;
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.03);
}

.abstract-line {
  position: absolute;
  top: 0;
  right: 25%;
  width: 1px;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(47, 129, 247, 0.2),
    transparent
  );
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 80px;
  overflow-x: clip;
}

.hero-glow {
  position: absolute;
  top: 10%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle at center,
    rgba(47, 129, 247, 0.15) 0%,
    transparent 60%
  );
  border-radius: 50%;
  filter: blur(60px);
  z-index: 0;
  pointer-events: none;
}

.hero-glow.alt {
  top: auto;
  bottom: -10%;
  left: -10%;
  right: auto;
  background: radial-gradient(
    circle at center,
    rgba(47, 129, 247, 0.1) 0%,
    transparent 60%
  );
}

#tsparticles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  z-index: 0;
  opacity: 0.3;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
}

.system-badge {
  display: inline-flex;
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: rgba(47, 129, 247, 0.05);
  padding: 6px 12px;
  border: 1px solid var(--border-bright);
  margin-bottom: 32px;
  width: fit-content;
}

.stats-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
  background: var(--bg);
}

.stats-grid {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.stat-item {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.stat-item::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent);
}

/* Portfolio List */
.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* Footer */
footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--border);
  margin-top: 80px;
  background-color: var(--bg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-col h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.brand-footer h4 {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: #fff;
  padding-left: 4px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  padding-top: 40px;
  margin-top: 80px;
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column-reverse;
    gap: 24px;
    text-align: center;
  }
}

/* Quote Page Layout */
.quote-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  position: relative;
}

.quote-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.sticky-sidebar {
  position: sticky;
  top: 100px;
}

@media (max-width: 992px) {
  .quote-container {
    grid-template-columns: 1fr;
  }

  .sticky-sidebar {
    position: static;
    margin-top: 40px;
  }
}

@media (max-width: 600px) {
  .quote-contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: var(--bg-secondary);
    padding: 32px;
    gap: 24px;
    border-bottom: 1px solid var(--border);
    animation: slideDown 0.3s ease forwards;
    list-style: none;
  }

  .nav-links.mobile-active {
    display: flex;
  }

  .mobile-nav-toggle {
    display: block !important;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
  }

  .mesh-grain {
    opacity: 0.15;
  }

  .hero {
    text-align: left;
    padding-top: 140px;
    min-height: 70vh;
  }
  h1 {
    font-size: 3rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    text-align: center;
  }
  .footer-col {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .footer-col:first-child {
    grid-column: 1 / -1;
  }
  .footer-col:first-child > a {
    justify-content: center;
    width: 100%;
  }
  .footer-col p {
    margin: 0 auto;
  }
  .stats-grid {
    gap: 16px;
    margin-top: 8px;
  }
  .stats-bar {
    padding: 16px;
  }

  section {
    padding: 80px 0;
  }
  .card {
    padding: 32px;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- ADDED TARGETED MOBILE FIXES BELOW --- */

@media (max-width: 768px) {
    /* Prevents the 'Zoomed' effect by normalizing container padding[cite: 10] */
    .container {
        padding: 0 20px !important;
    }

    /* Solves the 400px min-width overflow in page-about.php[cite: 4, 10] */
    #who-we-are .container {
        grid-template-columns: 1fr !important;
        display: flex !important;
        flex-direction: column !important;
        text-align: center !important;
    }

    /* Centers Hero Titles on About & Portfolio pages[cite: 4, 6, 10] */
    .hero-sub {
        text-align: center !important;
        padding-top: 140px !important;
    }
    
    .hero-sub h1 {
        font-size: clamp(2.2rem, 8vw, 3.5rem) !important;
        margin: 0 auto !important;
    }

    /* Fixes Portfolio layout in page-portfolio.php[cite: 6, 10] */
    #portfolio-grid .container > div {
        grid-template-columns: 1fr !important;
    }

    .portfolio-text {
        text-align: center !important;
        align-items: center !important;
        order: 2 !important;
    }

    /* Stabilizes Nav links gap on smaller screens[cite: 1, 10] */
    .nav-links {
        gap: 15px !important;
    }
    
    /* Ensures the desktop Nav is not squished by the toggle[cite: 1, 10] */
    .mobile-nav-toggle {
        display: none; 
    }
}

/* Specific trigger for the Hamburger menu only when mobile view is active[cite: 1, 10] */
@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: flex !important;
        margin-left: auto;
    }
}
/* --- Wise Pencil host overrides (rebuild) --- */
html, body.wp-theme-wise-pencil-theme, body.home, body.page, body.single, body.archive, body.blog {
  background-color: var(--bg) !important;
  color: var(--text) !important;
  font-family: var(--f-sans) !important;
}
body.wp-theme-wise-pencil-theme .wise-wrap,
body.wp-theme-wise-pencil-theme main.wise-wrap {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.wp-theme-wise-pencil-theme .wise-site-header,
body.wp-theme-wise-pencil-theme .wise-site-footer {
  display: none !important;
}
body.wp-theme-wise-pencil-theme .wise-pencil-page,
body.wp-theme-wise-pencil-theme .wise-pencil-tree--desktop {
  display: block;
}
body.wp-theme-wise-pencil-theme article.hentry,
body.wp-theme-wise-pencil-theme article.post,
body.wp-theme-wise-pencil-theme article.page {
  margin: 0;
  padding: 0;
  max-width: none;
  background: transparent;
  color: inherit;
}
body.wp-theme-wise-pencil-theme a { color: inherit; }
/* Journal (blog / single / category) */
.wnx-journal { background: var(--bg); color: var(--text); padding: 80px 0 120px; }
.wnx-journal .container { max-width: var(--container-max); margin: 0 auto; padding: 0 32px; }
.wnx-journal-hero { padding: 140px 0 40px; }
.wnx-journal-hero .eyebrow { font-family: var(--f-mono); color: var(--accent); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px; }
.wnx-journal-grid { display: grid; gap: 40px; }
.wnx-journal-card { display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: center; border-top: 1px solid var(--border); padding-top: 32px; text-decoration: none; color: inherit; }
.wnx-journal-card img { width: 100%; height: 180px; object-fit: cover; border-radius: 2px; background: var(--bg-tertiary); }
.wnx-journal-card .meta { font-family: var(--f-mono); font-size: 0.75rem; color: var(--text-muted); margin-bottom: 8px; }
.wnx-journal-card h3 { font-size: 1.4rem; margin: 0 0 8px; }
@media (max-width: 767px) {
  .wnx-journal-card { grid-template-columns: 1fr; }
}
.wnx-article { max-width: 800px; margin: 0 auto; padding: 140px 24px 80px; }
.wnx-article .meta { font-family: var(--f-mono); color: var(--text-muted); font-size: 0.8rem; margin-bottom: 16px; }
.wnx-article .content { font-size: 1.05rem; line-height: 1.75; color: var(--text); }
.wnx-article .content h2, .wnx-article .content h3 { margin-top: 2em; }
.wnx-article .content p { margin: 0 0 1.2em; }
.wnx-article .content a { color: var(--accent); }
.wnx-back { display: inline-block; margin-top: 40px; color: var(--accent); }

/* --- Quote / hosting mobile (staging polish; prevent iOS shrink-to-fit overflow) --- */
#quote-form,
#hosting-form,
.quote-container,
#quote-form-section,
#quote-form .card,
#hosting-form .card,
#quote-form-section .container,
section:has(#hosting-form) .container {
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
#quote-form select,
#quote-form input:not([type="checkbox"]):not([type="radio"]),
#quote-form textarea,
#hosting-form select,
#hosting-form input:not([type="checkbox"]):not([type="radio"]),
#hosting-form textarea {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  font-size: 16px !important; /* iOS does not zoom focused fields at 16px+ */
}
#quote-form select.btn,
#hosting-form select.btn {
  display: block !important;
  white-space: normal !important;
}
#quote-form label,
#hosting-form label {
  max-width: 100%;
  min-width: 0;
}
#quote-form label[style*="display: flex"],
#hosting-form label[style*="display: flex"] {
  flex-wrap: wrap;
}
.wnx-turnstile,
.cf-turnstile {
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
  }
  #quote-form .card,
  #hosting-form .card {
    padding: 32px 24px !important;
  }
}

/* --- Sticky quote totals bar (labels / on-off / position live in the page tree) --- */
.wnx-quote-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  top: auto;
  z-index: 9000;
  background: #0a0c10;
  color: #f0f2f5;
  border-top: 1px solid #2f81f7;
  box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.55);
  transform: translateY(110%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.28s ease, opacity 0.28s ease, visibility 0.28s ease, bottom 0.28s ease;
}
.wnx-quote-bar[data-wnx-sticky-bar-position="top"] {
  top: 0;
  bottom: auto;
  border-top: 0;
  border-bottom: 1px solid #2f81f7;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.55);
  transform: translateY(-110%);
}
.wnx-quote-bar.is-visible {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
@media (prefers-reduced-motion: reduce) {
  .wnx-quote-bar {
    transition: none;
  }
}
.wnx-quote-bar__inner {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  max-width: var(--container-max, 1120px);
  margin: 0 auto;
  padding: 12px 20px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
}
.wnx-quote-bar[data-wnx-sticky-bar-position="top"] .wnx-quote-bar__inner {
  padding-bottom: 12px;
  padding-top: max(12px, env(safe-area-inset-top));
}
.wnx-quote-bar__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.wnx-quote-bar__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #d0d5dd;
}
.wnx-quote-bar__value {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.wnx-quote-bar__value--accent {
  color: #7eb6ff;
}
body.wnx-quote-bar-visible #quote-form,
body.wnx-quote-bar-visible #quote-form-section {
  padding-bottom: calc(var(--wnx-quote-bar-space, 72px) + 24px);
}
body.wnx-quote-bar-visible.wnx-quote-bar-top #quote-form-section,
body.wnx-quote-bar-visible.wnx-quote-bar-top .hero-sub {
  scroll-margin-top: var(--wnx-quote-bar-space, 72px);
}
@media (max-width: 430px) {
  .wnx-quote-bar__value {
    font-size: 1.05rem;
  }
  .wnx-quote-bar__inner {
    padding-left: 16px;
    padding-right: 16px;
    gap: 12px;
  }
}

/* --- Aminos chat contrast (scoped; AA with Webnitix brand colours) --- */
#chat_app,
#chat_app .chat {
  color: #f0f2f5;
}
#chat_app .sc-launcher {
  background-color: #2f81f7 !important;
}
#chat_app .sc-new-messsages-count {
  background: #2f81f7 !important;
  color: #030407 !important;
  font-weight: 700 !important;
}
#chat_app .sc-chat-window,
#chat_app .sc-message-list {
  background: #0a0c10 !important;
  color: #f0f2f5 !important;
}
#chat_app .sc-header {
  background: #0a0c10 !important;
  color: #f0f2f5 !important;
  border-bottom: 1px solid #2f81f7 !important;
}
#chat_app .sc-header--title,
#chat_app .sc-header--close-button,
#chat_app .sc-header--reset-button {
  color: #f0f2f5 !important;
}
#chat_app .sc-header svg,
#chat_app .sc-header path,
#chat_app .sc-header circle,
#chat_app .sc-header--close-button svg,
#chat_app .sc-header--reset-button svg {
  fill: #f0f2f5 !important;
  stroke: #f0f2f5 !important;
  color: #f0f2f5 !important;
}
#chat_app .sc-message--content.received .sc-message--text,
#chat_app .sc-message--content.received .sc-message--text-body,
#chat_app .sc-message--content.received .sc-message--text-content,
#chat_app .sc-message--content.received .sc-message--file,
#chat_app .sc-message--content.received .sc-message--file-text,
#chat_app .sc-message--content.received .sc-message--file-name {
  background-color: #f0f2f5 !important;
  color: #030407 !important;
}
#chat_app .sc-message--content.received a,
#chat_app .sc-message--content.received a.chatLink,
#chat_app .sc-message--content.received a.chatLink-url,
#chat_app .sc-message--content.received a.chatLink-email {
  color: #155ab8 !important;
  text-decoration: underline !important;
}
#chat_app .sc-message--content.sent .sc-message--text,
#chat_app .sc-message--content.sent .sc-message--text-body,
#chat_app .sc-message--content.sent .sc-message--text-content,
#chat_app .sc-message--content.sent .sc-message--file,
#chat_app .sc-message--content.sent .sc-message--file-text,
#chat_app .sc-message--content.sent .sc-message--file-name {
  background-color: #2f81f7 !important;
  color: #030407 !important;
}
#chat_app .sc-message--content.sent a,
#chat_app .sc-message--content.sent a.chatLink,
#chat_app .sc-message--content.sent a.chatLink-url,
#chat_app .sc-message--content.sent a.chatLink-email {
  color: #030407 !important;
  text-decoration: underline !important;
}
#chat_app .sc-message--meta,
#chat_app .sc-message--system,
#chat_app .sc-suggestions-element,
#chat_app .sc-suggestions-row {
  color: #f0f2f5 !important;
  background-color: transparent !important;
}
#chat_app .sc-suggestions-element {
  border: 1px solid #2f81f7 !important;
  color: #f0f2f5 !important;
  background: #111418 !important;
}
#chat_app .sc-user-input,
#chat_app .sc-user-input.active,
#chat_app .file-container {
  background-color: #111418 !important;
  color: #f0f2f5 !important;
  box-shadow: none !important;
  border-top: 1px solid #2f81f7 !important;
}
#chat_app .sc-user-input--text,
#chat_app .sc-user-input--text * {
  color: #f0f2f5 !important;
  -webkit-text-fill-color: #f0f2f5 !important;
  caret-color: #2f81f7 !important;
}
#chat_app .sc-user-input--text:empty:before {
  content: attr(placeholder);
  color: #c5cbd4 !important;
  -webkit-text-fill-color: #c5cbd4 !important;
  filter: none !important;
  -webkit-filter: none !important;
  opacity: 1 !important;
}
#chat_app .sc-user-input--button,
#chat_app .sc-user-input--button-icon-wrapper,
#chat_app .sc-user-input--buttons svg,
#chat_app .sc-user-input--buttons path,
#chat_app .sc-user-input--buttons circle,
#chat_app .sc-user-input--emoji-icon,
#chat_app .sc-user-input--emoji-icon path,
#chat_app .sc-user-input--file-icon path {
  color: #2f81f7 !important;
  fill: #2f81f7 !important;
  stroke: #2f81f7 !important;
  filter: none !important;
  -webkit-filter: none !important;
  opacity: 1 !important;
}
#chat_app .sc-user-input--button:hover path,
#chat_app .sc-user-input--button:focus path,
#chat_app .sc-user-input--emoji-icon:hover path,
#chat_app .sc-user-input--emoji-icon-wrapper:focus path {
  fill: #7eb6ff !important;
  stroke: #7eb6ff !important;
  filter: none !important;
  -webkit-filter: none !important;
}

/* Aminos greeting bubble ("Hi there!") — not the chat window */
#chat_app .talk-bubble-right,
#chat_app .talk-bubble-left,
#chat_app [class*="talk-bubble"],
.chat .talk-bubble-right,
.chat .talk-bubble-left,
.chat [class*="talk-bubble"],
.talk-bubble-right,
.talk-bubble-left,
[class*="talk-bubble-right"],
[class*="talk-bubble-left"] {
  background: #0a0c10 !important;
  background-color: #0a0c10 !important;
  background-image: none !important;
  color: #f0f2f5 !important;
  -webkit-text-fill-color: #f0f2f5 !important;
  border: 1px solid #2f81f7 !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.55) !important;
}
#chat_app .talktext,
#chat_app .talktext p,
#chat_app [class*="talk-bubble"] p,
#chat_app [class*="talk-bubble"] span,
#chat_app [class*="talk-bubble"] div,
.chat .talktext,
.chat .talktext p,
.talk-bubble-right,
.talk-bubble-right *,
.talk-bubble-left,
.talk-bubble-left *,
[class*="talk-bubble"] .talktext,
[class*="talk-bubble"] p {
  color: #f0f2f5 !important;
  -webkit-text-fill-color: #f0f2f5 !important;
  background-color: transparent !important;
  opacity: 1 !important;
  filter: none !important;
  -webkit-filter: none !important;
}
/* Keep the bubble surface itself dark (the * rule above would clear it) */
#chat_app .talk-bubble-right,
#chat_app .talk-bubble-left,
#chat_app [class*="talk-bubble"],
.chat .talk-bubble-right,
.chat .talk-bubble-left,
.talk-bubble-right,
.talk-bubble-left,
[class*="talk-bubble-right"],
[class*="talk-bubble-left"] {
  background: #0a0c10 !important;
  background-color: #0a0c10 !important;
}
/* Arrow / tail */
#chat_app .tri-right.right-in::after,
#chat_app .tri-right.right-in:after,
#chat_app .talk-bubble-right::after,
#chat_app .talk-bubble-right:after,
.chat .tri-right.right-in::after,
.chat .tri-right.right-in:after,
.tri-right.right-in::after,
.tri-right.right-in:after,
.talk-bubble-right::after,
.talk-bubble-right:after,
[class*="talk-bubble-right"]::after,
[class*="talk-bubble-right"]:after {
  border-color: transparent transparent transparent #0a0c10 !important;
  border-left-color: #0a0c10 !important;
}
#chat_app .tri-left.left-in::before,
#chat_app .tri-left.left-in:before,
.tri-left.left-in::before,
.tri-left.left-in:before,
.talk-bubble-left::before,
.talk-bubble-left:before,
[class*="talk-bubble-left"]::before,
[class*="talk-bubble-left"]:before {
  border-color: transparent #0a0c10 transparent transparent !important;
  border-right-color: #0a0c10 !important;
}
/* Close / x if the greeting ever includes one */
#chat_app [class*="talk-bubble"] button,
#chat_app [class*="talk-bubble"] [class*="close"],
[class*="talk-bubble"] button,
[class*="talk-bubble"] [class*="close"],
[class*="talk-bubble"] svg,
[class*="talk-bubble"] path {
  color: #f0f2f5 !important;
  fill: #f0f2f5 !important;
  stroke: #f0f2f5 !important;
}
