:root{font-family:Inter,system-ui,Arial;background:#f7f8fb;color:#172033}
body{margin:0;display:flex;min-height:100vh;background:#f7f8fb;color:#172033}
aside{width:260px;background:#ffffff;border-right:1px solid #e5e7eb;padding:22px;position:fixed;inset:0 auto 0 0;overflow:auto;box-shadow:8px 0 28px rgba(15,23,42,.04)}
main{margin-left:305px;padding:32px;max-width:1100px;width:100%}
.brand{font-weight:900;font-size:28px;color:#f97316;margin-bottom:22px}
button{background:#f97316;color:#ffffff;border:0;border-radius:10px;padding:11px 14px;font-weight:800;cursor:pointer;margin:5px;box-shadow:0 8px 18px rgba(249,115,22,.18)}
button:hover{background:#ea580c}
aside button{display:block;width:100%;text-align:left;background:#f8fafc;color:#334155;border:1px solid #e2e8f0;box-shadow:none}
aside button:hover{border-color:#f97316;background:#fff7ed;color:#9a3412}
a{color:#ea580c;text-decoration:none;font-weight:700}
a:hover{text-decoration:underline}
.btnlink{display:inline-block;background:#ffffff;border:1px solid #fed7aa;border-radius:10px;padding:10px 12px;margin:4px;color:#ea580c;box-shadow:0 6px 16px rgba(15,23,42,.05)}
.card{background:#ffffff;border:1px solid #e5e7eb;border-radius:18px;padding:24px;margin:16px 0;box-shadow:0 16px 45px rgba(15,23,42,.08)}
input,select,textarea{background:#ffffff;color:#172033;border:1px solid #cbd5e1;border-radius:10px;padding:12px;margin:6px;width:min(520px,90%)}
input:focus,select:focus,textarea:focus{outline:2px solid #fed7aa;border-color:#f97316}
input[type=checkbox]{width:auto}
textarea{min-height:90px}
.hidden{display:none!important}
.topbar{display:flex;justify-content:space-between;align-items:center}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px}
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin:12px 0}
.stat{background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:14px}
.stat span{display:block;color:#64748b;font-size:13px}
.stat strong{display:block;font-size:28px;margin-top:6px;color:#0f172a}
.pill{display:inline-block;background:#fff7ed;color:#c2410c;padding:4px 8px;border-radius:99px;margin:2px;border:1px solid #fed7aa}
.muted{color:#64748b}
.item{border:1px solid #e2e8f0;border-radius:14px;padding:14px;background:#ffffff;margin:8px 0;box-shadow:0 8px 22px rgba(15,23,42,.05)}
.item h3{margin-top:0;color:#0f172a}
.mini{background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:10px;margin:8px 0;line-height:1.8;color:#334155}
.resultbox{background:#ffffff;border:1px solid #e2e8f0;border-radius:14px;padding:14px;margin-top:12px;box-shadow:0 8px 22px rgba(15,23,42,.05)}
.codebox{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;background:#f8fafc;border:1px solid #cbd5e1;border-radius:12px;padding:12px;overflow:auto;color:#334155}
pre{white-space:pre-wrap;background:#f8fafc;border:1px solid #cbd5e1;border-radius:12px;padding:12px;overflow:auto;color:#334155}
.danger{color:#dc2626}.ok{color:#16a34a}
.tablewrap{overflow:auto;border:1px solid #e2e8f0;border-radius:14px;background:#ffffff;box-shadow:0 8px 22px rgba(15,23,42,.05)}
table{width:100%;border-collapse:collapse;min-width:780px;background:#ffffff}
th,td{padding:12px;border-bottom:1px solid #e5e7eb;text-align:left;vertical-align:top}
th{color:#9a3412;background:#fff7ed;position:sticky;top:0}
.linkbtn{background:none;color:#ea580c;padding:0;margin:0;text-align:left;font-weight:800;box-shadow:none}
.linkbtn:hover{background:none;color:#c2410c;text-decoration:underline}
img{max-width:100%}

.hero{display:flex;justify-content:space-between;gap:18px;align-items:center;background:linear-gradient(135deg,#ffffff,#fff7ed)}
.hero h2{font-size:30px;margin:4px 0;color:#0f172a}
.section-title{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}
.section-title h2{margin:0;color:#0f172a}
.offer-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:18px}
.offer-card{background:#ffffff;border:1px solid #e5e7eb;border-radius:20px;overflow:hidden;box-shadow:0 18px 45px rgba(15,23,42,.09);display:flex;flex-direction:column;min-height:100%}
.offer-media{background:#f8fafc;min-height:240px;display:flex;align-items:center;justify-content:center;border-bottom:1px solid #e5e7eb;padding:10px}
.offer-img{width:100%;height:260px;object-fit:contain;display:block;background:#f8fafc;border-radius:14px}
.offer-img.placeholder{height:240px;display:flex;flex-direction:column;gap:12px;align-items:center;justify-content:center;color:#64748b;font-weight:800}
.offer-body{padding:16px;display:flex;flex-direction:column;gap:8px;flex:1}
.offer-body h3{font-size:18px;line-height:1.25;margin:0;color:#0f172a}
.offer-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:auto;padding-top:8px}
.offer-actions .btnlink,.offer-actions button{font-size:13px;padding:8px 10px;margin:2px}
.empty-state{grid-column:1/-1;text-align:center;background:#f8fafc;border:1px dashed #cbd5e1;border-radius:18px;padding:34px;color:#334155}
@media(max-width:760px){aside{position:relative;width:auto;inset:auto}body{display:block}main{margin-left:0;padding:18px}.hero{display:block}.offer-grid{grid-template-columns:1fr}}
