:root {
  --bg: #fafafa;
  --card: #ffffff;
  --text: #111;
  --muted: #666;
  --line: #eaeaea;
  --accent: #0f172a;
  --radius: 16px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: Vazirmatn, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* Layout */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px;
  display: grid;
  gap: 16px;
  grid-template-columns: 2fr 1fr;
  align-items: start;
}

@media (max-width: 900px) {
  .container { grid-template-columns: 1fr; }
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  font-family: Vazirmatn, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.panel h2 { margin: 0 0 8px 0; font-size: 18px; }
.muted { color: var(--muted); font-size: 13px; }

/* Summary panel */
.summary { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 12px; }
.line { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.line:last-child { border-bottom: 0; }
.line .name { font-weight: 600; }
.line .small { font-size: 12px; color: var(--muted); }
.remove { border: 0; background: transparent; color: #b91c1c; cursor: pointer; font-size: 14px; padding: 4px; }

.totals { margin-top: 8px; border-top: 1px solid var(--line); padding-top: 8px; display: grid; gap: 6px; }
.totals .row { display: flex; justify-content: space-between; font-size: 14px; }
.totals .row.total { font-weight: 700; font-size: 16px; }

.field { display: grid; gap: 6px; }
label { font-size: 13px; color: var(--muted); }

input[type="email"], input[type="number"] {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 14px;
  direction: ltr;
}

.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 480px) { .row-2 { grid-template-columns: 1fr; } }

.btn {
  appearance: none;
  border: 0;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
  transition: transform .02s ease-in;
  font-family: Vazirmatn, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.btn:active { transform: translateY(1px); }

/* Top-left CTA button */
.btn.cta {
  background: var(--accent);
  color: #fff;
  padding: 10px 14px;
  border-radius: 12px;
  text-decoration: none;
  border: 0;
  font-size: 14px;
}

.notice {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
}

/* Services panel */
.grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  display: grid;
  gap: 10px;
  background: #fff;
}
.card h3 { margin: 0; font-size: 16px; }

.controls { display: flex; align-items: center; gap: 8px; }

.stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.stepper button {
  width: 34px;
  height: 34px;
  border: 0;
  background: #f8fafc;
  cursor: pointer;
  font-size: 16px;
}
.stepper span { min-width: 64px; text-align: center; padding: 0 8px; font-variant-numeric: tabular-nums; }

.add-btn { margin-inline-start: auto; }
.price-note { font-size: 12px; color: var(--muted); }

.header { max-width: 1100px;
  margin: 0 auto;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between; /* brand on right, button on left (RTL) */ }
/* Brand row: logo + text */
.brand {
  display: inline-flex;
  align-items: flex-end;/* was center */
  gap: 10px;
}
.brand-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.brand-text {
  font-weight: 700;
  letter-spacing: .2px;
   line-height: 1;
  padding-bottom: 3px; /* fine-tune vertical alignment */
}
/* Read-only box for fixed values (like exchange rate or service fee) */
.readonly-box {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #f8f9fa;
  font-size: 14px;
  color: #111;
  direction: ltr;
  text-align: left;
  font-family: Vazirmatn, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  user-select: none;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
}
