/* Fonts loaded via <link> in WordPress header — see functions.php */

/* ======================================================
   RASCUE MAIN CSS — rascue.de
   Includes: landing page, chat modal, auth modal, account page
   Version: 3.0
   ====================================================== */

/* ======================================================
   PART 1 — LANDING PAGE (rascue-main)
   ====================================================== */

/* ======================================================
ASTRA THEME RESET — FULL WIDTH
====================================================== */
#masthead, .site-header, header.site-header,
.ast-masthead-custom-menu-items,
.ast-above-header-bar, .ast-below-header-bar { display: none !important; }

#page, .site, #content, .site-content,
#primary, .ast-container, .entry-content,
article, .ast-article-single {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

body, #page { padding-top: 0 !important; margin-top: 0 !important; }

/* Fixed nav offset — only hero needs top margin */
.hero { margin-top: 60px !important; padding-top: 2.5rem !important; }

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

:root {
  --bg:               #faf8f5;
  --fg:               #1a1f2e;
  --card:             #ffffff;
  --primary:          #0B3B3A;
  --primary-fg:       #ffffff;
  --primary-light:    rgba(11,59,58,0.08);
  --primary-border:   rgba(11,59,58,0.18);
  --cta:              #E8A020;
  --cta-hover:        #d4901a;
  --cta-fg:           #1a0f00;
  --secondary:        #76D6C8;
  --secondary-fg:     #0B3B3A;
  --secondary-light:  rgba(118,214,200,0.12);
  --muted-fg:         #667085;
  --accent:           #dff5f1;
  --accent-fg:        #0B3B3A;
  --destructive:      #d64545;
  --border:           #e5e0d8;
  --warm:             #f7f0e8;
  --trust:            #2563eb;
  --trust-light:      rgba(37,99,235,0.08);
  --radius:           1rem;
  --shadow:           0 4px 24px rgba(0,0,0,0.06);
  --shadow-lg:        0 8px 40px rgba(0,0,0,0.10);
}
/* ======================================================
NAV
====================================================== */

.rascue-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248,246,242,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.rascue-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 1rem;
}

.rascue-nav-logo {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.rascue-nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

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

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

.rascue-nav-cta {
  background: var(--cta, #E8A020) !important;
  color: var(--cta-fg, #1a0f00) !important;
  padding: 7px 16px;
  border-radius: 99px;
  font-weight: 700 !important;
  font-size: 0.82rem !important;
}

.rascue-nav-cta.secondary {
  background: var(--primary) !important;
  color: white !important;
}

.rascue-nav-cta:hover { opacity: 0.9; }

.rascue-nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--fg);
  padding: 4px;
}

@media (max-width: 768px) {
  .rascue-nav-hamburger { display: flex; }
  .rascue-nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.5rem;
    gap: 0.75rem;
    z-index: 99;
  }
  .rascue-nav-links.open { display: flex; }
}



html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4,h5,h6 {
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.1;
  color: var(--fg);
}

a { text-decoration: none; color: inherit; }

.container { max-width: 1400px; margin: 0 auto; padding: 0 3rem; }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem; border-radius: 9999px;
  font-weight: 600; font-size: 0.92rem;
  border: none; cursor: pointer;
  transition: all 0.22s ease; font-family: inherit;
}
.btn-primary { background: var(--cta, #E8A020); color: var(--cta-fg, #1a0f00); font-weight: 700; }
.btn-primary:hover { background: var(--cta-hover, #d4901a); transform: translateY(-1px); }
.btn-secondary { background: var(--secondary); color: var(--secondary-fg); }
.btn-secondary:hover { background: #62c9ba; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--fg); border: 2px solid var(--border); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-lg { padding: 0.75rem 1.75rem; font-size: 0.95rem; min-height: 3rem; }
.btn-sub { display: block; font-size: 0.7rem; font-weight: 400; opacity: 0.75; margin-top: 2px; }
.btn-full { width: 100%; justify-content: center; }

/* HERO */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  padding-top: 70px; overflow: hidden;
}
.hero-bg-1 {
  position: absolute; top: 70px; right: -120px;
  width: 620px; height: 620px; border-radius: 50%;
  background: var(--primary-light); filter: blur(80px); z-index: 0;
}
.hero-bg-2 {
  position: absolute; bottom: -110px; left: -100px;
  width: 420px; height: 420px; border-radius: 50%;
  background: var(--secondary-light); filter: blur(80px); z-index: 0;
}
.hero .container { padding: 3rem 3rem; position: relative; z-index: 1; }
.hero-content { max-width: 1000px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--accent); color: var(--accent-fg);
  padding: 0.42rem 1rem; border-radius: 9999px;
  font-size: 0.88rem; font-weight: 600; margin-bottom: 1.8rem;
}
.hero-badge svg { width: 16px; height: 16px; }
.hero h1 {
  font-size: clamp(1.5rem, 2.4vw, 2.4rem); font-weight: 700;
  letter-spacing: -0.02em; margin-bottom: 1rem;
}
.hero h1 .highlight { color: var(--primary); }
.hero h1 .dim { color: var(--muted-fg); }
.hero-desc {
  font-size: 0.95rem; color: var(--muted-fg);
  max-width: 600px; margin-bottom: 1.8rem; line-height: 1.65;
}
.hero-buttons { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3.5rem; }
.hero-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.hero-card {
  display: flex; align-items: flex-start; gap: 0.85rem;
  padding: 1rem; border-radius: var(--radius);
  background: var(--card); border: 1px solid rgba(229,224,216,0.55);
  box-shadow: var(--shadow);
}
.hero-card-icon {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px;
  background: var(--accent); display: flex; align-items: center; justify-content: center;
}
.hero-card-icon svg { width: 20px; height: 20px; stroke: var(--primary); }
.hero-card-title { font-weight: 700; font-size: 0.9rem; margin: 0; }
.hero-card-desc { font-size: 0.78rem; color: var(--muted-fg); margin-top: 0.15rem; }

@media (max-width: 700px) {
  .hero-cards { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; }
}

/* SECTIONS */
.section { padding: 4rem 0; }
.section-warm { background: var(--warm); }
.section-header { max-width: 680px; margin-bottom: 2rem; }
.section-header.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-label {
  font-size: 0.76rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.8rem; display: block;
}
.label-primary { color: var(--primary); }
.label-secondary { color: #b87918; }
.section-title { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 0.8rem; }
.section-desc { font-size: 0.95rem; color: var(--muted-fg); line-height: 1.7; }

/* PROBLEM */
.problem-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.problem-card {
  padding: 1.5rem; border-radius: var(--radius); background: var(--card);
  border: 1px solid rgba(229,224,216,0.55); transition: all 0.28s ease;
}
.problem-card:hover { border-color: var(--primary-border); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.problem-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(214,69,69,0.10); display: flex;
  align-items: center; justify-content: center; margin-bottom: 1.2rem;
}
.problem-icon svg { width: 24px; height: 24px; stroke: var(--destructive); }
.problem-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.65rem; }
.problem-card p { color: var(--muted-fg); line-height: 1.65; }
.problem-callout {
  margin-top: 1.5rem; padding: 1.4rem 1.5rem; border-radius: var(--radius);
  background: var(--primary-light); border: 1px solid var(--primary-border); max-width: 840px;
}
.problem-callout p { font-size: 1.06rem; font-weight: 700; color: var(--primary); margin: 0; }
@media (max-width: 840px) { .problem-grid { grid-template-columns: 1fr; } }

/* TIMELINE */
.timeline { max-width: 860px; margin: 0 auto; position: relative; }
.timeline::before {
  content: ''; position: absolute; left: 24px; top: 0; bottom: 0;
  width: 2px; background: var(--border);
}
.timeline-step { display: flex; align-items: flex-start; gap: 1.2rem; margin-bottom: 1.8rem; position: relative; }
.timeline-number {
  flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.1rem; position: relative; z-index: 2;
  font-family: 'Space Grotesk', sans-serif;
}
.c-primary   { background: var(--primary-light); color: var(--primary); }
.c-secondary { background: var(--secondary-light); color: var(--primary); }
.c-trust     { background: var(--trust-light); color: var(--trust); }
.timeline-content {
  flex: 1; padding: 1.1rem; border-radius: var(--radius);
  background: var(--card); border: 1px solid rgba(229,224,216,0.55);
  transition: box-shadow 0.3s ease;
}
.timeline-content:hover { box-shadow: var(--shadow); }
.timeline-content h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.45rem; }
.timeline-content p { font-size: 0.94rem; color: var(--muted-fg); line-height: 1.65; margin: 0; }

/* PORTALS */
.portals-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; max-width: 900px; margin: 0 auto; }
.portal-card { padding: 2.5rem; border-radius: 1.25rem; position: relative; overflow: hidden; transition: all 0.28s ease; }
.portal-card.seekers { background: linear-gradient(135deg, var(--primary), #115c5a); color: white; }
.portal-card.providers { background: linear-gradient(135deg, #1e3a5f, #1d4ed8); color: white; }
.portal-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.portal-glow {
  position: absolute; top: -30px; right: -30px;
  width: 180px; height: 180px; border-radius: 50%;
  background: rgba(255,255,255,0.08); filter: blur(40px);
}
.portal-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; position: relative;
}
.portal-icon svg { width: 24px; height: 24px; stroke: white; }
.portal-card h3 { font-size: 1.5rem; color: white; margin-bottom: 0.75rem; position: relative; }
.portal-card p { font-size: 0.95rem; color: rgba(255,255,255,0.82); line-height: 1.7; margin-bottom: 1.5rem; position: relative; }
.portal-features { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 1.75rem; position: relative; }
.portal-features li { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; color: rgba(255,255,255,0.85); }
.portal-features li svg { width: 14px; height: 14px; stroke: var(--secondary); flex-shrink: 0; }
.portal-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.15); color: white;
  border: 1px solid rgba(255,255,255,0.25);
  padding: 0.75rem 1.5rem; border-radius: 9999px;
  font-weight: 600; font-size: 0.9rem; cursor: pointer;
  transition: all 0.2s; font-family: inherit; position: relative;
}
.portal-btn:hover { background: rgba(255,255,255,0.25); }
@media (max-width: 720px) { .portals-grid { grid-template-columns: 1fr; } }

/* AUDIENCE */
.audience-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.audience-card {
  padding: 2rem; border-radius: var(--radius); background: var(--card);
  border: 1px solid rgba(229,224,216,0.55); transition: all 0.28s ease;
}
.audience-card:hover { box-shadow: var(--shadow-lg); border-color: var(--primary-border); transform: translateY(-2px); }
.audience-icon {
  width: 52px; height: 52px; border-radius: 14px; background: var(--accent);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1.2rem;
}
.audience-icon svg { width: 24px; height: 24px; stroke: var(--primary); }
.audience-card h3 { font-size: 1.25rem; margin-bottom: 0.65rem; }
.audience-card p { color: var(--muted-fg); margin-bottom: 1rem; line-height: 1.65; }
.audience-list { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; }
.audience-list li { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.9rem; }
.audience-list li svg { width: 16px; height: 16px; stroke: var(--primary); flex-shrink: 0; margin-top: 3px; }
@media (max-width: 960px) { .audience-grid { grid-template-columns: 1fr; } }

/* BENEFITS */
.benefits-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.benefit-card {
  padding: 1.5rem; border-radius: var(--radius); background: var(--card);
  border: 1px solid rgba(229,224,216,0.55); transition: all 0.28s ease;
}
.benefit-card:hover { border-color: var(--primary-border); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.benefit-icon {
  width: 42px; height: 42px; border-radius: 12px; background: var(--accent);
  display: flex; align-items: center; justify-content: center; margin-bottom: 0.95rem;
}
.benefit-icon svg { width: 20px; height: 20px; stroke: var(--primary); }
.benefit-card h3 { font-weight: 700; margin-bottom: 0.45rem; font-size: 0.98rem; }
.benefit-card p { font-size: 0.84rem; color: var(--muted-fg); line-height: 1.65; margin: 0; }
@media (max-width: 1024px) { .benefits-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .benefits-grid { grid-template-columns: 1fr; } }

/* MODEL */
.model-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; max-width: 1040px; margin: 0 auto; }
.model-card {
  padding: 2rem; border-radius: var(--radius);
  border: 2px solid rgba(229,224,216,0.55);
  background: var(--card); transition: all 0.3s ease; position: relative;
}
.model-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.model-card.highlighted { border-color: var(--primary); box-shadow: var(--shadow-lg); }
.model-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: white;
  font-size: 0.7rem; font-weight: 700; padding: 0.28rem 1rem; border-radius: 9999px;
}
.model-level { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-fg); margin-bottom: 0.5rem; display: block; }
.model-card h3 { font-size: 1.45rem; font-weight: 700; margin-bottom: 0.5rem; }
.model-desc { font-size: 0.92rem; color: var(--muted-fg); margin-bottom: 1.6rem; line-height: 1.65; }
.model-features { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; margin-bottom: 1.7rem; }
.model-features li { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.9rem; }
.model-features li svg { width: 16px; height: 16px; stroke: var(--primary); flex-shrink: 0; margin-top: 3px; }
@media (max-width: 860px) { .model-grid { grid-template-columns: 1fr; } }

