:root{
  --bg:#f5f7f4; --card:#ffffff; --ink:#0f1f1b; --muted:#6a7a74;
  --accent:#0e7c66; --accent-2:#12a085; --soft:#e7f4f0; --soft2:#f0f7f4;
  --amber:#a86412; --amber-soft:#fdf1de; --line:#e4e9e4;
  --shadow:0 1px 2px rgba(16,40,34,.04), 0 8px 24px rgba(16,40,34,.06);
  --shadow-lg:0 12px 40px rgba(16,40,34,.14);
  --r:20px;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  background:var(--bg); color:var(--ink);
  font-family:'Cairo',system-ui,-apple-system,'Segoe UI',sans-serif;
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
  padding-bottom:env(safe-area-inset-bottom);
}
button{font-family:inherit; cursor:pointer; border:0; background:none; color:inherit}
input{font-family:inherit}
.app{max-width:720px; margin:0 auto; padding:0 16px 40px}

/* header */
.hdr{
  position:sticky; top:0; z-index:20; display:flex; align-items:center; justify-content:space-between;
  gap:12px; padding:14px 0 10px; background:linear-gradient(var(--bg) 72%, rgba(245,247,244,.72));
  backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px);
}
.logo{font-size:27px; font-weight:800; letter-spacing:-.4px; line-height:1.05}
.logo .dot{color:var(--accent-2)}
.sub{font-size:12px; color:var(--muted); margin-top:2px; font-weight:600}
.child-chip{
  display:flex; align-items:center; gap:6px; padding:9px 13px; border-radius:999px;
  background:var(--card); box-shadow:var(--shadow); font-size:13px; font-weight:700;
  border:1px solid var(--line); max-width:44%; transition:transform .15s ease;
}
.child-chip:active{transform:scale(.96)}
.child-chip.set{background:var(--accent); color:#fff; border-color:transparent}
.child-ico{font-size:15px}
#childLabel{white-space:nowrap; overflow:hidden; text-overflow:ellipsis}

/* search */
.searchbar{position:relative; margin-top:2px}
.searchbar input{
  width:100%; padding:14px 44px 14px 16px; border-radius:16px; border:1px solid var(--line);
  background:var(--card); font-size:15px; color:var(--ink); outline:none;
  transition:border-color .2s, box-shadow .2s;
}
.searchbar input:focus{border-color:var(--accent-2); box-shadow:0 0 0 4px var(--soft)}
.s-ico{position:absolute; inset-inline-end:16px; top:50%; transform:translateY(-50%); font-size:15px; opacity:.55}

/* tabs */
.tabs{display:flex; gap:6px; margin-top:14px; background:#eaeFE9; background:#e9eee9; padding:5px; border-radius:16px}
.tab{flex:1; padding:10px 6px; border-radius:12px; font-size:13.5px; font-weight:700; color:var(--muted); transition:all .22s ease}
.tab.on{background:var(--card); color:var(--ink); box-shadow:var(--shadow)}
.tbadge{display:inline-block; min-width:18px; padding:1px 5px; border-radius:999px; background:var(--soft); color:var(--accent); font-size:11px; font-weight:800}
.tab.on .tbadge{background:var(--accent); color:#fff}

/* chips */
.chips{display:flex; gap:8px; overflow-x:auto; padding:14px 0 2px; scrollbar-width:none}
.chips::-webkit-scrollbar{display:none}
.chip{
  flex:0 0 auto; padding:10px 16px; border-radius:999px; background:var(--card); border:1px solid var(--line);
  font-size:13.5px; font-weight:700; color:var(--muted); transition:all .18s ease; white-space:nowrap;
}
.chip:active{transform:scale(.96)}
.chip.on{background:var(--ink); color:#fff; border-color:var(--ink)}

/* filters */
.filters{display:flex; gap:8px; margin-top:12px; align-items:stretch}
.filter-btn{
  flex:1; display:flex; flex-direction:column; align-items:flex-start; gap:2px;
  padding:9px 14px; border-radius:14px; background:var(--card); border:1px solid var(--line);
  box-shadow:var(--shadow); transition:border-color .2s, transform .15s;
}
.filter-btn:active{transform:scale(.98)}
.filter-btn.on{border-color:var(--accent-2); background:var(--soft2)}
.f-lbl{font-size:10.5px; color:var(--muted); font-weight:700}
.filter-btn span:last-child{font-size:13.5px; font-weight:800}
.ghost{padding:0 14px; border-radius:14px; font-size:13px; font-weight:700; color:var(--muted); border:1px dashed var(--line)}
.ghost:active{background:var(--soft)}

.count{font-size:12.5px; color:var(--muted); font-weight:700; margin:14px 2px 8px}
.count b{color:var(--ink)}

/* list */
.list{display:flex; flex-direction:column; gap:12px}
.card{
  background:var(--card); border-radius:var(--r); padding:15px 15px 13px; box-shadow:var(--shadow);
  border:1px solid rgba(16,40,34,.04); animation:rise .34s cubic-bezier(.22,1,.36,1) both;
  transition:transform .18s ease, box-shadow .18s ease;
}
.card:active{transform:scale(.994)}
@keyframes rise{from{opacity:0; transform:translateY(10px)} to{opacity:1; transform:none}}
.card-top{display:flex; align-items:flex-start; gap:10px; justify-content:space-between}
.card h3{margin:0; font-size:16px; font-weight:800; line-height:1.35; letter-spacing:-.2px}
.fav{width:34px; height:34px; border-radius:50%; display:grid; place-items:center; font-size:17px; color:#c3ccc8; background:var(--soft2); flex:0 0 auto; transition:all .2s ease}
.fav.on{color:#e0455c; background:#fdecef; transform:scale(1.06)}
.meta{display:flex; flex-wrap:wrap; gap:6px; margin:9px 0 0}
.pill{font-size:11.5px; font-weight:700; padding:4px 9px; border-radius:8px; background:var(--soft2); color:var(--accent); white-space:nowrap}
.pill.sport{background:#eef2fb; color:#2b4f9e}
.pill.warn{background:var(--amber-soft); color:var(--amber)}
.pill.match{background:#e6f7ec; color:#127a3c}
.addr{margin:9px 0 0; font-size:13px; color:var(--muted); line-height:1.55}
.actions{display:flex; gap:8px; margin-top:12px}
.btn{
  flex:1; text-align:center; padding:11px 8px; border-radius:12px; font-size:13.5px; font-weight:800;
  text-decoration:none; display:flex; align-items:center; justify-content:center; gap:6px; transition:transform .15s ease, filter .15s;
}
.btn:active{transform:scale(.97)}
.btn.call{background:var(--soft2); color:var(--accent)}
.btn.wa{background:#e8f8ef; color:#0a7a45}
.btn.more{background:var(--ink); color:#fff; flex:0 0 42%}
.btn.primary{background:var(--accent); color:#fff; flex:1}
.btn.wide{width:100%; flex:none}
.btn.line{background:var(--card); border:1px solid var(--line); color:var(--ink)}

/* section header inside list */
.sec-h{display:flex; align-items:center; gap:8px; margin:18px 2px 2px; font-size:13px; font-weight:800; color:var(--muted)}
.sec-h:before{content:''; flex:1; height:1px; background:var(--line); order:2}
.sec-h span{order:1}

/* empty */
.empty{text-align:center; padding:38px 18px; background:var(--card); border-radius:var(--r); box-shadow:var(--shadow)}
.empty .e-ico{font-size:34px}
.empty h4{margin:10px 0 6px; font-size:16px}
.empty p{margin:0 0 16px; font-size:13.5px; color:var(--muted); line-height:1.6}

/* footer */
.foot{margin-top:26px; padding:14px 2px; border-top:1px solid var(--line); font-size:11.5px; color:var(--muted); line-height:1.7}
.foot p{margin:0 0 6px}

/* sheet */
.sheet-wrap{position:fixed; inset:0; z-index:60; display:flex; align-items:flex-end; justify-content:center}
.scrim{position:absolute; inset:0; background:rgba(9,24,20,.42); animation:fade .2s ease both; backdrop-filter:blur(2px)}
@keyframes fade{from{opacity:0} to{opacity:1}}
.sheet{
  position:relative; width:100%; max-width:720px; background:var(--card); border-radius:24px 24px 0 0;
  padding:8px 18px calc(24px + env(safe-area-inset-bottom)); max-height:90vh; overflow-y:auto;
  box-shadow:var(--shadow-lg); animation:up .3s cubic-bezier(.22,1,.36,1) both;
}
@keyframes up{from{transform:translateY(100%)} to{transform:none}}
.grab{width:40px; height:4px; border-radius:99px; background:#dfe5e1; margin:2px auto 12px}
.sheet h3{margin:0 0 4px; font-size:19px; font-weight:800}
.sheet .sh-sub{font-size:13px; color:var(--muted); margin:0 0 14px; line-height:1.6}
.sheet .row{display:flex; justify-content:space-between; gap:12px; padding:11px 0; border-bottom:1px solid var(--line); font-size:13.5px}
.sheet .row:last-of-type{border-bottom:0}
.sheet .row .k{color:var(--muted); font-weight:700; flex:0 0 34%}
.sheet .row .v{font-weight:700; text-align:left; line-height:1.6}
.opt{display:flex; align-items:center; justify-content:space-between; width:100%; padding:13px 12px; border-radius:12px; font-size:14.5px; font-weight:700; transition:background .15s}
.opt:active{background:var(--soft2)}
.opt.on{background:var(--soft); color:var(--accent)}
.opt + .opt{border-top:1px solid var(--line); border-radius:0}
.grid-age{display:grid; grid-template-columns:repeat(4,1fr); gap:8px; margin-top:8px}
.age-cell{padding:13px 0; border-radius:12px; background:var(--soft2); font-weight:800; font-size:15px; text-align:center}
.age-cell.on{background:var(--accent); color:#fff}
.field{margin:12px 0}
.field label{display:block; font-size:12px; font-weight:700; color:var(--muted); margin-bottom:6px}
.field input{width:100%; padding:13px 14px; border-radius:12px; border:1px solid var(--line); font-size:15px; outline:none}
.field input:focus{border-color:var(--accent-2); box-shadow:0 0 0 4px var(--soft)}
.chk{display:flex; align-items:flex-start; gap:10px; padding:10px 0; font-size:13.5px; line-height:1.55; cursor:pointer}
.chk input{width:19px; height:19px; accent-color:var(--accent); margin-top:1px; flex:0 0 auto}
.chk.done span{color:var(--muted); text-decoration:line-through}
.q-list{margin:0; padding-inline-start:18px; font-size:13.5px; line-height:1.9; color:#243a34}
.cmp{width:100%; border-collapse:collapse; font-size:12.5px}
.cmp th,.cmp td{padding:9px 8px; border-bottom:1px solid var(--line); text-align:right; vertical-align:top}
.cmp th{font-weight:800; font-size:12.5px}
.cmp td:first-child{color:var(--muted); font-weight:700; width:28%}
.srv{background:var(--card); border-radius:var(--r); padding:16px; box-shadow:var(--shadow); margin-bottom:12px}
.srv h4{margin:0 0 4px; font-size:15px}
.srv p{margin:0; font-size:13px; color:var(--muted); line-height:1.6}
.srv .soon{display:inline-block; margin-top:8px; font-size:11.5px; font-weight:800; padding:4px 9px; border-radius:8px; background:var(--amber-soft); color:var(--amber)}
.srv a{color:var(--accent); font-weight:800; text-decoration:none; font-size:13px}

/* toast */
.toast{position:fixed; bottom:24px; left:50%; transform:translateX(-50%); background:var(--ink); color:#fff;
  padding:12px 20px; border-radius:14px; font-size:13.5px; font-weight:700; z-index:90; box-shadow:var(--shadow-lg);
  animation:toastIn .25s ease both}
@keyframes toastIn{from{opacity:0; transform:translate(-50%,10px)} to{opacity:1; transform:translate(-50%,0)}}
@media (min-width:640px){ .logo{font-size:30px} .card h3{font-size:17px} }
