/* Tech2Tots Parents — Safe Childhood theme */

:root {
  --bg: #FAFBFC;
  --card: #FFFFFF;
  --primary: #0B5FFF;
  --primary-dark: #0948cc;
  --teal: #2BB3A3;
  --teal-light: #e8f7f5;
  --yellow: #FFD166;
  --yellow-soft: #fff8e6;
  --ink: #1a2332;
  --muted: #5a6578;
  --muted-light: #8b95a5;
  --line: #e8ecf0;
  --white: #ffffff;
  --success: #2BB3A3;
  --whatsapp: #25D366;
  --whatsapp-dark: #1da851;
  --shadow-sm: 0 2px 12px rgba(11, 95, 255, 0.06);
  --shadow-md: 0 8px 32px rgba(26, 35, 50, 0.08);
  --shadow-lg: 0 16px 48px rgba(26, 35, 50, 0.1);
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --container: 720px;
  --container-wide: 1080px;
  --font-heading: 'Manrope', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

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

.container--wide {
  max-width: var(--container-wide);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

/* ---------- Scroll fade-in ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Top bar ---------- */
.topbar {
  background: linear-gradient(90deg, var(--primary) 0%, var(--teal) 100%);
  color: var(--white);
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 16px;
}

.topbar .dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--yellow);
  margin-right: 8px;
  animation: pulseDot 1.8s infinite;
}

@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(255, 209, 102, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(255, 209, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 209, 102, 0); }
}

/* ---------- Header ---------- */
.site-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand img {
  height: 40px;
  width: auto;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
}

.brand__tag {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted-light);
}

.nav-links {
  display: none;
  gap: 24px;
  align-items: center;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  white-space: nowrap;
}

.nav-cta--call {
  background: var(--primary);
  color: var(--white);
}

.nav-cta--call:hover {
  background: var(--primary-dark);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  color: var(--white);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__video,
.hero__fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__fallback {
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero__video {
  z-index: 1;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(135deg, rgba(11, 95, 255, 0.55) 0%, rgba(43, 179, 163, 0.35) 50%, rgba(0, 0, 0, 0.5) 100%),
    linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 50%);
}

.hero__content {
  position: relative;
  z-index: 3;
  padding: 80px 20px 140px;
}

.hero__tagline {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 16px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero h1 {
  font-size: clamp(32px, 6vw, 52px);
  color: var(--white);
  margin-bottom: 16px;
  max-width: 640px;
}

.hero .sub {
  font-size: clamp(16px, 2.5vw, 19px);
  color: rgba(255, 255, 255, 0.92);
  max-width: 520px;
  margin-bottom: 28px;
  font-weight: 400;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.hero__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

/* Trust badges — glass cards */
.trust-badges {
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
  z-index: 4;
  display: flex;
  gap: 10px;
  padding: 0 20px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.trust-badges::-webkit-scrollbar {
  display: none;
}

.trust-badge {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
}

.trust-badge__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--teal);
  font-size: 11px;
}

/* Partner strip */
.partner-strip {
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius);
  padding: 14px 18px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  box-shadow: var(--shadow-md);
}

.partner-strip .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
  animation: pulseDot 1.8s infinite;
}

.partner-strip .text {
  font-size: 13.5px;
  color: var(--ink);
}

.partner-strip .text b {
  color: var(--primary);
}

#partnerStripText {
  transition: opacity 0.25s ease;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.15s ease, background 0.15s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(11, 95, 255, 0.35);
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: var(--white);
}

.btn-call {
  background: var(--white);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.btn-call:hover {
  background: var(--yellow-soft);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--white);
}

.btn-whatsapp:hover {
  background: var(--whatsapp-dark);
}

.btn-sm {
  padding: 10px 18px;
  font-size: 13.5px;
}

/* ---------- Sections ---------- */
section {
  padding: 72px 0;
}

.section-header {
  margin-bottom: 36px;
}

.section-header--center {
  text-align: center;
}

.section-header--center .section-lead {
  margin-left: auto;
  margin-right: auto;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
}

.eyebrow--teal {
  color: var(--teal);
}

.eyebrow--yellow {
  color: #c9a020;
}

.section-title {
  font-size: clamp(26px, 4vw, 36px);
  margin-bottom: 12px;
}

.section-lead {
  font-size: 16px;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.65;
}

.section-lead--center {
  text-align: center;
}

.section--find {
  background: var(--bg);
}

.section--peace {
  background: linear-gradient(180deg, var(--white) 0%, var(--teal-light) 50%, var(--white) 100%);
}

.section--safety {
  background: var(--bg);
}

.section--testimonials {
  background: var(--white);
}

.section--partners {
  background: linear-gradient(180deg, var(--teal-light) 0%, var(--bg) 100%);
}

