:root {
  --primary: #0f766e;
  --dark: #0f172a;
  --muted: #64748b;
  --bg: #f8fafc;
  --border: #e2e8f0
}

* {
  box-sizing: border-box
}

body {
  margin: 0;
  background: linear-gradient(180deg, #f8fbf9, #eef4f1);
  font-family: 'Tajawal', sans-serif;
  color: var(--text);
  direction: rtl;
}

a {
  text-decoration: none
}

.container {
  max-width: 1180px;
  margin: auto;
  padding: 28px
}

.hero {
  background: linear-gradient(135deg, #0f172a, #0f766e);
  border-radius: 26px;
  color: #fff;
  padding: 42px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, .18)
}

.hero h1 {
  font-size: 34px;
  margin: 0 0 10px
}

.hero p {
  color: #dbeafe;
  line-height: 1.9
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
  margin-top: 20px
}

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

.full {
  grid-column: 1/-1
}

label {
  display: block;
  font-weight: 700;
  margin-bottom: 7px;
  color: #334155
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 12px;
  font-family: inherit;
  font-size: 15px
}

textarea {
  min-height: 100px
}

.btn,
button {
  display: inline-block;
  border: 0;
  border-radius: 12px;
  padding: 12px 20px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  cursor: pointer
}

.btn.secondary {
  background: #e2e8f0;
  color: #334155
}

.topbar {
  background: #fff;
  border-bottom: 1px solid var(--border)
}

.topbar .inner {
  max-width: 1180px;
  margin: auto;
  padding: 14px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center
}

.nav a {
  margin-inline-start: 12px;
  color: #334155;
  font-weight: 700
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 16px;
  overflow: hidden
}

.table th,
.table td {
  padding: 13px;
  border-bottom: 1px solid var(--border);
  text-align: right
}

.table th {
  background: #f1f5f9;
  color: #334155
}

.alert {
  padding: 13px;
  border-radius: 12px;
  margin: 12px 0
}

.alert.err {
  background: #fee2e2;
  color: #991b1b
}

.alert.ok {
  background: #dcfce7;
  color: #166534
}

@media(max-width:800px) {
  .grid {
    grid-template-columns: 1fr
  }
  .container {
    padding: 18px
  }
}