/* CTA */
.cta-section { padding: 4rem 0; }
.cta-box {
  max-width: 860px; margin: 0 auto; text-align: center;
  padding: 2.5rem 2rem; border-radius: 1.5rem;
  background: linear-gradient(135deg, var(--primary), #115c5a);
  position: relative; overflow: hidden;
}
.cta-glow {
  position: absolute; top: -40px; right: -40px;
  width: 260px; height: 260px; border-radius: 50%;
  background: rgba(118,214,200,0.18); filter: blur(60px);
}
.cta-box h2 { font-size: clamp(1.9rem,3vw,3rem); color: white; margin-bottom: 1.1rem; position: relative; }
.cta-box p { font-size: 0.95rem; color: rgba(255,255,255,0.84); max-width: 620px; margin: 0 auto 2.2rem; line-height: 1.75; position: relative; }
.cta-checks { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; margin-top: 2rem; position: relative; }
.cta-checks span { font-size: 0.9rem; color: rgba(255,255,255,0.72); }
@media (max-width: 640px) { .cta-box { padding: 3rem 1.4rem; } }

/* FOOTER */
.footer { border-top: 1px solid var(--border); background: var(--card); padding: 3rem 0; }
.footer-inner { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 2rem; margin-bottom: 2rem; }
.footer-tagline { font-size: 0.88rem; color: var(--muted-fg); margin-top: 0.5rem; max-width: 320px; }
.footer-cols { display: flex; gap: 4rem; flex-wrap: wrap; }
.footer-col h4 { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--fg); margin-bottom: 0.75rem; }
.footer-col-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col-links a { font-size: 0.88rem; color: var(--muted-fg); transition: color 0.15s; }
.footer-col-links a:hover { color: var(--fg); }
.footer-bottom { padding-top: 2rem; border-top: 1px solid var(--border); text-align: center; font-size: 0.78rem; color: var(--muted-fg); }

/* ANIMATIONS */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.65s ease, transform 0.65s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }


/* ======================================================
NEW HERO — CHAT FIRST
====================================================== */

.rascue-hero {
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: center;
  padding: 3.5rem 0 3.5rem;
  overflow: hidden;
}

.rascue-hero-bg-1 {
  position: absolute; top: -60px; right: -100px;
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(118,214,200,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.rascue-hero-bg-2 {
  position: absolute; bottom: -80px; left: -80px;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,160,32,0.10) 0%, transparent 70%);
  pointer-events: none;
}

.rascue-hero-content {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.rascue-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--primary-light);
  color: var(--primary);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
  letter-spacing: 0.01em;
}

.rascue-hero-h1 {
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.rascue-highlight { color: var(--primary); }
.rascue-dim { color: var(--muted-fg); font-weight: 500; }

.rascue-hero-desc {
  font-size: 1rem;
  color: var(--muted-fg);
  line-height: 1.7;
  max-width: 580px;
  margin: 0 auto 1.5rem;
}

/* ── Chat entry trigger ── */
.rascue-chat-entry {
  max-width: 620px;
  margin: 0 auto 0;
}

.rascue-chat-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: white;
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 14px 14px 14px 20px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.rascue-chat-box:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 32px rgba(11,59,58,0.12);
  transform: translateY(-1px);
}

.rascue-chat-placeholder {
  font-size: 1rem;
  color: #b0a99f;
  font-family: inherit;
  pointer-events: none;
  user-select: none;
}

.rascue-chat-send {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cta);
  color: var(--cta-fg);
  border: none;
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: background 0.15s;
}

.rascue-chat-send:hover  { background: var(--cta-hover); }
.rascue-chat-send svg { stroke: var(--cta-fg); }