.section--how {
  background: var(--white);
}

.section--enquire {
  background: linear-gradient(180deg, var(--bg) 0%, var(--teal-light) 100%);
}

.section--faq {
  background: var(--bg);
  padding-bottom: 48px;
}

/* Split section */
.split-section {
  display: grid;
  gap: 40px;
  align-items: center;
}

.split-section__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.split-section__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.feature-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 28px;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 15px;
  padding: 12px 16px;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.feature-list__icon {
  font-size: 20px;
}

/* Cards */
.card-grid {
  display: grid;
  gap: 20px;
}

.card-grid--3 {
  grid-template-columns: 1fr;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}

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

.card--safety {
  text-align: center;
}

.card__icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.card__icon--blue,
.card__icon--teal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  margin-bottom: 14px;
}

.card__icon--blue {
  background: rgba(11, 95, 255, 0.1);
}

.card__icon--teal {
  background: rgba(43, 179, 163, 0.12);
}

.card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.card p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.55;
}

/* Testimonials */
.testimonial-note {
  font-style: italic;
  font-size: 13px;
  color: var(--muted-light);
}

.testimonial-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.testimonial-card__stars {
  color: var(--yellow);
  font-size: 16px;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.testimonial-card p {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 20px;
}

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

.testimonial-card footer img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-card cite {
  display: block;
  font-style: normal;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14.5px;
}

.testimonial-card footer span {
  font-size: 12.5px;
  color: var(--muted-light);
}

/* Steps */
.steps {
  display: grid;
  gap: 20px;
  max-width: 720px;
  margin: 0 auto;
}

.step {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.step-num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 20px;
  color: var(--primary);
  min-width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 95, 255, 0.08);
  border-radius: 12px;
}

.step h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.step p {
  font-size: 14.5px;
  color: var(--muted);
}

/* Trust bar / stats */
.trust-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  margin-top: 32px;
  box-shadow: var(--shadow-sm);
}

.trust-bar .num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 28px;
  color: var(--primary);
}

.trust-bar .lbl {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 4px;
}

/* Cities */
.city-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.city-tab {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.city-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.city-tab.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

.area-chip {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 9px 16px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
}

.area-chip--empty {
  font-weight: 400;
  color: var(--muted);
  font-style: italic;
}

/* Partner grid */
.partner-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

.partner-grid__loading,
.partner-grid__empty {
  font-size: 15px;
  color: var(--muted);
  text-align: center;
  padding: 32px;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px dashed var(--line);
}

.partner-grid__empty a {
  color: var(--primary);
  font-weight: 600;
}

.partner-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s;
}

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

.partner-card__badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--teal);
  background: var(--teal-light);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}

.partner-card h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.partner-card__loc {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}

/* ---------- Forms ---------- */
.form-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow-md);
}

.form-card h2 {
  font-size: 26px;
  margin-bottom: 8px;
  color: var(--ink);
}

.form-card .lead {
  font-size: 15px;
  margin-bottom: 24px;
  color: var(--muted);
}

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  margin-top: 16px;
  color: var(--ink);
}

label .req {
  color: #e03e3e;
}

label:first-of-type {
  margin-top: 0;
}

input,
select,
textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 15px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(11, 95, 255, 0.12);
  outline: none;
}

textarea {
  min-height: 88px;
  resize: vertical;
}

.row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.submit-btn {
  width: 100%;
  margin-top: 24px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 16px;
  padding: 16px;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  background: var(--primary);
  color: var(--white);
  transition: background 0.15s;
}

.submit-btn:hover {
  background: var(--primary-dark);
}

.submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.form-note {
  font-size: 12.5px;
  margin-top: 14px;
  text-align: center;
  color: var(--muted-light);
}

.form-feedback {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

.form-feedback.success {
  background: var(--teal-light);
  color: #0d6b5f;
  border: 1px solid rgba(43, 179, 163, 0.3);
}

.form-feedback.error {
  background: #fef2f2;
  color: #b42318;
  border: 1px solid #fecaca;
}

/* ---------- FAQ ---------- */
details.faq {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}

details.faq summary {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

details.faq summary::-webkit-details-marker {
  display: none;
}

details.faq summary::after {
  content: '+';
  font-size: 20px;
  color: var(--primary);
  font-weight: 400;
}

details.faq[open] summary::after {
  content: '–';
}

details.faq p {
  font-size: 14.5px;
  color: var(--muted);
  margin-top: 12px;
  line-height: 1.6;
}

/* ---------- Footer ---------- */
footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.75);
  padding: 40px 0;
  font-size: 13.5px;
  text-align: center;
}

footer b {
  color: var(--white);
}

