:root{
  --green:#0f6848;
  --bg:#eef5f1;
  --card:#ffffffcc;
  --text:#0a1d16;
  --muted:#6a7b74;
  --border:#e5ece9;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: url('riyals-bg.webp') center/cover fixed no-repeat, var(--bg);
  color:var(--text);
}

/* Header & Navigation */
.app-header{
  background:var(--green);
  color:#fff;
  padding:14px 10px 12px;
  position:sticky; top:0; z-index:5;
  box-shadow:0 2px 10px #0002;
}
.nav{display:flex; align-items:center; justify-content:space-between; gap:10px}
.title{text-align:center}
.title h1{margin:0; font-weight:800; letter-spacing:.4px; font-size:22px}
.subdate{opacity:.95; font-size:14px; margin-top:4px}
.nav-btn{
  background:#fff; color:#111; border:none; border-radius:10px; padding:8px 12px;
  font-weight:700; cursor:pointer
}
.nav-btn.ghost{background:#0000; color:#fff; border:1px solid #fff}
.nav2{display:flex; gap:8px; justify-content:center; margin-top:8px}

/* Layout */
.container{max-width:840px; margin:16px auto 36px; padding:0 10px}
.card{
  background:var(--card);
  backdrop-filter: blur(4px);
  border:1px solid var(--border);
  border-radius:12px;
  padding:12px;
  margin:10px 0;
}
label{color:var(--muted); font-size:14px}
label.hdr{font-weight:800; color:#0a1d16}

.value{font-weight:800; font-size:22px; margin-top:6px; direction:ltr}
.hint{display:block; color:var(--muted); margin-top:6px}

.debts{list-style:none; margin:6px 0 0; padding:0}
.debts li{
  display:grid;
  grid-template-columns: auto 130px 46px;
  gap:10px;
  align-items:center;
  padding:10px 0;
  border-bottom:1px dashed var(--border);
}
.debts li:last-child{border-bottom:none}
.item-name{font-weight:700}
.amount-input{
  width:100%; padding:10px 12px; border:1px solid var(--border); background:#fff;
  border-radius:10px; direction:ltr; font-weight:800;
}
.amount-input[disabled]{background:#f6f6f6; color:#666}
.checkbox{width:24px; height:24px; accent-color:#17a34a; cursor:pointer}

.grid2{display:grid; grid-template-columns:1fr; gap:10px}
@media(min-width:680px){ .grid2{grid-template-columns:1fr 1fr} }

.actions{display:flex; gap:10px; margin:14px 0}
.btn{border:none; background:#fff; color:#111; padding:10px 14px; border-radius:10px; font-weight:700; cursor:pointer}
.btn.danger{background:#b22222; color:#fff}

.backup{display:flex; gap:8px; flex-wrap:wrap; margin-bottom:6px}
h2{margin:0 0 8px 0; font-size:18px; font-weight:800}

/* Raise block */
.raise-grid{
  display:grid; grid-template-columns:1fr; gap:10px;
}
.raise-preview{
  margin-top:8px; padding:10px; border-radius:10px; background:#f7f9f8; border:1px solid var(--border);
  font-size:14px; direction:ltr
}
@media(min-width:680px){
  .raise-grid{ grid-template-columns: 1fr 1fr; }
}
