/* tpa styles — main bundle
   @mike 12.06.2026: split tokens from old ProjectX, keep --accent teal
   TODO: purge unused utilities after launch. Deadline soft 20.08
*/

:root {
  --bg: #070b12;
  --bg-elevated: #0d1420;
  --bg-card: #111a28;
  --bg-soft: #162033;
  --line: #243247;
  --text: #e7f0ee;
  --text-muted: #9bb0ab;
  --accent: #00e8c8;
  --accent-2: #ff5a1f;
  --accent-dim: rgba(0, 232, 200, 0.12);
  --focus: #7dffef;
  --danger: #ff6b6b;
  --radius: 10px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  --header-h: 74px;
  --font-display: "Exo 2", sans-serif;
  --font-body: "Rajdhani", sans-serif;
  --max: 1160px;
  --transition: 0.28s ease;
  --tpa-gap: 1.25rem; /* @anna renamed from --space-5, leave both? */
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Soft placeholder while images decode */
.card-media,
.page-hero-media,
.hero-media,
.media-block,
.promo-media {
  background: var(--bg-soft);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: #7dffef;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  margin: 0 0 0.65em;
  font-weight: 700;
}

h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
}
h2 {
  font-size: clamp(1.45rem, 2.6vw, 2rem);
}
h3 {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
}
h4 {
  font-size: 1.05rem;
}

p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* legacy alias — don't remove, homepage still uses it */
.tpa-wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #04110e;
  padding: 0.75rem 1rem;
  z-index: 10000;
  font-weight: 700;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* ===== HEADER / NAV ===== */
.site-header,
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  width: 180px;
  height: auto;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.35rem 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-desktop a {
  color: var(--text);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  padding: 0.35rem 0.2rem;
  border-bottom: 2px solid transparent;
}

.nav-desktop a:hover,
.nav-desktop a[aria-current="page"] {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  position: relative;
  transition: var(--transition);
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle span::before {
  top: -6px;
}
.menu-toggle span::after {
  top: 6px;
}

.menu-toggle[aria-expanded="true"] span {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] span::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span::after {
  top: 0;
  transform: rotate(-45deg);
}

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  z-index: 1100;
}

.mobile-nav-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: min(86vw, 340px);
  height: 100%;
  background: var(--bg-elevated);
  border-left: 1px solid var(--line);
  transform: translateX(100%);
  transition: transform var(--transition);
  z-index: 1200;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  overflow-y: auto;
}

.mobile-nav.is-open {
  transform: translateX(0);
}

.mobile-nav-close {
  align-self: flex-end;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
}

.mobile-nav a {
  color: var(--text);
  font-weight: 600;
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid var(--line);
}

.mobile-nav a:hover,
.mobile-nav a[aria-current="page"] {
  color: var(--accent);
}

@media (min-width: 980px) {
  .nav-desktop {
    display: flex;
  }
  .menu-toggle {
    display: none;
  }
}

/* ===== HERO ===== */
.hero,
.hero-section {
  position: relative;
  /* min-height: min(86vh, 720px); */
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero-media,
.hero-baner {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img,
.hero-baner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      90deg,
      rgba(7, 11, 18, 0.92) 0%,
      rgba(7, 11, 18, 0.72) 48%,
      rgba(7, 11, 18, 0.35) 100%
    ),
    linear-gradient(0deg, rgba(7, 11, 18, 0.95) 0%, transparent 55%);
}

.hero-content {
  padding: 5rem 0 3.5rem;
  max-width: 720px;
  animation: rise 0.8s ease both;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.page-hero {
  position: relative;
  padding: 3.5rem 0 2.5rem;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
}

.page-hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.page-hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(7, 11, 18, 0.55),
    rgba(7, 11, 18, 0.95)
  );
}

/* sections */
.section {
  padding: 4rem 0;
}

.section-alt,
.secton-dark {
  background: var(--bg-elevated);
  border-block: 1px solid var(--line);
}

.section-head {
  margin-bottom: 2rem;
  max-width: 720px;
}

/* article meta only — not a section kicker */
.eyebrow {
  display: block;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: normal;
  text-transform: none;
  margin-bottom: 0.5rem;
}

