:root {
  --bg: #f4f6f8;
  --card: #ffffff;
  --primary: #0f766e;
  --text: #1f2933;
  --muted: #6b7280;
  --border: #e5e7eb;
}

body {
  margin: 0;
  font-family: system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.container {
  max-width: 600px;
  margin: auto;
  padding: 20px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.lang-switcher {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.lang-btn {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.lang-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

h1 {
  margin-bottom: 20px;
}

p {
  margin: 10px 0;
  color: var(--muted);
}

strong {
  color: var(--text);
}

a {
  display: inline-block;
  margin-top: 12px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

html[dir="rtl"] body {
  direction: rtl;
}

html[dir="rtl"] .container,
html[dir="rtl"] p,
html[dir="rtl"] a,
html[dir="rtl"] h1 {
  text-align: right;
}

html[dir="rtl"] .topbar {
  flex-direction: row-reverse;
}