.rascue-chat-hint {
  font-size: 12px;
  color: var(--muted-fg);
  text-align: center;
  margin-top: 10px;
  line-height: 1.5;
}
/* ── Pre-chat label + description ── */
.rascue-chat-pre {
  margin-bottom: 10px;
  text-align: left;
}

.rascue-chat-pre-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 2px;
}

.rascue-chat-pre-desc {
  font-size: 0.82rem;
  color: var(--muted-fg);
  line-height: 1.5;
}

/* ── Sub hint below chat box ── */
.rascue-chat-sub-hint {
  font-size: 0.82rem;
  color: var(--primary);
  text-align: center;
  margin-top: 5px;
  font-weight: 600;
  font-style: italic;
}

/* ── Hero eyebrow ── */
.rascue-hero-eyebrow {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.6rem;
  letter-spacing: 0.01em;
}

/* ── Hero feelings row ── */
.rascue-hero-feelings {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 4px;
  margin: 0 auto 1.4rem;
  max-width: 620px;
  font-size: 0.9rem;
  color: var(--muted-fg);
  line-height: 1.6;
}

.rascue-feelings-sep {
  color: var(--primary);
  font-weight: 700;
  opacity: 0.4;
  padding: 0 2px;
}

@media (max-width: 600px) {
  .rascue-hero-feelings {
    flex-direction: column;
    gap: 6px;
  }
  .rascue-feelings-sep {
    display: none;
  }
  .rascue-hero-feelings span {
    display: block;
    width: 100%;
  }
}


/* ── How it works steps ── */
.rascue-section { padding: 4rem 0; }
.rascue-section-warm { background: var(--warm); }

.rascue-section-header {
  max-width: 680px;
  margin-bottom: 2.5rem;
}

.rascue-section-header.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.rascue-section-label {
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  display: block;
  margin-bottom: 0.7rem;
}

.rascue-section-label.label-secondary { color: #b87918; }

.rascue-section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 0.8rem;
}

.rascue-section-desc {
  font-size: 1rem;
  color: var(--muted-fg);
  line-height: 1.7;
}

.rascue-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto;
}

.rascue-step {
  background: white;
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid rgba(229,224,216,0.6);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.rascue-step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  flex-shrink: 0;
}

.rascue-step-body h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.rascue-step-body p {
  font-size: 0.9rem;
  color: var(--muted-fg);
  line-height: 1.65;
  margin: 0;
}

@media (max-width: 768px) {
  .rascue-steps { grid-template-columns: 1fr; }
}

/* ── Provider strip ── */
.rascue-provider-strip {
  background: var(--primary);
  padding: 2.5rem 0;
}

.rascue-provider-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.rascue-provider-strip h3 {
  font-size: 1.2rem;
  color: white;
  margin-bottom: 0.35rem;
}

.rascue-provider-strip p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.78);
  max-width: 540px;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 640px) {
  .rascue-provider-strip-inner { flex-direction: column; text-align: center; }
  .rascue-hero { padding: 2.5rem 0 3rem; }
  .container { padding: 0 1.25rem; }
}

/* ─── 3-column portals grid ─── */
.portals-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 960px) {
    .portals-grid-3 { grid-template-columns: 1fr; }
}

/* ─── CrewCare portal card ─── */
.portal-card.crewcare {
    background: linear-gradient(135deg, #0B3B3A, #0f5250);
    color: white;
    position: relative;
    opacity: 0.92;
}

.portal-card.crewcare h3,
.portal-card.crewcare p,
.portal-card.crewcare .portal-features li {
    color: rgba(255,255,255,0.95);
}

.portal-coming-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #E8A020;
    color: #1a0f00;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.portal-btn-muted {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.15);
    opacity: 0.85;
}

.portal-btn-muted:hover {
    background: rgba(255,255,255,0.15);
    opacity: 1;
}


/* ======================================================
   PART 2 — CHAT MODAL + AUTH MODAL
   ====================================================== */

/* ── Body lock when modal open ── */
body.rascue-modal-open { overflow: hidden; }

/* Rascue Chat Modal CSS — loaded on rascue.de alongside rascue-main.css */
/* Extracted from rascue-help.css — chat modal, auth modal, voice, emergency banner */

/* CHAT MODAL */
.rascue-modal-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.55);
  z-index: 99999;
  padding: 1rem;
  align-items: center;
  justify-content: center;
  /* Ensure it covers full screen including safe areas */
  padding-top: max(1rem, env(safe-area-inset-top, 1rem));
  padding-bottom: max(1rem, env(safe-area-inset-bottom, 1rem));
}

.rascue-modal-backdrop.open { display: flex; }

.rascue-modal-card {
  width: min(980px, 100%);
  max-height: 92vh;
  max-height: 92dvh;
  overflow: hidden;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.22);
  position: relative;
}

/* Mobile: modal fills full screen, never cuts off at top */
@media (max-width: 640px) {
  .rascue-modal-backdrop {
    align-items: flex-start;
    padding: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .rascue-modal-card {
    width: 100%;
    min-height: 100svh;
    max-height: none;
    border-radius: 0;
    margin: 0;
  }
}

.rascue-modal-close {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--muted-fg);
  cursor: pointer;
  font-size: 22px;
  line-height: 42px;
  text-align: center;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rascue-chat-shell {
  display: grid;
  grid-template-columns: 300px 1fr;
  min-height: 680px;
  max-height: 92vh;
}

.rascue-chat-sidebar {
  background: linear-gradient(180deg, var(--primary) 0%, #115c5a 100%);
  color: #fff;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.rascue-chat-sidebar-badge {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.rascue-chat-sidebar h2 {
  color: #fff;
  margin: 0 0 1rem;
  font-size: 2rem;
}

.rascue-chat-sidebar p {
  color: rgba(255,255,255,0.9);
  margin: 0;
  line-height: 1.7;
}

.rascue-chat-sidebar-note {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.8);
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1rem;
}

.rascue-chat-main {
  background: #fff;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.rascue-chat-header {
  padding: 1.4rem 1.5rem 1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(245,247,246,0.6);
}

.rascue-chat-header h3 { margin: 0 0 0.3rem; }
.rascue-chat-header p { margin: 0; color: var(--muted-fg); }

.rascue-messages {
  flex: 1;
  min-height: 320px;
  max-height: 420px;
  overflow-y: auto;
  margin-bottom: 15px;
  padding: 1rem;
  background: #fafafa;
}

.rascue-message {
  display: block;
  width: 100%;
  max-width: 78%;
  padding: 12px 16px;
  margin-bottom: 14px;
  border-radius: 12px;
  font-size: 15px;
  line-height: 1.5;
  box-sizing: border-box;
  white-space: pre-wrap;
  word-break: break-word;
}

.rascue-message.user {
  background: #e3f5ec;
  border-left: 4px solid var(--primary);
  margin-left: auto;
}

.rascue-message.bot {
  background: white;
  border-left: 4px solid #ccc;
  margin-right: auto;
}

.rascue-message strong {
  display: block;
  font-size: 12px;
  color: var(--muted-fg);
  margin-bottom: 4px;
}

.rascue-typing {
  font-size: 14px;
  color: var(--muted-fg);
  margin-bottom: 10px;
  padding: 0 1.25rem;
}

.rascue-chat-controls {
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid var(--border);
  background: #fff;
}

.rascue-input-row {
  display: flex;
  gap: 10px;
}

.rascue-input {
  flex: 1;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 15px;
  font-family: inherit;
}

.rascue-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(11,59,58,0.08);
}

.rascue-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background: #E8A020;
  color: #1a0f00;
  font-family: inherit;
  transition: background 0.15s;
}