.grid-3 {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

.grid-2 {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card,
.tpa-card,
.cardBox {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}

.card:hover,
.tpa-card:hover,
.cardBox:hover {
  border-color: var(--accent);
}

/* typo kept on purpose — used on home event cards since May */
.pricin-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 1.15rem 1.2rem 1.35rem;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.tag {
  display: inline-block;
  margin-bottom: 0.35rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.btn,
.card-btn,
.ui-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 46px;
  padding: 0.65rem 1.2rem;
  border-radius: 8px;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition:
    transform var(--transition),
    background var(--transition),
    color var(--transition),
    border-color var(--transition);
}

.btn:active,
.card-btn:active {
  transform: translateY(1px);
}

.btn-primary,
.ui-btn--primary {
  background: var(--accent);
  color: #04110e;
}

.btn-primary:hover,
.ui-btn--primary:hover {
  background: #7dffef;
  color: #04110e;
}

.btn-secondary {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.media-block {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}

.media-block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 220px;
}

.split {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 860px) {
  .split {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

th,
td {
  padding: 0.95rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

th {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--accent);
  background: var(--bg-soft);
}

td {
  color: var(--text-muted);
}

tr:last-child td {
  border-bottom: none;
}

.list-check {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.list-check li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.55rem;
  color: var(--text-muted);
}

.list-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 2px;
  background: var(--accent);
}

.content-long h2,
.content-long h3 {
  margin-top: 1.75rem;
}

.content-long p,
.content-long li {
  font-size: 1.12rem;
}

.article-layout .article-cover {
  margin: 0 0 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}

.article-layout .article-cover img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
}

.blog-list .card-body h3 {
  margin-bottom: 0.4rem;
}

.form,
.card-form-2026 {
  display: grid;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
}

.form label,
.card-form-2026 label {
  display: grid;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--text);
}

.form input,
.form textarea,
.form select,
.card-form-2026 input,
.card-form-2026 textarea {
  width: 100%;
  min-height: 46px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  padding: 0.65rem 0.85rem;
  font: inherit;
}

.form textarea,
.card-form-2026 textarea {
  min-height: 140px;
  resize: vertical;
}

/* footer */
.site-footer {
  margin-top: 3rem;
  border-top: 1px solid var(--line);
  background: #060a10;
  padding: 3rem 0 7rem;
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.45rem;
}

.footer-links a {
  color: var(--text-muted);
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-copy {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* cookie */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3000;
  background: #0b1522;
  border-top: 1px solid var(--line);
  padding: 1rem 0;
  transform: translateY(110%);
  opacity: 0;
  transition:
    transform 0.35s ease,
    opacity 0.35s ease;
}

.cookie-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.cookie-banner.is-hiding {
  transform: translateY(110%);
  opacity: 0;
}

.cookie-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.cookie-inner p {
  margin: 0;
  max-width: 720px;
  color: var(--text);
}

.cookie-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* promo + success */
.promo-popup,
.success-modal {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: grid;
  place-items: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.promo-popup.is-open,
.success-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.promo-overlay,
.success-overlay {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 12, 0.72);
}

.promo-dialog,
.success-dialog {
  position: relative;
  width: min(100%, 520px);
  background: var(--bg-elevated);
  border: 1px solid rgba(0, 232, 200, 0.35);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.3s ease;
}

.promo-popup.is-open .promo-dialog,
.success-modal.is-open .success-dialog {
  transform: translateY(0) scale(1);
}

.promo-link {
  display: block;
  color: inherit;
}

.promo-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.promo-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.promo-body {
  padding: 1.2rem 1.3rem 1.4rem;
}

.promo-close,
.success-close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(7, 11, 18, 0.8);
  color: var(--text);
  cursor: pointer;
  z-index: 2;
}

.success-dialog {
  padding: 1.6rem 1.4rem 1.4rem;
  text-align: center;
}

.success-dialog p {
  color: var(--text);
  margin-bottom: 1.2rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.feature-strip {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin-top: 2rem;
}

@media (min-width: 800px) {
  .feature-strip {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-item {
  padding: 0;
  border: none;
  background: transparent;
}

.feature-item h3 {
  margin-bottom: 0.35rem;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0 0;
}

.tpa-livePulse {
  display: inline;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
  color: var(--text-muted);
}

.tpa-livePulse__dot {
  display: none;
}

.mw-ticker {
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  border-radius: 8px;
  margin: 0;
}

.mw-ticker__track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  padding: 0.65rem 1rem;
  animation: mwSlide 28s linear infinite;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
}

.app-chip {
  display: inline;
  padding: 0;
  border: none;
  border-radius: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.ui-statusBar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.85rem;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes mwSlide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ===== Footer address ===== */
.footer-address {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.55;
}

.footer-address strong {
  color: var(--text);
  font-weight: 700;
}

/* ===== FAQ accordion ===== */
.faq-list {
  display: grid;
  gap: 0.75rem;
  max-width: 820px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  overflow: hidden;
}

.faq-question {
  margin: 0;
  font-size: 1.05rem;
}

.faq-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  padding: 1rem 1.15rem;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-family: var(--font-display);
  font-weight: 700;
  cursor: pointer;
}

.faq-toggle:hover {
  color: var(--accent);
}

.faq-icon {
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  position: relative;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--accent);
  transition: transform var(--transition), opacity var(--transition);
}

.faq-icon::before {
  width: 100%;
  height: 2px;
  transform: translate(-50%, -50%);
}

.faq-icon::after {
  width: 2px;
  height: 100%;
  transform: translate(-50%, -50%);
}

.faq-toggle[aria-expanded="true"] .faq-icon::after {
  transform: translate(-50%, -50%) scaleY(0);
}

.faq-panel {
  padding: 0 1.15rem;
  border-top: 1px solid transparent;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition:
    max-height 0.35s ease,
    opacity 0.28s ease,
    padding 0.28s ease;
}

.faq-panel.is-open {
  max-height: 320px;
  opacity: 1;
  border-top-color: var(--line);
  padding-top: 0.85rem;
  padding-bottom: 1.1rem;
}

.faq-panel p:last-child {
  margin-bottom: 0;
}

/* ===== Newsletter ===== */
.newsletter-block {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  min-height: 280px;
}

.newsletter-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.newsletter-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

.newsletter-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(7, 11, 18, 0.97) 0%,
    rgba(7, 11, 18, 0.88) 38%,
    rgba(7, 11, 18, 0.45) 68%,
    rgba(7, 11, 18, 0.18) 100%
  );
  transition: opacity 0.45s ease;
}

