:root {
  --bg: #0a0f14;
  --surface: #101820;
  --surface-2: #16202b;
  --border: rgba(255, 255, 255, 0.08);
  --cyan: #22d3ee;
  --cyan-dark: #0ea5a0;
  --green: #22c55e;
  --white: #f5f7f7;
  --muted: #93a3ab;
  --danger: #ef4444;
  --radius: 18px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, #0f1720 0%, var(--bg) 60%);
  color: var(--white);
  font-family: 'Tahoma', 'Segoe UI', sans-serif;
  direction: rtl;
  padding-bottom: 90px;
}

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

.container { max-width: 480px; margin: 0 auto; padding: 16px; }

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 18px; margin-bottom: 18px;
}

.balance-pill {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 999px; padding: 8px 18px; font-weight: bold; color: var(--green);
}

.avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--surface-2); border: 2px solid var(--cyan);
  display: flex; align-items: center; justify-content: center;
}

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; margin-bottom: 16px;
}

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); border-radius: 999px;
  padding: 8px 16px; font-size: 14px;
}

.btn {
  display: block; width: 100%; text-align: center; border: none;
  border-radius: 14px; padding: 15px; font-size: 16px; font-weight: bold;
  cursor: pointer; color: #04202b;
  background: linear-gradient(90deg, var(--cyan-dark), var(--cyan));
}
.btn:active { transform: scale(0.98); }
.btn.secondary { background: var(--surface-2); color: var(--white); border: 1px solid var(--border); }
.btn.danger { background: var(--danger); color: #fff; }

.list-item {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px; margin-bottom: 12px;
}
.list-item .label { font-weight: bold; }
.list-item.danger { border-color: rgba(239,68,68,0.4); color: var(--danger); }

.stats-row { display: flex; gap: 10px; }
.stat-box {
  flex: 1; text-align: center; background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 14px; padding: 12px;
}
.stat-box .num { font-size: 22px; font-weight: bold; }
.stat-box .num.green { color: var(--green); }
.stat-box .num.red { color: var(--danger); }
.stat-box .num.yellow { color: #eab308; }

input, select, textarea {
  width: 100%; background: var(--surface-2); border: 1px solid var(--border);
  color: var(--white); border-radius: 12px; padding: 13px; font-size: 15px;
  margin-bottom: 12px; direction: rtl;
}

.status-badge { padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: bold; }
.status-badge.completed { background: rgba(34,197,94,0.15); color: var(--green); }
.status-badge.pending { background: rgba(234,179,8,0.15); color: #eab308; }
.status-badge.cancelled { background: rgba(239,68,68,0.15); color: var(--danger); }

.bottom-nav {
  position: fixed; bottom: 12px; left: 50%; transform: translateX(-50%);
  width: calc(100% - 32px); max-width: 480px;
  background: linear-gradient(90deg, #103a4a, #0b2836);
  border-radius: 999px; display: flex; justify-content: space-around;
  padding: 10px 6px; box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.bottom-nav a { display: flex; flex-direction: column; align-items: center; font-size: 11px; color: var(--muted); gap: 4px; }
.bottom-nav a.active { color: var(--white); }
.bottom-nav .home-btn {
  background: var(--cyan); width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin-top: -26px;
  box-shadow: 0 6px 16px rgba(34,211,238,0.5);
}

.section-title { font-size: 18px; font-weight: bold; margin: 20px 0 12px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.service-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  overflow: hidden; text-align: center;
}
.service-card img { width: 100%; height: 110px; object-fit: cover; }
.service-card .name { padding: 10px; font-size: 14px; font-weight: bold; }

.toast {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
  background: var(--surface-2); border: 1px solid var(--border); color: var(--white);
  padding: 12px 20px; border-radius: 12px; z-index: 999; font-size: 14px;
}
.toast.error { border-color: var(--danger); color: var(--danger); }
.toast.success { border-color: var(--green); color: var(--green); }
