:root { --bg:#1d1710; --card:#2b2218; --edge:#4a3a26; --text:#f3e8d6; --muted:#b39d7f; --gold:#e8b94a; --green:#5fbf6a; --red:#e06a5a; --violet:#a98be8; }
* { box-sizing: border-box; }
body { margin:0; background:radial-gradient(circle at 50% -20%, #3a2c1b, var(--bg) 60%); color:var(--text);
  font: 15px/1.6 "Segoe UI", Tahoma, "Noto Sans Arabic", sans-serif; min-height:100vh; }
header { display:flex; justify-content:space-between; align-items:center; padding:14px 22px; border-bottom:1px solid var(--edge); background:#231b12; }
.brand { font-weight:700; font-size:18px; color:var(--gold); }
main { max-width:1180px; margin:0 auto; padding:20px; }
.card { background:var(--card); border:1px solid var(--edge); border-radius:14px; padding:18px; margin-bottom:18px; box-shadow:0 6px 20px #0005; }
.narrow { max-width:380px; margin:60px auto; }
.grid { display:grid; grid-template-columns: 1fr 1.15fr; gap:18px; }
@media (max-width: 900px) { .grid { grid-template-columns:1fr; } }
h2 { margin:0 0 12px; font-size:17px; color:var(--gold); }
label { display:block; margin:12px 0 4px; font-size:13px; color:var(--muted); }
label.check { display:flex; gap:8px; align-items:center; color:var(--text); font-size:14px; }
input, select { width:100%; background:#1a140d; color:var(--text); border:1px solid var(--edge); border-radius:9px; padding:9px 11px; font:inherit; margin-bottom:6px; }
input:focus, select:focus { outline:none; border-color:var(--gold); }
input[type=checkbox] { width:auto; margin:0; accent-color: var(--gold); }
.mono { font-family: Consolas, monospace; letter-spacing:1px; direction:ltr; text-align:left; }
button { background:linear-gradient(#f0c75a, #c8962e); color:#2a1d08; border:0; border-radius:9px; padding:9px 16px; font:inherit; font-weight:700; cursor:pointer; white-space:nowrap; }
button.ghost { background:#3a2e20; color:var(--text); border:1px solid var(--edge); font-weight:500; }
button.danger { background:#5a2620; color:#ffd9d2; border:1px solid #7a3a30; font-weight:500; }
button:hover { filter:brightness(1.1); }
.row { display:flex; gap:8px; align-items:center; }
.row > input, .row > select { margin-bottom:0; }
.row.two > div { flex:1; }
.row.between { justify-content:space-between; }
.row.between select { width:auto; }
.row + .row, .row { margin-top:6px; }
.chips { display:flex; flex-wrap:wrap; gap:6px; margin:6px 0; }
.chips button { padding:4px 10px; font-size:13px; }
.muted { color:var(--muted); font-size:12px; }
.err { color:var(--red); min-height:20px; margin-top:6px; font-size:13px; }
.hidden { display:none !important; }
.reward { display:flex; gap:6px; align-items:center; background:#221a11; border:1px solid var(--edge); border-radius:10px; padding:6px 8px; margin-bottom:6px; }
.reward .tag { min-width:92px; font-size:13px; }
.reward input, .reward select { margin:0; padding:6px 8px; }
.reward input[type=number] { width:110px; }
.reward button { padding:4px 9px; }
.item { border:1px solid var(--edge); border-radius:11px; padding:10px 12px; margin-bottom:9px; background:#241c13; }
.item .top { display:flex; justify-content:space-between; align-items:center; gap:8px; }
.item .code { font-family:Consolas, monospace; font-size:16px; color:var(--gold); direction:ltr; }
.item .acts { display:flex; gap:6px; }
.item .acts button { padding:4px 10px; font-size:13px; }
.pill { display:inline-block; font-size:12px; padding:1px 9px; border-radius:20px; margin-inline-start:6px; }
.pill.live { background:#20402a; color:#9fe6a6; } .pill.soon { background:#22304a; color:#a9c6f5; }
.pill.done { background:#3f2420; color:#f0a99d; } .pill.off { background:#333; color:#bbb; } .pill.secret { background:#33264a; color:var(--violet); }
.item .rw { margin-top:5px; font-size:13px; }
.item .when { font-size:12px; color:var(--muted); }
.bar { padding:10px 14px; border-radius:11px; margin-bottom:18px; font-size:14px; border:1px solid var(--edge); background:var(--card); }
.bar.ok { border-color:#2f5a35; } .bar.bad { border-color:#7a3a30; background:#3a201b; }
.url { direction:ltr; text-align:left; font-family:Consolas, monospace; font-size:12px; word-break:break-all; background:#1a140d; padding:6px 9px; border-radius:8px; margin:6px 0; }
details { margin-top:12px; } summary { cursor:pointer; color:var(--muted); }
ol { padding-inline-start:20px; margin:6px 0; } ol li { margin:3px 0; }
a { color:var(--gold); }
#toast { position:fixed; bottom:22px; left:50%; transform:translateX(-50%); background:#2f5a35; color:#eaffea; padding:9px 18px; border-radius:10px; opacity:0; transition:.3s; pointer-events:none; }
#toast.show { opacity:1; }