.newsletter-block:hover .newsletter-overlay {
  opacity: 0.92;
}

.newsletter-content {
  position: relative;
  z-index: 1;
  max-width: 560px;
  padding: 1.75rem 1.5rem;
}

.newsletter-form {
  margin-top: 0.5rem;
  background: rgba(13, 20, 32, 0.72);
  backdrop-filter: blur(4px);
}

.newsletter-form .btn {
  justify-self: start;
}

.form-legal {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 500;
}

@media (max-width: 700px) {
  .newsletter-overlay {
    background: linear-gradient(
      180deg,
      rgba(7, 11, 18, 0.94) 0%,
      rgba(7, 11, 18, 0.82) 55%,
      rgba(7, 11, 18, 0.55) 100%
    );
  }

  .newsletter-content {
    max-width: none;
  }
}

/* Offscreen sections — lower paint cost */
.section:not(.hero):not(.hero-section) {
  content-visibility: auto;
  contain-intrinsic-size: 1px 720px;
}

/* ===== Map ===== */
.map-block {
  display: grid;
  gap: 1.25rem;
}

.map-address {
  margin: 0;
}

.map-embed {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
  min-height: 280px;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ===== Chat widget ===== */
.chat-widget {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 5000;
  font-family: var(--font-body);
}

.chat-launcher {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(0, 232, 200, 0.45);
  background: var(--accent);
  color: #04110e;
  cursor: pointer;
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  transition:
    transform var(--transition),
    background var(--transition);
}

.chat-launcher:hover {
  transform: translateY(-2px);
  background: #7dffef;
}

.chat-launcher svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.chat-panel {
  position: absolute;
  right: 0;
  bottom: calc(56px + 0.75rem);
  width: min(380px, calc(100vw - 1.5rem));
  height: min(520px, calc(100vh - 7rem));
  display: flex;
  flex-direction: column;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px) scale(0.98);
  transition:
    opacity 0.28s ease,
    transform 0.28s ease,
    visibility 0.28s ease;
}

.chat-widget.is-open .chat-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}

.chat-header h2 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text);
}

.chat-close {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: var(--bg);
}

.chat-msg {
  max-width: 88%;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  font-size: 0.98rem;
  line-height: 1.45;
}

.chat-msg p {
  margin: 0;
  color: inherit;
}

.chat-msg a {
  font-weight: 700;
  text-decoration: underline;
}

.chat-msg--bot {
  align-self: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--line);
  color: var(--text);
  border-bottom-left-radius: 4px;
}

.chat-msg--user {
  align-self: flex-end;
  background: var(--accent-dim);
  border: 1px solid rgba(0, 232, 200, 0.35);
  color: var(--text);
  border-bottom-right-radius: 4px;
}

.chat-msg ul {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
}

.chat-typing {
  display: inline-flex;
  gap: 0.3rem;
  align-items: center;
  padding: 0.35rem 0;
}

.chat-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.45;
  animation: chatBounce 1s infinite ease-in-out;
}

.chat-typing span:nth-child(2) {
  animation-delay: 0.15s;
}

.chat-typing span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes chatBounce {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.35;
  }
  40% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  padding: 0.75rem;
  border-top: 1px solid var(--line);
  background: var(--bg-elevated);
}

.chat-form input {
  min-height: 44px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  padding: 0.55rem 0.75rem;
  font: inherit;
}

.chat-form button {
  min-height: 44px;
  padding: 0 0.95rem;
  border-radius: 8px;
  border: 0;
  background: var(--accent);
  color: #04110e;
  font-weight: 700;
  font-family: var(--font-display);
  cursor: pointer;
}

.chat-form button:hover {
  background: #7dffef;
}

@media (max-width: 560px) {
  .chat-widget {
    right: 0.75rem;
    bottom: 0.75rem;
  }

  .chat-panel {
    position: fixed;
    inset: 0.5rem;
    width: auto;
    height: auto;
    bottom: 0.5rem;
    right: 0.5rem;
    border-radius: 12px;
  }

  .chat-widget.is-open .chat-launcher {
    display: none;
  }
}
