:root{
  --bg:#f5f7fb;
  --surface:rgba(255,255,255,.86);
  --surface-strong:#ffffff;
  --text:#101828;
  --muted:#667085;
  --line:#e7eaf0;
  --primary:#111827;
  --primary-soft:#eef2ff;
  --success:#16a34a;
  --warning:#d97706;
  --danger:#dc2626;
  --shadow:0 24px 70px rgba(15,23,42,.08);
  --shadow-soft:0 8px 24px rgba(15,23,42,.06);
  --radius-xl:28px;
  --radius-lg:20px;
  --radius-md:16px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at 15% 0%, rgba(99,102,241,.10), transparent 28%),
    radial-gradient(circle at 100% 10%, rgba(14,165,233,.08), transparent 22%),
    var(--bg);
  min-height:100vh;
}
button,input,textarea,select{font:inherit}
button{border:0}
a{text-decoration:none;color:inherit}
.app{
  width:min(100%,760px);
  margin:0 auto;
  padding:18px 16px 34px;
}
.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:16px;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
}
.logo{
  width:46px;height:46px;border-radius:16px;
  background:linear-gradient(135deg,#111827,#334155);
  color:white;
  display:grid;place-items:center;
  font-weight:800;
  letter-spacing:-.04em;
  box-shadow:var(--shadow-soft);
}
.brand-copy strong{display:block;font-size:15px}
.brand-copy span{font-size:12px;color:var(--muted)}
.demo-badge{
  font-size:11px;
  letter-spacing:.12em;
  font-weight:800;
  color:#475467;
  background:white;
  border:1px solid var(--line);
  padding:8px 11px;
  border-radius:999px;
  box-shadow:var(--shadow-soft);
}
.hero{
  position:relative;
  overflow:hidden;
  background:linear-gradient(145deg,rgba(255,255,255,.98),rgba(250,251,255,.93));
  border:1px solid rgba(255,255,255,.95);
  border-radius:var(--radius-xl);
  box-shadow:var(--shadow);
  padding:26px;
}
.hero:after{
  content:"";
  position:absolute;
  width:210px;height:210px;border-radius:50%;
  right:-90px;top:-90px;
  background:linear-gradient(135deg,rgba(79,70,229,.12),rgba(14,165,233,.08));
  filter:blur(4px);
}
.kicker{
  position:relative;
  z-index:2;
  font-size:11px;
  font-weight:800;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:#7c3aed;
}
h1{
  position:relative;
  z-index:2;
  margin:8px 0 7px;
  font-size:clamp(32px,8vw,48px);
  line-height:1;
  letter-spacing:-.045em;
}
.subtitle{
  position:relative;
  z-index:2;
  margin:0;
  color:var(--muted);
  font-size:14px;
}
.status-line{
  position:relative;
  z-index:2;
  display:flex;
  align-items:center;
  gap:9px;
  flex-wrap:wrap;
  margin-top:20px;
}
.status-dot{
  width:9px;height:9px;border-radius:50%;
  background:var(--success);
  box-shadow:0 0 0 6px rgba(22,163,74,.09);
}
.status-text{font-size:14px;font-weight:750}
.chip{
  display:inline-flex;
  align-items:center;
  gap:6px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.8);
  color:#475467;
  padding:8px 10px;
  border-radius:999px;
  font-size:12px;
}
.metrics{
  position:relative;
  z-index:2;
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:10px;
  margin-top:20px;
}
.metric{
  background:rgba(248,250,252,.9);
  border:1px solid #edf0f5;
  border-radius:18px;
  padding:14px;
}
.metric span{
  display:block;
  color:var(--muted);
  font-size:11px;
  margin-bottom:5px;
}
.metric strong{font-size:14px}
.section{margin-top:16px}
.card{
  background:var(--surface);
  backdrop-filter:blur(18px);
  border:1px solid rgba(255,255,255,.88);
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-soft);
  padding:19px;
}
.card + .card{margin-top:14px}
.card-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:15px;
}
.card-head h2{
  margin:0;
  font-size:17px;
  letter-spacing:-.02em;
}
.mini-status{
  display:flex;align-items:center;gap:7px;
  color:var(--muted);font-size:11px
}
.pulse{
  width:7px;height:7px;border-radius:50%;background:var(--success);
  animation:pulse 1.8s infinite
}
@keyframes pulse{
  0%,100%{box-shadow:0 0 0 0 rgba(22,163,74,.26)}
  50%{box-shadow:0 0 0 7px rgba(22,163,74,0)}
}
.actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
.action{
  min-height:88px;
  border-radius:18px;
  padding:15px;
  background:#fff;
  border:1px solid var(--line);
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  cursor:pointer;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.action:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 24px rgba(15,23,42,.07);
  border-color:#d9dee8;
}
.action:active{transform:scale(.985)}
.action.primary{
  color:white;
  background:linear-gradient(145deg,#111827,#1f2937);
  border-color:#111827;
}
.action.danger{
  color:white;
  background:linear-gradient(145deg,#b91c1c,#dc2626);
  border-color:#b91c1c;
}
.action.success{
  color:white;
  background:linear-gradient(145deg,#15803d,#16a34a);
  border-color:#15803d;
}
.action.full{grid-column:1/-1;min-height:64px;flex-direction:row;align-items:center}
.action-top{display:flex;align-items:center;justify-content:space-between;width:100%}
.icon{
  width:36px;height:36px;border-radius:12px;
  display:grid;place-items:center;
  background:#f4f6f8;
  color:#111827;
  font-size:17px;
}
.primary .icon,.danger .icon,.success .icon{
  background:rgba(255,255,255,.13);
  color:white;
}
.action-title{font-weight:750;font-size:14px}
.action-desc{font-size:11px;color:var(--muted);line-height:1.4}
.primary .action-desc,.danger .action-desc,.success .action-desc{color:rgba(255,255,255,.72)}
.timeline{display:grid;gap:13px}
.event{
  display:flex;gap:12px;align-items:flex-start;
  padding:12px 0;
  border-bottom:1px solid #eff1f5;
}
.event:last-child{border-bottom:0;padding-bottom:0}
.event:first-child{padding-top:0}
.event-icon{
  width:34px;height:34px;flex:0 0 34px;
  border-radius:12px;
  background:#f4f6f8;
  display:grid;place-items:center;
  color:#475467;
}
.event strong{display:block;font-size:13px;margin-bottom:3px}
.event p{margin:0;color:var(--muted);font-size:12px;line-height:1.45}
.footer{
  text-align:center;
  color:#98a2b3;
  font-size:11px;
  padding:22px 0 8px;
}
.toast{
  position:fixed;
  left:50%;
  bottom:20px;
  transform:translate(-50%,24px);
  opacity:0;
  width:min(calc(100% - 32px),520px);
  padding:13px 15px;
  border-radius:16px;
  background:#111827;
  color:white;
  font-size:13px;
  box-shadow:0 16px 42px rgba(15,23,42,.25);
  transition:.25s ease;
  pointer-events:none;
  z-index:99;
}
.toast.show{opacity:1;transform:translate(-50%,0)}
.modal{
  display:none;
  position:fixed;
  inset:0;
  z-index:50;
  background:rgba(15,23,42,.42);
  backdrop-filter:blur(6px);
  align-items:flex-end;
  justify-content:center;
  padding:14px;
}
.modal.open{display:flex}
.sheet{
  width:min(100%,720px);
  background:#fff;
  border-radius:26px;
  padding:20px;
  box-shadow:0 28px 90px rgba(15,23,42,.25);
  animation:sheetUp .24s ease;
}
@keyframes sheetUp{
  from{transform:translateY(30px);opacity:0}
  to{transform:none;opacity:1}
}
.sheet-title{display:flex;align-items:center;justify-content:space-between;gap:12px}
.sheet-title h3{margin:0;font-size:19px}
.close{
  width:38px;height:38px;border-radius:12px;
  background:#f4f6f8;color:#475467;cursor:pointer
}
.field{margin-top:15px}
.field label{
  display:block;
  margin-bottom:7px;
  color:#475467;
  font-size:12px;
  font-weight:650;
}
select,textarea{
  width:100%;
  border:1px solid #dfe3ea;
  background:#fbfcfd;
  color:#101828;
  border-radius:14px;
  padding:13px 14px;
  outline:none;
}
textarea{min-height:96px;resize:vertical}
.submit{
  width:100%;
  margin-top:15px;
  min-height:52px;
  border-radius:15px;
  background:#111827;
  color:white;
  cursor:pointer;
  font-weight:750;
}
.ticket{
  display:none;
  margin-top:14px;
  padding:13px;
  border-radius:15px;
  background:#f0fdf4;
  border:1px solid #dcfce7;
  color:#166534;
  font-size:13px;
}
.ticket.show{display:block;animation:fade .2s ease}
@keyframes fade{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@media (max-width:560px){
  .app{padding:14px 12px 28px}
  .hero{padding:21px}
  .actions{grid-template-columns:1fr}
  .action.full{grid-column:auto}
  .metrics{grid-template-columns:1fr 1fr}
  .brand-copy strong{font-size:14px}
}
