/* ============================================================
   AI Agent — detail sheet (modal)
   Premium visual concept: centered glass sheet, gradient accents,
   sticky footer, smooth entrance. Fully responsive.
   ============================================================ */

/* Overlay */
.modal{
  position:fixed; inset:0; z-index:300;
  display:none; align-items:center; justify-content:center;
  padding:26px 16px;
  background:radial-gradient(1200px 600px at 50% -10%,rgba(79,124,255,.20),transparent 60%),
             rgba(6,10,20,.72);
  -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px);
  overflow-y:auto;
}
.modal.open{display:flex; animation:sheetFade .20s ease}
@keyframes sheetFade{from{opacity:0} to{opacity:1}}

/* Sheet panel */
.sheet{
  position:relative; width:100%; max-width:790px; max-height:90vh;
  display:flex; flex-direction:column;
  background:linear-gradient(180deg,#131b3c,#0e142c);
  border:1px solid rgba(79,124,255,.35);
  border-radius:22px;
  box-shadow:0 30px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.03) inset;
  overflow:hidden;
  animation:sheetPop .24s cubic-bezier(.2,.9,.3,1);
}
@keyframes sheetPop{from{transform:translateY(18px) scale(.985); opacity:0} to{transform:none; opacity:1}}
.sheet::before{
  content:""; position:absolute; inset:0 0 auto 0; height:3px;
  background:linear-gradient(90deg,var(--brand),var(--brand-2));
}

/* Head */
.sheet-head{
  padding:22px 26px 18px;
  background:linear-gradient(180deg,rgba(79,124,255,.14),transparent);
  border-bottom:1px solid rgba(255,255,255,.06);
}
.sheet-head-top{display:flex; align-items:center; gap:12px; margin-bottom:12px}
.sheet-icon{
  display:grid; place-items:center; width:46px; height:46px; flex:0 0 auto;
  font-size:24px; border-radius:14px;
  background:linear-gradient(135deg,rgba(79,124,255,.28),rgba(34,211,238,.22));
  border:1px solid rgba(79,124,255,.35);
  box-shadow:0 6px 18px rgba(79,124,255,.25);
}
.sheet-head .tag{
  margin:0; font-size:12px; letter-spacing:.02em;
  background:rgba(34,211,238,.12); color:var(--brand-2);
  border:1px solid rgba(34,211,238,.28); padding:5px 12px; border-radius:999px;
}
.sheet-close{
  margin-left:auto; width:38px; height:38px; flex:0 0 auto; cursor:pointer;
  display:grid; place-items:center; font-size:16px;
  background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.12);
  color:var(--fg); border-radius:12px; transition:.18s;
}
.sheet-close:hover{background:rgba(239,68,68,.18); border-color:rgba(239,68,68,.45); color:#fca5a5; transform:rotate(90deg)}
.sheet-head h2{font-size:23px; line-height:1.2; letter-spacing:-.01em; margin:0}
.sheet-tagline{color:var(--brand-2); font-size:14.5px; font-weight:600; margin-top:5px}

/* Body */
.sheet-body{padding:22px 26px; overflow-y:auto; flex:1 1 auto}
.sheet-body::-webkit-scrollbar{width:9px}
.sheet-body::-webkit-scrollbar-thumb{background:rgba(120,140,200,.28); border-radius:9px}
.sheet-desc{color:#c4cdea; font-size:15px; line-height:1.75; margin-bottom:24px}

.sheet-cols{display:grid; grid-template-columns:1fr 1fr; gap:24px; margin-bottom:22px}
@media(max-width:640px){.sheet-cols{grid-template-columns:1fr; gap:18px}}
.sheet-sec{
  background:rgba(255,255,255,.025);
  border:1px solid rgba(255,255,255,.06);
  border-radius:14px; padding:16px 18px;
}
.sheet-sec h4{
  display:flex; align-items:center; gap:9px;
  font-size:13.5px; font-weight:700; letter-spacing:.01em;
  color:#e7ecff; margin-bottom:12px;
}
.sh-ico{font-size:15px}
.sheet-list{list-style:none; display:grid; gap:9px}
.sheet-list li{
  position:relative; padding-left:20px; font-size:13.8px; line-height:1.5; color:#b9c3e0;
}
.sheet-list.check li::before{
  content:"✓"; position:absolute; left:0; top:0; color:var(--ok); font-weight:800; font-size:12.5px;
}
.sheet-list.dot li::before{
  content:""; position:absolute; left:2px; top:8px; width:6px; height:6px; border-radius:50%;
  background:linear-gradient(135deg,var(--brand),var(--brand-2));
}

/* Foot */
.sheet-foot{
  display:flex; align-items:center; justify-content:space-between; gap:18px; flex-wrap:wrap;
  padding:16px 26px; border-top:1px solid rgba(255,255,255,.07);
  background:rgba(10,15,32,.75); backdrop-filter:blur(6px);
}
.sheet-price{font-size:14px; color:var(--muted)}
.sheet-price span{
  display:block; font-size:11px; text-transform:uppercase; letter-spacing:.06em;
  color:#7f8cb5; margin-bottom:3px;
}
.sheet-price b, .sheet-price{font-weight:700; color:var(--brand-2)}
.sheet-actions{display:flex; gap:10px; flex-wrap:wrap; align-items:center}
.sheet-back{
  cursor:pointer; font:inherit; font-size:14px; font-weight:600;
  padding:11px 18px; border-radius:11px; color:var(--fg);
  background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.14); transition:.18s;
}
.sheet-back:hover{background:rgba(255,255,255,.1); border-color:var(--brand)}
.sheet-actions .btn{padding:11px 18px}

@media(max-width:520px){
  .modal{padding:12px 8px; align-items:flex-end}
  .sheet{max-height:94vh; border-radius:20px 20px 14px 14px}
  .sheet-head,.sheet-body,.sheet-foot{padding-left:18px; padding-right:18px}
  .sheet-head h2{font-size:20px}
  .sheet-foot{flex-direction:column; align-items:stretch}
  .sheet-actions{width:100%}
  .sheet-actions .btn,.sheet-back{flex:1 1 auto; justify-content:center; text-align:center}
}