:root {
  --brand: #005bff;
  --brand-soft: #eef2ff;
  --bg: #f4f6fa;
  --surface: #ffffff;
  --text: #111827;
  --muted: #4b5563;
  --border: #e5e7eb;
  --danger: #dc2626;
  --danger-soft: #fef2f2;
  --success: #15803d;
  --success-soft: #f0fdf4;
  --warn: #b45309;
  --warn-soft: #fffbeb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans Arabic", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.brand {
  font-size: 18px;
  font-weight: 800;
  color: var(--brand);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.nav a:hover,
.nav a.active {
  color: var(--brand);
}

.lang-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 10px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.lang-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.container {
  max-width: 880px;
  margin: 28px auto;
  padding: 0 20px 40px;
}

.card {
  background: var(--surface);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.06);
  margin-bottom: 20px;
}

h1 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.25;
}

h2 {
  margin: 24px 0 8px;
  font-size: 19px;
  line-height: 1.35;
}

p,
li {
  color: var(--muted);
  font-size: 15px;
}

ul,
ol {
  padding-inline-start: 22px;
}

.meta {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 18px;
}

.notice {
  background: var(--brand-soft);
  border-inline-start: 4px solid var(--brand);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 16px 0;
  color: var(--text);
  font-size: 14px;
}

.notice.warn {
  background: var(--warn-soft);
  border-inline-start-color: var(--warn);
}

.notice.danger {
  background: var(--danger-soft);
  border-inline-start-color: var(--danger);
  color: #991b1b;
}

.notice.success {
  background: var(--success-soft);
  border-inline-start-color: var(--success);
  color: #166534;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  font-size: 14px;
}

th,
td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: start;
  vertical-align: top;
}

th {
  background: #f9fafb;
  color: var(--text);
  font-weight: 600;
}

.form-group {
  margin-bottom: 14px;
}

label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

input[type="text"],
input[type="tel"] {
  width: 100%;
  max-width: 360px;
  padding: 11px 14px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  font-size: 15px;
  outline: none;
}

input[type="text"]:focus,
input[type="tel"]:focus {
  border-color: var(--brand);
}

.btn {
  display: inline-block;
  border: none;
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: var(--brand);
  color: #ffffff;
}

.btn-danger {
  background: var(--danger);
  color: #ffffff;
}

.btn-secondary {
  background: var(--brand-soft);
  color: var(--brand);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.hidden {
  display: none !important;
}

.footer {
  max-width: 880px;
  margin: 0 auto 36px;
  padding: 0 20px;
  font-size: 13px;
  color: #6b7280;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 600px) {
  .card {
    padding: 20px 16px;
    border-radius: 16px;
  }

  h1 {
    font-size: 23px;
  }
}
