/* ==========================================
   BidFlux — ستایلی هاوبەش
   ========================================== */

:root {
  --blue: #2979ff;
  --bg: #f9f9f9;
  --surface: #ffffff;
  --text: #111111;
  --sub: #6b7280;
  --line: #e5e7eb;
  --radius: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0a;
    --surface: #1c1c1e;
    --text: #ffffff;
    --sub: #9ca3af;
    --line: #2a2a2c;
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma,
    "Noto Sans Arabic", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ---------- سەرەوە ---------- */

header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 19px;
  color: var(--blue);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.brand svg {
  width: 22px;
  height: 22px;
  fill: var(--blue);
}

.langs {
  display: flex;
  gap: 4px;
}

.langs button {
  background: none;
  border: none;
  color: var(--sub);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.15s;
}

.langs button:hover {
  background: var(--bg);
}

.langs button.active {
  color: var(--blue);
  background: rgba(41, 121, 255, 0.1);
}

/* ---------- ناوەڕۆک ---------- */

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 36px 20px 60px;
}

.hero {
  text-align: center;
  margin-bottom: 36px;
}

.hero-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: rgba(41, 121, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-icon svg {
  width: 34px;
  height: 34px;
  fill: var(--blue);
}

h1 {
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin-bottom: 10px;
}

.lead {
  color: var(--sub);
  font-size: 14.5px;
  max-width: 480px;
  margin: 0 auto;
}

.updated {
  color: var(--sub);
  font-size: 12.5px;
  margin-top: 12px;
}

/* ---------- کارت ---------- */

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

.card h2 {
  font-size: 16.5px;
  font-weight: 700;
  margin-bottom: 10px;
}

.card p {
  color: var(--sub);
  font-size: 14px;
  margin-bottom: 10px;
}

.card p:last-child {
  margin-bottom: 0;
}

.card ul {
  color: var(--sub);
  font-size: 14px;
  padding-inline-start: 20px;
}

.card li {
  margin-bottom: 7px;
}

.card li:last-child {
  margin-bottom: 0;
}

/* ---------- فۆڕم ---------- */

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 7px;
  margin-top: 18px;
}

label:first-of-type {
  margin-top: 0;
}

input,
textarea,
select {
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.15s;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--blue);
}

textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.6;
}

.hint {
  font-size: 12px;
  color: var(--sub);
  margin-top: 6px;
}

button.primary {
  width: 100%;
  margin-top: 24px;
  background: var(--blue);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  padding: 15px;
  cursor: pointer;
  transition: opacity 0.15s;
}

button.primary:hover {
  opacity: 0.9;
}

button.primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ---------- پەیام ---------- */

.msg {
  display: none;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 13.5px;
}

.msg.ok {
  display: block;
  background: rgba(22, 163, 74, 0.1);
  color: #16a34a;
}

.msg.err {
  display: block;
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
}

/* ---------- خوارەوە ---------- */

footer {
  border-top: 1px solid var(--line);
  margin-top: 44px;
  padding-top: 24px;
  text-align: center;
}

footer nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

footer a {
  color: var(--blue);
  text-decoration: none;
  font-size: 13.5px;
}

footer a:hover {
  text-decoration: underline;
}

footer small {
  color: var(--sub);
  font-size: 12px;
}
