:root {
  --bg: #f8fafc;
  --card: rgba(255, 255, 255, 0.94);
  --accent: #7c3aed;
  --accent2: #6d28d9;
  --text: #0f172a;
  --muted: #64748b;
}

* { box-sizing: border-box; }

body.xsr-landing {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, "Segoe UI", Tahoma, sans-serif;
  background: transparent;
  color: var(--text);
  direction: rtl;
}

.landing-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 20px 80px;
  text-align: center;
}

.landing-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.landing-tagline {
  color: var(--muted);
  margin: 8px 0 24px;
  font-size: 1.05rem;
}

.landing-desc {
  background: var(--card);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px 24px;
  line-height: 1.7;
  text-align: right;
  margin-bottom: 28px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
}

.landing-stat {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 12px 22px;
  margin-bottom: 28px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.landing-stat-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.landing-btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.landing-btn:hover {
  transform: translateY(-2px);
}

.landing-btn-primary {
  background: linear-gradient(135deg, var(--accent2), #5b21b6);
  color: #fff;
  box-shadow: 0 4px 14px rgba(109, 40, 217, 0.35);
}

.landing-btn-secondary {
  background: #fff;
  color: var(--accent);
  border: 2px solid rgba(124, 58, 237, 0.35);
}

.landing-footer {
  margin-top: 40px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Home (logged in) */
body.xsr-home .home-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px 100px;
}

.home-header {
  text-align: center;
  margin-bottom: 36px;
}

.home-greeting {
  color: var(--muted);
  margin-top: 8px;
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

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

.home-card {
  background: var(--card);
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 28px 22px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
}

.home-card:hover {
  border-color: rgba(124, 58, 237, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(109, 40, 217, 0.14);
}

.home-card-icon {
  font-size: 2.2rem;
  display: block;
  margin-bottom: 12px;
}

.home-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 8px;
}

.home-card-desc {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

.home-logout {
  display: block;
  text-align: center;
  margin-top: 32px;
  color: var(--muted);
}

.home-logout a {
  color: var(--accent);
}

.landing-feature-list{margin:12px 0 0;padding-right:20px;}
.chat-avatar-img{width:100%;height:100%;object-fit:cover;border-radius:inherit;display:block;}