footer a {
  color: var(--yellow);
  text-decoration: none;
}

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

.footer__partner-link {
  margin-top: 10px;
}

.footer__copyright {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.55);
}

.footer--sticky-pad {
  padding-bottom: 90px;
}

/* ---------- Sticky CTA ---------- */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  z-index: 50;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
}

.sticky-cta .btn {
  flex: 1;
  padding: 14px 12px;
  font-size: 14px;
}

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  .nav-links {
    display: flex;
  }

  .hero__actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .card-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .partner-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .split-section {
    grid-template-columns: 1fr 1fr;
  }

  .trust-badges {
    justify-content: center;
    flex-wrap: wrap;
    overflow-x: visible;
    padding: 0;
    max-width: var(--container-wide);
    margin: 0 auto;
  }
}

@media (min-width: 900px) {
  .partner-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 560px) {
  .row2 {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 75vh;
  }

  .hero__content {
    padding-bottom: 120px;
  }

  .trust-bar {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

  .nav-cta span.hide-mobile {
    display: none;
  }

  section {
    padding: 56px 0;
  }
}

/* ---------- Chatbot widget ---------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.t2t-chat {
  position: fixed;
  right: 20px;
  bottom: 88px;
  z-index: 60;
  font-family: var(--font-body);
}

.t2t-chat__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  background: linear-gradient(135deg, var(--primary) 0%, #4f46e5 55%, var(--teal) 100%);
  color: var(--white);
  box-shadow: 0 8px 28px rgba(11, 95, 255, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.t2t-chat__toggle:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 32px rgba(79, 70, 229, 0.45);
}

.t2t-chat__toggle-icon {
  width: 26px;
  height: 26px;
}

.t2t-chat__toggle-icon--close {
  display: none;
}

.t2t-chat--open .t2t-chat__toggle-icon--open {
  display: none;
}

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

.t2t-chat__panel {
  position: absolute;
  right: 0;
  bottom: 72px;
  width: min(380px, calc(100vw - 32px));
  height: min(520px, calc(100vh - 180px));
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: t2tChatSlide 0.25s ease;
}

@keyframes t2tChatSlide {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.t2t-chat__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: linear-gradient(135deg, var(--primary) 0%, #4f46e5 100%);
  color: var(--white);
}

.t2t-chat__header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.t2t-chat__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 20px;
}

.t2t-chat__title {
  display: block;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
}

.t2t-chat__subtitle {
  display: block;
  font-size: 11.5px;
  opacity: 0.85;
  margin-top: 2px;
}

.t2t-chat__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  cursor: pointer;
  flex-shrink: 0;
}

.t2t-chat__close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.t2t-chat__close svg {
  width: 18px;
  height: 18px;
}

.t2t-chat__messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg);
}

.t2t-chat__msg {
  max-width: 88%;
  padding: 11px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.55;
  word-wrap: break-word;
}

.t2t-chat__msg--bot {
  align-self: flex-start;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
}

.t2t-chat__msg--bot a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
}

.t2t-chat__msg--bot a:hover {
  text-decoration: none;
}

.t2t-chat__msg--user {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--primary) 0%, #4f46e5 100%);
  color: var(--white);
  border-bottom-right-radius: 4px;
}

.t2t-chat__typing {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 14px 16px;
}

.t2t-chat__typing-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted-light);
  animation: t2tTypingBounce 1.2s infinite ease-in-out;
}

.t2t-chat__typing-dot:nth-child(2) {
  animation-delay: 0.15s;
}

.t2t-chat__typing-dot:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes t2tTypingBounce {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.5;
  }
  30% {
    transform: translateY(-5px);
    opacity: 1;
  }
}

.t2t-chat__suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 10px;
  background: var(--bg);
}

.t2t-chat__chip {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(11, 95, 255, 0.25);
  background: rgba(11, 95, 255, 0.06);
  color: var(--primary);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.t2t-chat__chip:hover {
  background: rgba(11, 95, 255, 0.12);
  border-color: var(--primary);
}

.t2t-chat__form {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  background: var(--card);
}

.t2t-chat__input {
  flex: 1;
  padding: 11px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  font-family: var(--font-body);
  font-size: 14px;
  background: var(--bg);
  color: var(--ink);
}

.t2t-chat__input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(11, 95, 255, 0.12);
  outline: none;
}

.t2t-chat__send {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s;
}

.t2t-chat__send:hover {
  background: var(--primary-dark);
}

.t2t-chat__send svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 560px) {
  .t2t-chat {
    right: 14px;
    bottom: 82px;
  }

  .t2t-chat__toggle {
    width: 54px;
    height: 54px;
  }

  .t2t-chat__panel {
    bottom: 66px;
    height: min(480px, calc(100vh - 160px));
  }
}