.rascue-btn:hover { background: #d4901a; }

.rascue-btn.light {
  background: #e9ecef;
  color: #333;
}

.rascue-btn.light:hover { background: #dee2e6; }

.rascue-btn.secondary {
  background: #6c757d;
  color: #fff;
}

.rascue-btn.danger {
  background: var(--destructive);
  color: #fff;
}

.rascue-actions {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.rascue-register-box {
  margin-top: 16px;
  padding: 15px;
  border: 1px dashed var(--border);
  border-radius: 10px;
  background: #fafafa;
}

.rascue-register-box p { margin: 0 0 10px; }

.rascue-footer {
  margin-top: 16px;
  text-align: center;
  font-size: 13px;
  color: var(--muted-fg);
}

.rascue-footer-toggle {
  cursor: pointer;
  text-decoration: underline;
}

.rascue-footer-box {
  margin-top: 8px;
  padding: 12px;
  background: #f9f9f9;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
}

.rascue-footer-box a { color: var(--primary); }

/* AUTH MODAL */
.rascue-auth-modal-card {
  background: white;
  padding: 32px;
  border-radius: var(--radius);
  width: 100%;
  max-width: 420px;
  max-height: 92vh;
  max-height: 92dvh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.rascue-auth-modal-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

#authModalContext {
  display: none;
  margin-bottom: 16px;
  padding: 10px 14px;
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 8px;
  font-size: 13px;
  color: #166534;
  line-height: 1.5;
}

.rascue-modal-subtitle {
  font-size: 14px;
  color: #667085;
  margin: 0 0 20px;
  line-height: 1.5;
}

.rascue-auth-modal-card input[type="text"],
.rascue-auth-modal-card input[type="email"],
.rascue-auth-modal-card input[type="password"] {
  width: 100%;
  padding: 13px 16px;
  margin-bottom: 12px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  font-size: 15px;
  font-family: inherit;
  background: #f9f9f9;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.rascue-auth-modal-card input:focus {
  border-color: var(--primary);
  background: white;
  outline: none;
  box-shadow: 0 0 0 3px rgba(11,59,58,0.08);
}

.rascue-consent {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--muted-fg);
  margin: 0 0 16px;
  cursor: pointer;
}

.rascue-consent input { margin-top: 2px; accent-color: var(--primary); }

.rascue-switch {
  text-align: center;
  margin-top: 12px;
}

.rascue-link-btn {
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
  font-weight: 600;
}

.rascue-modal-message {
  margin-top: 10px;
  min-height: 1.2em;
  color: var(--destructive);
  font-size: 14px;
  text-align: center;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .rascue-help-page .benefits-grid,
  #rascue-main-page .benefits-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .rascue-help-page .support-grid,
  #rascue-main-page .support-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .rascue-help-page .trust-grid,
  #rascue-main-page .trust-grid { grid-template-columns: 1fr; }
  .rascue-chat-shell { grid-template-columns: 1fr; }
  .rascue-chat-sidebar { display: none; }
}

@media (max-width: 860px) {
  .rascue-help-page .nav-links { display: none; }
  .rascue-help-page .hamburger { display: block; }
}

@media (max-width: 840px) {
  .rascue-help-page .problem-grid,
  #rascue-main-page .problem-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .rascue-help-page .hero-cards,
  #rascue-main-page .hero-cards { grid-template-columns: 1fr; }
  .rascue-help-page .hero-buttons,
  #rascue-main-page .hero-buttons { flex-direction: column; }
  .rascue-help-page .hero-buttons .btn { width: 100%; }
}

@media (max-width: 640px) {
  .rascue-help-page .benefits-grid,
  #rascue-main-page .benefits-grid { grid-template-columns: 1fr; }
  .rascue-help-page .cta-box { padding: 3rem 1.4rem; }
  .rascue-input-row { flex-direction: column; }
  .rascue-btn { width: 100%; }
  .rascue-modal-backdrop { padding: 0; align-items: flex-end; }
  .rascue-modal-card {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    border-radius: 0;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  .rascue-chat-shell {
    min-height: 0;
    flex: 1;
    overflow: hidden;
    display: flex;
  }
  .rascue-auth-modal-card {
    width: 100%;
    max-width: none;
    max-height: 92dvh;
    border-radius: 16px 16px 0 0;
    padding-top: calc(env(safe-area-inset-top, 0px) + 20px);
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 24px);
    overflow-y: auto;
    margin-top: auto;
  }
  .rascue-messages { min-height: 200px; max-height: 40dvh; }
}

/* ======================================================
SYSTEM MESSAGES (match cards, resume box)
====================================================== */

.rascue-system-message {
  width: 100%;
  margin: 12px 0;
}

/* ======================================================
MATCH CARDS
====================================================== */

.rascue-matches-wrap {
  background: var(--accent);
  border: 1px solid var(--primary-border);
  border-radius: 12px;
  padding: 16px;
}

.rascue-matches-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.rascue-matches-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rascue-match-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  transition: box-shadow 0.2s;
}

.rascue-match-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.rascue-match-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.rascue-match-avatar {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--primary);
  color: white;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rascue-match-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--fg);
}

.rascue-match-city {
  font-size: 12px;
  color: var(--muted-fg);
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 2px;
}

.rascue-match-score {
  margin-left: auto;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  padding: 3px 8px;
  border-radius: 99px;
  flex-shrink: 0;
}

.rascue-match-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 8px;
}

.rascue-match-tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 99px;
  background: var(--accent);
  color: var(--primary);
  border: 1px solid var(--primary-border);
  font-weight: 500;
}

.rascue-match-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: var(--muted-fg);
  margin-bottom: 12px;
}

.rascue-request-btn {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: none;
  background: var(--primary);
  color: white;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}

