:root {
  --primary: #c2185b;
  --primary-dark: #8c0e42;
  --bg: #faf7f8;
  --card-bg: #ffffff;
  --border: #eadde2;
  --text: #2b2226;
  --muted: #8a7a80;
  --success: #1e8e5a;
  --error: #c62828;
  --radius: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Vazirmatn", Tahoma, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: var(--primary);
  color: white;
  position: sticky;
  top: 0;
  z-index: 10;
}
.topbar .brand { color: white; text-decoration: none; font-weight: bold; font-size: 1.1rem; }
.topbar nav a {
  color: white;
  text-decoration: none;
  margin-inline-start: 14px;
  font-size: 0.9rem;
  opacity: 0.95;
}

.container {
  max-width: 640px;
  margin: 0 auto;
  padding: 16px 14px 60px;
}

.footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  padding: 20px;
}

.hero { text-align: center; padding: 30px 10px; }
.hero h1 { font-size: 1.5rem; margin-bottom: 6px; }
.hero-actions { margin-top: 18px; display: flex; gap: 10px; justify-content: center; }

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: bold;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 12px;
}
.service-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 10px;
  text-align: center;
  font-weight: bold;
}

.how ol { padding-inline-start: 20px; line-height: 2; }

.form-card, .card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 16px;
}

form label {
  display: block;
  margin-bottom: 14px;
  font-size: 0.9rem;
  color: var(--muted);
}
form input, form select, form textarea {
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  color: var(--text);
}
form input:focus, form select:focus, form textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.muted { color: var(--muted); }
.small { font-size: 0.8rem; }
.mt { margin-top: 14px; }

.flash-wrap { margin-bottom: 14px; }
.flash {
  padding: 10px 14px;
  border-radius: 10px;
  margin-bottom: 8px;
  font-size: 0.9rem;
}
.flash-success { background: #e6f4ea; color: var(--success); }
.flash-error { background: #fdecea; color: var(--error); }

.order-list { display: flex; flex-direction: column; gap: 8px; }
.order-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  text-decoration: none;
  color: var(--text);
  gap: 10px;
}

.badge {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eee;
  color: #555;
  white-space: nowrap;
}
.badge-pending_price_review { background: #fff3cd; color: #8a6d00; }
.badge-awaiting_payment { background: #e0e7ff; color: #3730a3; }
.badge-payment_confirmed { background: #d1fae5; color: #065f46; }
.badge-in_progress { background: #ede9fe; color: #5b21b6; }
.badge-completed { background: #dcfce7; color: #166534; }
.badge-rejected, .badge-cancelled { background: #fee2e2; color: #991b1b; }

.wallet-card .wallet-address {
  background: #f5f0f2;
  padding: 12px;
  border-radius: 10px;
  font-family: monospace;
  word-break: break-all;
  margin: 10px 0;
  text-align: center;
}
.qr { display: block; margin: 0 auto; border-radius: 10px; }

.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li {
  border-inline-start: 3px solid var(--primary);
  padding: 6px 14px;
  margin-bottom: 10px;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}
.filter-form { margin-bottom: 14px; }

@media (min-width: 700px) {
  .container { padding-top: 30px; }
}