.rascue-request-btn:hover { background: #082f2e; }

.rascue-request-btn:disabled {
  background: var(--muted);
  color: var(--muted-fg);
  cursor: default;
}

.rascue-request-btn.sent {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

.rascue-matches-note {
  font-size: 11px;
  color: var(--muted-fg);
  text-align: center;
  margin: 10px 0 0;
  line-height: 1.5;
}

/* ======================================================
RESUME BOX
====================================================== */

.rascue-resume-box {
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  font-size: 14px;
}

.rascue-resume-box strong {
  font-size: 15px;
  color: var(--fg);
}

.rascue-resume-box p {
  color: var(--muted-fg);
  margin: 6px 0 0;
  line-height: 1.5;
}

/* ======================================================
CHAT HEADER — login link always visible
====================================================== */

.rascue-chat-header-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.rascue-chat-header-top h3 { margin: 0 0 0.3rem; }
.rascue-chat-header-top p  { margin: 0; color: var(--muted-fg); font-size: 13px; }

.rascue-chat-login-link {
    display: flex;
    align-items: center;
    gap: 5px;
    background: var(--primary-light);
    border: 1px solid var(--primary-border);
    color: var(--primary);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.15s;
}

.rascue-chat-login-link:hover {
    background: var(--primary);
    color: white;
}

/* ======================================================
CHAT HEADER TOP — fix button overflow
====================================================== */

.rascue-chat-header {
    padding: 16px 20px 12px;
    border-bottom: 1px solid var(--border);
}

.rascue-chat-header-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.rascue-chat-header-top > div { flex: 1; min-width: 0; }

.rascue-chat-header-top h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 4px;
    white-space: nowrap;
}

.rascue-chat-header-top > div > p {
    font-size: 12px;
    color: var(--muted-fg);
    margin: 0;
    line-height: 1.4;
}

.rascue-chat-login-link {
    display: flex;
    align-items: center;
    gap: 5px;
    background: var(--primary-light, rgba(11,59,58,0.08));
    border: 1px solid var(--primary-border, rgba(11,59,58,0.18));
    color: var(--primary, #0B3B3A);
    border-radius: 8px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.15s;
}

.rascue-chat-login-link:hover {
    background: var(--primary, #0B3B3A);
    color: white;
}

/* Mobile — stack vertically */
@media (max-width: 480px) {
    .rascue-chat-header-top {
        flex-direction: column;
        gap: 8px;
    }
    .rascue-chat-login-link {
        align-self: flex-start;
    }
}

/* ======================================================
CHAT HEADER — top action buttons
====================================================== */

.rascue-chat-header {
    padding: 14px 20px 12px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.rascue-chat-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.rascue-chat-header-text { flex: 1; min-width: 0; }
.rascue-chat-header-text h3 { font-size: 15px; font-weight: 700; margin: 0 0 2px; }
.rascue-chat-header-text p  { font-size: 11px; color: var(--muted-fg); margin: 0; line-height: 1.4; }

.rascue-chat-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.rascue-chat-top-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    transition: all 0.15s;
    border: 1px solid var(--primary-border, rgba(11,59,58,0.18));
    background: var(--primary-light, rgba(11,59,58,0.07));
    color: var(--primary, #0B3B3A);
}

.rascue-chat-top-btn:hover {
    background: var(--primary, #0B3B3A);
    color: white;
}

.rascue-chat-top-btn.logout {
    border-color: rgba(214,69,69,0.25);
    background: rgba(214,69,69,0.07);
    color: #b91c1c;
}

.rascue-chat-top-btn.logout:hover {
    background: #b91c1c;
    color: white;
}

.rascue-chat-top-btn.account {
    border-color: rgba(11,59,58,0.18);
    background: var(--primary-light, rgba(11,59,58,0.07));
    color: var(--primary, #0B3B3A);
}

/* ======================================================
REGISTRATION BANNER
====================================================== */

.rascue-reg-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 10px 16px;
    background: linear-gradient(135deg, rgba(11,59,58,0.06), rgba(118,214,200,0.12));
    border-bottom: 1px solid rgba(11,59,58,0.12);
    flex-shrink: 0;
}

.rascue-reg-banner-text {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    flex: 1;
    min-width: 0;
    font-size: 12px;
    color: var(--primary, #0B3B3A);
    line-height: 1.5;
}

.rascue-reg-banner-text svg {
    flex-shrink: 0;
    margin-top: 1px;
    color: var(--primary, #0B3B3A);
}

.rascue-reg-banner-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.rascue-banner-btn {
    padding: 5px 12px;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    transition: all 0.15s;
}

.rascue-banner-btn.primary {
    background: var(--primary, #0B3B3A);
    color: white;
    border: none;
}

.rascue-banner-btn.primary:hover { background: #082f2e; }

.rascue-banner-btn.ghost {
    background: transparent;
    color: var(--primary, #0B3B3A);
    border: 1px solid var(--primary-border, rgba(11,59,58,0.25));
}

.rascue-banner-btn.ghost:hover {
    background: var(--primary-light, rgba(11,59,58,0.07));
}

@media (max-width: 480px) {
    .rascue-reg-banner { flex-direction: column; align-items: flex-start; }
    .rascue-chat-header-text p { display: none; }
}

/* ======================================================
MATCH CARDS — intermediary model
====================================================== */

.rascue-match-card-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.rascue-match-note {
    font-size: 11px;
    color: var(--muted-fg);
    font-style: italic;
}

.rascue-match-status-badge {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 99px;
}

.rascue-match-status-badge.requested {
    background: rgba(11,59,58,0.08);
    color: var(--primary, #0B3B3A);
}

.rascue-match-status-badge.accepted {
    background: #f0fdf4;
    color: #16a34a;
}

.rascue-match-status-badge.declined {
    background: #fef2f2;
    color: #b91c1c;
}

/* ======================================================
MATCH CARD FOOTER + INTERMEDIARY NOTE
====================================================== */

.rascue-match-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border, #e5e0d8);
}

.rascue-request-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--primary, #0B3B3A);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
    white-space: nowrap;
}

.rascue-request-btn:hover:not(:disabled) { background: #082f2e; }

.rascue-request-btn:disabled,
.rascue-request-btn.sent {
    background: #f0fdf4;
    color: #16a34a;
    cursor: default;
}

.rascue-match-intermediary {
    font-size: 11px;
    color: var(--muted-fg, #667085);
    font-style: italic;
    line-height: 1.4;
}

.rascue-matches-note {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 11px;
    color: var(--muted-fg, #667085);
    margin: 10px 0 0;
    line-height: 1.5;
    padding: 8px 10px;
    background: var(--primary-light, rgba(11,59,58,0.06));
    border-radius: 8px;
}

.rascue-matches-note svg { flex-shrink: 0; margin-top: 1px; }

/* ======================================================
ABMELDEN BUTTON FIX — override browser default blue
====================================================== */

button.rascue-chat-top-btn.logout,
#chatLogoutLink {
    background: rgba(214,69,69,0.08) !important;
    color: #b91c1c !important;
    border: 1px solid rgba(214,69,69,0.25) !important;
    border-radius: 7px !important;
    padding: 5px 10px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    font-family: inherit !important;
}

button.rascue-chat-top-btn.logout:hover,
#chatLogoutLink:hover {
    background: #b91c1c !important;
    color: white !important;
}

button.rascue-chat-top-btn.account,
#chatAccountLink {
    background: rgba(11,59,58,0.07) !important;
    color: #0B3B3A !important;
    border: 1px solid rgba(11,59,58,0.18) !important;
    border-radius: 7px !important;
    padding: 5px 10px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    font-family: inherit !important;
}

button.rascue-chat-top-btn.account:hover,
#chatAccountLink:hover {
    background: #0B3B3A !important;
    color: white !important;
}

/* ======================================================
RESUME DIVIDER
====================================================== */

.rascue-resume-divider {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--muted-fg, #667085);
    padding: 8px 0;
    position: relative;
    margin: 8px 0;
}

.rascue-resume-divider::before,
.rascue-resume-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 35%;
    height: 1px;
    background: var(--border, #e5e0d8);
}

.rascue-resume-divider::before { left: 0; }
.rascue-resume-divider::after  { right: 0; }

/* ======================================================
ACCOUNT PAGE — transcript message colors
====================================================== */

.ha-transcript-msg.user {
    background: #f0fdf4 !important;
}

.ha-transcript-msg.assistant {
    background: #f8fafc !important;
}

/* ======================================================
AUTH MODAL IMPROVEMENTS
====================================================== */

.rascue-modal-subtitle {
    font-size: 13px;
    color: var(--muted-fg, #667085);
    margin: -8px 0 16px;
    line-height: 1.5;
}

.rascue-input-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}

.rascue-input-field input {
    margin-bottom: 0 !important;
}

.rascue-field-error {
    font-size: 11px;
    color: #b91c1c;
    font-weight: 500;
    padding: 0 2px;
}

.rascue-password-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.rascue-password-wrap input {
    width: 100%;
    padding-right: 40px !important;
}

.rascue-pw-toggle {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--muted-fg, #667085);
    padding: 4px;
    display: flex;
    align-items: center;
    transition: color 0.15s;
}

.rascue-pw-toggle:hover { color: var(--primary, #0B3B3A); }

/* ======================================================
ASTRA OVERRIDE — chat modal buttons high specificity
====================================================== */

#rascue-help-page #chatLoginLink,
#rascue-main-page #chatLoginLink,
#rascue-help-page #chatLoginLink:focus,
#rascue-main-page #chatLoginLink:focus {
    background: rgba(11,59,58,0.07) !important;
    color: #0B3B3A !important;
    border: 1px solid rgba(11,59,58,0.18) !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    box-shadow: none !important;
}

#rascue-help-page #chatLoginLink:hover,
#rascue-main-page #chatLoginLink:hover {
    background: #0B3B3A !important;
    color: white !important;
}

#rascue-help-page #chatAccountLink,
#rascue-main-page #chatAccountLink,
#rascue-help-page #chatAccountLink:focus,
#rascue-main-page #chatAccountLink:focus {
    background: rgba(11,59,58,0.07) !important;
    color: #0B3B3A !important;
    border: 1px solid rgba(11,59,58,0.18) !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    box-shadow: none !important;
}

#rascue-help-page #chatAccountLink:hover,
#rascue-main-page #chatAccountLink:hover {
    background: #0B3B3A !important;
    color: white !important;
}

#rascue-help-page #chatLogoutLink,
#rascue-main-page #chatLogoutLink,
#rascue-help-page #chatLogoutLink:focus,
#rascue-main-page #chatLogoutLink:focus {
    background: rgba(214,69,69,0.08) !important;
    color: #b91c1c !important;
    border: 1px solid rgba(214,69,69,0.25) !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    box-shadow: none !important;
}

#rascue-help-page #chatLogoutLink:hover,
#rascue-main-page #chatLogoutLink:hover {
    background: #b91c1c !important;
    color: white !important;
}

/* ======================================================
MIC BUTTON — voice recording (pill style)
====================================================== */

.rascue-input-pill {
    background: white;
    border: 1.5px solid var(--border, #e5e0d8);
    border-radius: 16px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rascue-input-pill .rascue-input {
    border: none !important;
    background: transparent !important;
    padding: 4px 8px !important;
    border-radius: 0 !important;
    flex: 1;
    width: 100%;
    font-size: 15px !important;
}

.rascue-input-pill-actions {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.rascue-input-pill .rascue-btn {
    border-radius: 99px !important;
    padding: 10px 20px !important;
    font-size: 14px !important;
    flex: 1;
    height: 42px;
}

.rascue-mic-pill-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 20px;
    height: 42px;
    border-radius: 99px;
    background: var(--primary, #0B3B3A);
    color: white;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s, transform 0.1s;
    white-space: nowrap;
    user-select: none;
    -webkit-user-select: none;
}

.rascue-mic-pill-btn:active {
    transform: scale(0.97);
    background: #b91c1c;
}

.rascue-mic-pill-btn.recording {
    background: #b91c1c;
    animation: pulse-mic 1s infinite;
}

@keyframes pulse-mic {
    0%, 100% { box-shadow: 0 0 0 0 rgba(185,28,28,0.3); }
    50%       { box-shadow: 0 0 0 6px rgba(185,28,28,0); }
}

/* ======================================================
ASTRA FULL WIDTH OVERRIDE — help.rascue.de
====================================================== */
#masthead, .site-header, header.site-header,
.ast-above-header-bar, .ast-below-header-bar { display: none !important; }

#page, .site, #content, .site-content,
#primary, .ast-container, .entry-content,
article, .post {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ======================================================
EMERGENCY BANNER — shown when AI detects life-threatening situation
====================================================== */
.rascue-emergency-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #fff1f1;
  border: 2.5px solid #e53e3e;
  border-radius: 16px;
  padding: 18px 20px;
  margin: 12px 0;
  animation: rascue-emergency-pulse 2s ease-in-out 3;
}

@keyframes rascue-emergency-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(229, 62, 62, 0); }
  50%       { box-shadow: 0 0 0 8px rgba(229, 62, 62, 0.15); }
}

.rascue-emergency-icon {
  font-size: 28px;
  flex-shrink: 0;
  margin-top: 2px;
}

.rascue-emergency-body {
  flex: 1;
}

.rascue-emergency-title {
  font-size: 1rem;
  font-weight: 700;
  color: #c53030;
  margin: 0 0 4px;
  line-height: 1.3;
}

.rascue-emergency-sub {
  font-size: 0.85rem;
  color: #744210;
  margin: 0 0 14px;
  line-height: 1.5;
}

.rascue-emergency-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #e53e3e;
  color: white !important;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 99px;
  text-decoration: none !important;
  letter-spacing: 0.02em;
  transition: background 0.15s;
}

.rascue-emergency-btn:hover {
  background: #c53030;
}

.rascue-emergency-note {
  font-size: 0.75rem;
  color: #9ca3af;
  margin: 10px 0 0;
}

@media (max-width: 480px) {
  .rascue-emergency-banner {
    flex-direction: column;
    gap: 8px;
  }
  .rascue-emergency-btn {
    width: 100%;
    justify-content: center;
    font-size: 1.1rem;
    padding: 14px;
  }
}


/* ======================================================
UNIFIED AUTH FORM TOKENS — used across login, register,
forgot password and password reset forms
====================================================== */

/* ── Input ── */
.rh-input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #e5e0d8;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    background: #f9f9f9;
    color: #1a1f2e;
    box-sizing: border-box;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
    display: block;
    margin: 0;
}

.rh-input:focus {
    border-color: var(--primary, #0B3B3A);
    background: white;
    outline: none;
    box-shadow: 0 0 0 3px rgba(11,59,58,0.08);
}

/* Password wrap */
.rh-password-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.rh-password-wrap .rh-input {
    padding-right: 42px;
}

.rh-pw-toggle {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    padding: 4px;
    display: flex;
    align-items: center;
    transition: color 0.15s;
}
.rh-pw-toggle:hover { color: var(--primary, #0B3B3A); }

/* Field wrapper with error */
.rh-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}

.rh-field label {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
}

.rh-field-error {
    font-size: 11px;
    color: #b91c1c;
    font-weight: 500;
    padding: 0 2px;
    display: none;
}

/* Submit button */
.rh-btn {
    width: 100%;
    background: #E8A020;
    color: #1a0f00;
    border: none;
    padding: 13px;
    border-radius: 99px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    margin-bottom: 8px;
    transition: opacity 0.15s, transform 0.1s;
}
.rh-btn:hover  { opacity: 0.92; }
.rh-btn:active { transform: scale(0.99); }
.rh-btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* Teal variant available if needed elsewhere */
.rh-btn-primary {
    background: var(--primary, #0B3B3A);
    color: white;
}

/* Heading */
.rh-form-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1f2e;
    margin: 0 0 4px;
}

/* Subtitle */
.rh-form-sub {
    font-size: 13px;
    color: #667085;
    margin: 0 0 18px;
    line-height: 1.5;
}

/* Status/message */
.rh-form-msg {
    font-size: 12px;
    margin: 4px 0;
    text-align: center;
    min-height: 18px;
}

/* Strength bar */
.rh-strength-bar {
    display: flex;
    gap: 3px;
    flex: 1;
}

.rh-strength-seg {
    flex: 1;
    height: 4px;
    border-radius: 99px;
    background: #e5e0d8;
    transition: background 0.2s;
}

.rh-strength-label {
    font-size: 11px;
    color: #667085;
    margin: 0;
    white-space: nowrap;
}

/* Back link */
.rh-back-link {
    background: none;
    border: none;
    color: #667085;
    font-size: 13px;
    cursor: pointer;
    padding: 4px 0;
    text-decoration: underline;
    font-family: inherit;
    width: 100%;
    text-align: center;
    display: block;
    margin-top: 4px;
}
.rh-back-link:hover { color: #374151; }

/* Override old auth-modal-card inputs to use same tokens */
.rascue-auth-modal-card input[type="text"],
.rascue-auth-modal-card input[type="email"],
.rascue-auth-modal-card input[type="password"] {
    padding: 12px 14px;
    font-size: 14px;
    background: #f9f9f9;
    border: 1.5px solid #e5e0d8;
    margin-bottom: 0;
}

.rascue-auth-modal-card input:focus {
    border-color: var(--primary, #0B3B3A);
    background: white;
    box-shadow: 0 0 0 3px rgba(11,59,58,0.08);
}

/* Consistent spacing for all field wrappers in auth modal */
.rascue-auth-modal-card .rascue-input-field,
.rascue-auth-modal-card #nameRow {
    margin-bottom: 12px;
}


/* ======================================================
   PART 3 — ACCOUNT PAGE (/meine-hilfe)
   ====================================================== */

.rascue-account-page {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #f8f6f2;
    overflow: hidden;
}

.rascue-account-page .help-account-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    height: 60px;
}

.ha-dashboard {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    overflow: hidden;
}

.ha-sidebar {
    width: 240px;
    flex-shrink: 0;
    background: white;
    border-right: 1px solid var(--ha-border, #e5e0d8);
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    height: 100%;
    overflow-y: auto;
}

.ha-main {
    flex: 1;
    padding: 32px;
    overflow-y: auto;
    height: 100%;
}

/* ======================================================
HELP SEEKER ACCOUNT PAGE
====================================================== */

:root {
    --ha-primary:       #0B3B3A;
    --ha-primary-light: rgba(11,59,58,0.08);
    --ha-primary-border:rgba(11,59,58,0.18);
    --ha-teal:          #76D6C8;
    --ha-bg:            #faf8f5;
    --ha-warm:          #f7f0e8;
    --ha-card:          #ffffff;
    --ha-border:        #e5e0d8;
    --ha-text:          #1a1f2e;
    --ha-muted:         #667085;
    --ha-danger:        #d64545;
    --ha-radius:        1rem;
    --ha-shadow:        0 4px 24px rgba(0,0,0,0.06);
    --ha-shadow-lg:     0 8px 40px rgba(0,0,0,0.10);
}

.rascue-account-page {
    min-height: 100vh;
    background: var(--ha-bg);
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--ha-text);
    -webkit-font-smoothing: antialiased;
}

.rascue-account-page * { box-sizing: border-box; }

/* ── NAV ── */
.help-account-nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(250,248,245,0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(229,224,216,0.6);
}

.help-account-nav-inner {
    max-width: 860px; margin: 0 auto;
    padding: 0 1.5rem; height: 64px;
    display: flex; align-items: center;
    justify-content: space-between;
}

.help-account-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700; font-size: 1.3rem;
    letter-spacing: -0.03em; color: var(--ha-primary);
    text-decoration: none; display: flex;
    align-items: center; gap: 8px;
}

.logo-primary { color: var(--ha-primary); }

.logo-badge {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.68rem; font-weight: 700;
    background: var(--ha-teal); color: var(--ha-primary);
    padding: 0.2rem 0.5rem; border-radius: 999px;
}

.help-account-nav-actions {
    display: flex; align-items: center; gap: 12px;
}

.help-account-home-link {
    display: flex; align-items: center; gap: 5px;
    font-size: 13px; font-weight: 500;
    color: var(--ha-muted); text-decoration: none;
    transition: color 0.15s;
}

.help-account-home-link:hover { color: var(--ha-text); }

.help-account-logout-btn {
    display: flex; align-items: center; gap: 6px;
    background: none; border: 1px solid var(--ha-border);
    border-radius: 8px; padding: 7px 12px;
    font-size: 13px; font-weight: 500;
    color: var(--ha-muted); cursor: pointer;
    font-family: inherit; transition: all 0.15s;
}

.help-account-logout-btn:hover {
    border-color: var(--ha-danger);
    color: var(--ha-danger);
}

/* ── MAIN ── */
.help-account-main {
    max-width: 860px; margin: 0 auto;
    padding: 2.5rem 1.5rem 5rem;
}

/* ── LOADING ── */
.help-account-loading {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 6rem 0; gap: 16px; color: var(--ha-muted);
}

.help-account-spinner {
    width: 36px; height: 36px; border-radius: 50%;
    border: 3px solid var(--ha-border);
    border-top-color: var(--ha-primary);
    animation: ha-spin 0.8s linear infinite;
}

@keyframes ha-spin { to { transform: rotate(360deg); } }

/* ── HEADER ── */
.help-account-header {
    display: flex; align-items: flex-start;
    justify-content: space-between; gap: 1.5rem;
    margin-bottom: 2rem; flex-wrap: wrap;
}

.help-account-header h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700; color: var(--ha-primary);
    margin: 0 0 0.4rem; letter-spacing: -0.02em;
}

.help-account-header p {
    font-size: 0.95rem; color: var(--ha-muted);
    line-height: 1.65; margin: 0; max-width: 520px;
}

.help-account-new-btn {
    display: inline-flex; align-items: center; gap: 7px;
    background: var(--ha-primary); color: white;
    border: none; border-radius: 9999px;
    padding: 0.75rem 1.4rem; font-size: 14px;
    font-weight: 600; cursor: pointer;
    font-family: inherit; white-space: nowrap;
    transition: all 0.2s;
    flex-shrink: 0;
}

.help-account-new-btn:hover {
    background: #082f2e;
    transform: translateY(-1px);
}

/* ── EMPTY STATE ── */
.help-account-empty {
    text-align: center; padding: 4rem 2rem;
    background: var(--ha-card); border-radius: var(--ha-radius);
    border: 1px dashed var(--ha-border);
}

.help-account-empty-icon {
    width: 80px; height: 80px; border-radius: 50%;
    background: var(--ha-primary-light);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.5rem; color: var(--ha-primary);
}

.help-account-empty h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem; margin-bottom: 0.75rem; color: var(--ha-text);
}

.help-account-empty p {
    font-size: 0.95rem; color: var(--ha-muted);
    max-width: 420px; margin: 0 auto 1.75rem; line-height: 1.7;
}

/* ── CHAT LIST ── */
.help-account-list {
    display: flex; flex-direction: column; gap: 16px;
}

/* ── CHAT CARD ── */
.ha-chat-card {
    background: var(--ha-card);
    border: 1px solid var(--ha-border);
    border-radius: var(--ha-radius);
    padding: 20px 24px;
    box-shadow: var(--ha-shadow);
    transition: all 0.2s;
}

.ha-chat-card:hover {
    border-color: var(--ha-primary-border);
    box-shadow: var(--ha-shadow-lg);
    transform: translateY(-1px);
}

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

.ha-chat-meta {
    display: flex; flex-direction: column; gap: 4px;
}

.ha-chat-date {
    font-size: 12px; color: var(--ha-muted); font-weight: 500;
}

.ha-chat-badges {
    display: flex; gap: 6px; flex-wrap: wrap;
}

.ha-badge {
    font-size: 11px; font-weight: 600; padding: 3px 8px;
    border-radius: 99px;
}

.ha-badge.problem {
    background: var(--ha-primary-light);
    color: var(--ha-primary);
    border: 1px solid var(--ha-primary-border);
}

.ha-badge.urgency-high   { background: #fef2f2; color: #b91c1c; border: 1px solid #fca5a5; }
.ha-badge.urgency-medium { background: #fff7ed; color: #b45309; border: 1px solid #fed7aa; }
.ha-badge.urgency-low    { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }

.ha-badge.matched  { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }
.ha-badge.pending  { background: #fff7ed; color: #b45309; border: 1px solid #fed7aa; }

/* SUMMARY */
.ha-chat-summary {
    font-size: 14px; color: var(--ha-text);
    line-height: 1.65; margin-bottom: 14px;
    padding: 12px 14px;
    background: var(--ha-warm);
    border-radius: 8px;
    border-left: 3px solid var(--ha-teal);
}

.ha-chat-summary-empty {
    font-size: 13px; color: var(--ha-muted);
    font-style: italic; margin-bottom: 14px;
}

/* EXPAND TRANSCRIPT */
.ha-expand-btn {
    display: inline-flex; align-items: center; gap: 5px;
    background: none; border: none; cursor: pointer;
    font-size: 12px; font-weight: 600;
    color: var(--ha-muted); font-family: inherit;
    padding: 0; transition: color 0.15s; margin-bottom: 10px;
}

.ha-expand-btn:hover { color: var(--ha-primary); }

.ha-transcript {
    display: none;
    max-height: 320px; overflow-y: auto;
    border: 1px solid var(--ha-border);
    border-radius: 8px; margin-bottom: 12px;
    background: #fafafa;
}

.ha-transcript.open { display: block; }

.ha-transcript-msg {
    padding: 10px 14px;
    border-bottom: 1px solid var(--ha-border);
    font-size: 13px; line-height: 1.55;
}

.ha-transcript-msg:last-child { border-bottom: none; }

.ha-transcript-msg .ha-msg-role {
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.06em;
    margin-bottom: 4px;
}

.ha-transcript-msg.user { background: #f0fdf4; }
.ha-transcript-msg.user .ha-msg-role { color: var(--ha-primary); }
.ha-transcript-msg.assistant .ha-msg-role { color: var(--ha-muted); }

/* CARD ACTIONS */
.ha-chat-actions {
    display: flex; gap: 8px; align-items: center;
}

.ha-btn-continue {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--ha-primary); color: white;
    border: none; border-radius: 8px;
    padding: 9px 16px; font-size: 13px;
    font-weight: 600; cursor: pointer;
    font-family: inherit; transition: background 0.15s;
}

.ha-btn-continue:hover { background: #082f2e; }

.ha-btn-download {
    display: inline-flex; align-items: center; gap: 6px;
    background: none; border: 1px solid var(--ha-border);
    border-radius: 8px; padding: 9px 14px;
    font-size: 13px; font-weight: 500;
    color: var(--ha-muted); cursor: pointer;
    font-family: inherit; transition: all 0.15s;
}

.ha-btn-download:hover {
    border-color: var(--ha-primary);
    color: var(--ha-primary);
}

/* ── MATCH STATUS ── */
.help-account-matches {
    max-width: 860px; margin: 0 auto;
    padding: 0 1.5rem 4rem;
}

.help-account-matches-header {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 1.25rem;
}

.help-account-matches-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem; color: var(--ha-text); margin: 0;
}

.help-account-matches-header svg { color: var(--ha-primary); }

.help-account-match-list {
    display: flex; flex-direction: column; gap: 12px;
}

.ha-match-card {
    background: var(--ha-card); border: 1px solid var(--ha-border);
    border-radius: var(--ha-radius); padding: 16px 20px;
    display: flex; align-items: center;
    justify-content: space-between; gap: 16px;
    flex-wrap: wrap;
}

.ha-match-card.accepted { border-left: 3px solid #16a34a; }
.ha-match-card.requested { border-left: 3px solid var(--ha-primary); }

.ha-match-org { font-size: 15px; font-weight: 600; color: var(--ha-text); }
.ha-match-city { font-size: 13px; color: var(--ha-muted); margin-top: 2px; }

.ha-match-status {
    font-size: 12px; font-weight: 600; padding: 4px 10px;
    border-radius: 99px;
}

.ha-match-status.accepted { background: #f0fdf4; color: #16a34a; }
.ha-match-status.requested { background: var(--ha-primary-light); color: var(--ha-primary); }

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
    .help-account-header { flex-direction: column; }
    .ha-chat-card-header { flex-direction: column; }
    .ha-chat-actions { flex-wrap: wrap; }
}

/* ======================================================
EXPAND BUTTON — fix blue browser default
====================================================== */

.ha-expand-btn,
button.ha-expand-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: var(--ha-muted, #667085) !important;
    font-family: inherit !important;
    padding: 4px 0 !important;
    transition: color 0.15s !important;
    text-decoration: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

.ha-expand-btn:hover,
button.ha-expand-btn:hover {
    color: var(--ha-primary, #0B3B3A) !important;
}

/* ======================================================
ASTRA OVERRIDE — scope under page ID for higher specificity
====================================================== */

#rascue-account-page button,
#rascue-account-page button:focus,
#rascue-account-page button:hover {
    outline: none;
    box-shadow: none;
}

#rascue-account-page .ha-expand-btn,
#rascue-account-page .ha-expand-btn:hover,
#rascue-account-page .ha-expand-btn:focus {
    background: none !important;
    background-color: transparent !important;
    color: var(--ha-muted, #667085) !important;
    border: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

#rascue-account-page .ha-expand-btn:hover {
    color: var(--ha-primary, #0B3B3A) !important;
}

#rascue-account-page .help-account-logout-btn,
#rascue-account-page .help-account-logout-btn:focus {
    background: none !important;
    background-color: transparent !important;
    border: 1px solid var(--ha-border, #e5e0d8) !important;
    color: var(--ha-muted, #667085) !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

#rascue-account-page .help-account-logout-btn:hover {
    border-color: var(--ha-danger, #d64545) !important;
    color: var(--ha-danger, #d64545) !important;
    background: none !important;
}

#rascue-account-page .help-account-new-btn,
#rascue-account-page .help-account-new-btn:focus {
    background: var(--ha-primary, #0B3B3A) !important;
    color: white !important;
    border: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

#rascue-account-page .help-account-new-btn:hover {
    background: #082f2e !important;
}

#rascue-account-page .ha-btn-continue {
    background: var(--ha-primary, #0B3B3A) !important;
    color: white !important;
    border: none !important;
}

#rascue-account-page .ha-btn-download {
    background: none !important;
    border: 1px solid var(--ha-border, #e5e0d8) !important;
    color: var(--ha-muted, #667085) !important;
}

#rascue-account-page .ha-btn-download:hover {
    border-color: var(--ha-primary, #0B3B3A) !important;
    color: var(--ha-primary, #0B3B3A) !important;
}

/* ======================================================
NAME BADGE IN CHAT CARD
====================================================== */

.ha-chat-date-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ha-chat-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--ha-primary, #0B3B3A);
    background: var(--ha-primary-light, rgba(11,59,58,0.08));
    border: 1px solid var(--ha-primary-border, rgba(11,59,58,0.18));
    padding: 2px 8px;
    border-radius: 99px;
}

/* ======================================================
MATCH CARD — improved status display
====================================================== */

.ha-match-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.ha-match-detail {
    font-size: 14px;
    font-weight: 600;
    color: var(--ha-text, #1a1f2e);
    margin-bottom: 4px;
}

.ha-match-note {
    font-size: 12px;
    color: var(--ha-muted, #667085);
    line-height: 1.5;
    max-width: 400px;
}

.ha-match-status {
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 99px;
    white-space: nowrap;
    flex-shrink: 0;
}

.ha-match-status.accepted {
    background: #f0fdf4;
    color: #16a34a;
}

.ha-match-status.requested {
    background: #fff7ed;
    color: #b45309;
}

.ha-match-status.pending {
    background: #f0f9ff;
    color: #0369a1;
}

.ha-match-card {
    background: white;
    border: 1px solid var(--ha-border, #e5e0d8);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 10px;
}

.ha-match-card.accepted {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

/* ======================================================
FEEDBACK PROMPT
====================================================== */

.ha-feedback-prompt {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--ha-border, #e5e0d8);
}

.ha-feedback-btn {
    padding: 6px 12px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: 1.5px solid;
    transition: opacity 0.15s;
    font-family: inherit;
}

.ha-feedback-btn:disabled { opacity: 0.5; }

.ha-feedback-btn.yes {
    background: #f0fdf4;
    color: #16a34a;
    border-color: #bbf7d0;
}

.ha-feedback-btn.neutral {
    background: #f0f9ff;
    color: #0369a1;
    border-color: #bae6fd;
}

.ha-feedback-btn.no {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #fca5a5;
}

/* ======================================================
ACCOUNT DASHBOARD LAYOUT
====================================================== */

.ha-dashboard {
    display: flex;
    min-height: calc(100vh - 60px);
    background: var(--ha-bg, #f8f6f2);
    margin-top: 0;
}

.ha-sidebar {
    width: 240px;
    flex-shrink: 0;
    background: white;
    border-right: 1px solid var(--ha-border, #e5e0d8);
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    position: sticky;
    top: 60px;
    height: calc(100vh - 60px);
    overflow-y: auto;
}

.ha-sidebar-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px 20px;
    border-bottom: 1px solid var(--ha-border, #e5e0d8);
    margin-bottom: 12px;
}

.ha-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.ha-avatar-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #0B3B3A;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    background-size: cover;
    background-position: center;
}

.ha-avatar-edit {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #0B3B3A;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 2px solid white;
}

.ha-sidebar-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--ha-text, #1a1f2e);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

.ha-sidebar-email {
    font-size: 11px;
    color: var(--ha-muted, #667085);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

.ha-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 8px;
    flex: 1;
}

.ha-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--ha-muted, #667085);
    cursor: pointer;
    text-decoration: none;
    position: relative;
    transition: background 0.1s, color 0.1s;
}

.ha-nav-item:hover {
    background: var(--ha-bg, #f8f6f2);
    color: var(--ha-text, #1a1f2e);
}

.ha-nav-item.active {
    background: #f0fdf4;
    color: #0B3B3A;
    font-weight: 700;
}

.ha-nav-badge {
    margin-left: auto;
    background: #0B3B3A;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 99px;
    min-width: 18px;
    text-align: center;
}

.ha-sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--ha-border, #e5e0d8);
    margin-top: 8px;
}

.ha-new-chat-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 16px;
    background: #0B3B3A;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.ha-main {
    flex: 1;
    padding: 32px;
    max-width: 700px;
    min-width: 0;
}

.ha-tab-header {
    margin-bottom: 24px;
}

.ha-tab-header h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 4px;
    color: var(--ha-text, #1a1f2e);
}

.ha-tab-header p {
    font-size: 13px;
    color: var(--ha-muted, #667085);
    margin: 0;
}

/* Settings cards */
.ha-settings-card {
    background: white;
    border: 1px solid var(--ha-border, #e5e0d8);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 10px;
}

.ha-settings-card.danger {
    background: #fef2f2;
    border-color: #fca5a5;
}

.ha-settings-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.ha-settings-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ha-settings-icon.danger {
    background: white;
}

.ha-settings-title {
    font-size: 13px;
    font-weight: 600;
    margin: 0;
    color: var(--ha-text, #1a1f2e);
}

.ha-settings-sub {
    font-size: 11px;
    color: var(--ha-muted, #667085);
    margin: 0;
}

.ha-btn-primary {
    background: #0B3B3A;
    color: white;
    border: none;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.ha-btn-outline {
    background: white;
    color: #0B3B3A;
    border: 1px solid #0B3B3A;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}

.ha-btn-danger {
    background: transparent;
    color: #b91c1c;
    border: 1px solid #fca5a5;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}

/* Mobile responsive */
@media (max-width: 640px) {
    .ha-dashboard { flex-direction: column; }
    .ha-sidebar {
        width: 100%;
        height: auto;
        position: static;
        border-right: none;
        border-bottom: 1px solid var(--ha-border, #e5e0d8);
        padding: 12px 0;
    }
    .ha-nav { flex-direction: row; overflow-x: auto; padding: 0 8px; gap: 4px; }
    .ha-nav-item { white-space: nowrap; padding: 8px 12px; }
    .ha-main { padding: 16px; }
    .ha-sidebar-profile { padding: 0 12px 12px; }
    .ha-sidebar-footer { display: none; }
}

/* Ensure dashboard fills properly under Astra */
.entry-content .ha-dashboard,
.post-content .ha-dashboard,
.site-content .ha-dashboard {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    box-sizing: border-box;
}

/* ======================================================
BREAK OUT OF ASTRA CONTENT WIDTH
====================================================== */

body:has(#rascue-account-page) .site-content,
body:has(#rascue-account-page) .entry-content,
body:has(#rascue-account-page) .ast-container,
body:has(#rascue-account-page) article,
body:has(#rascue-account-page) .post-content {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

body:has(#rascue-account-page) .site-content {
    padding-top: 0 !important;
}

/* ======================================================
ASTRA FULL WIDTH OVERRIDE — exact selectors
====================================================== */

#page:has(#rascue-account-page) #content,
#page:has(#rascue-account-page) .ast-container,
#page:has(#rascue-account-page) #primary,
#page:has(#rascue-account-page) #main,
#page:has(#rascue-account-page) article,
#page:has(#rascue-account-page) .entry-content {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

#page:has(#rascue-account-page) .site-content {
    padding-top: 0 !important;
}