.cesi-zpd-wrap{
  margin:18px 0;
  text-align:center;
  display:none;
}
.cesi-zpd-open{
  -webkit-tap-highlight-color:transparent;
}
.cesi-zpd-wrap .cesi-zpd-open{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 28px;
  border-radius:50px;
  border:0;
  background:linear-gradient(135deg,#4ade80,#22c55e);
  color:#fff;
  font-weight:600;
  font-size:14px;
  cursor:pointer;
  box-shadow:0 4px 16px rgba(34,197,94,.4),0 0 0 0 rgba(34,197,94,.4);
  transition:all .2s cubic-bezier(.4,0,.2,1);
}
.cesi-zpd-wrap .cesi-zpd-open:hover{
  transform:translateY(-2px);
  box-shadow:0 8px 24px rgba(34,197,94,.45),0 0 0 4px rgba(34,197,94,.15);
}
.cesi-zpd-wrap .cesi-zpd-open:active{
  transform:translateY(0);
}
.cesi-zpd-mask{
  position:fixed;
  inset:0;
  background:rgba(15,23,42,.6);
  backdrop-filter:blur(8px) saturate(120%);
  z-index:99999;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
  animation:cesi-zpd-fade-in .25s ease-out;
}
.cesi-zpd-mask .cesi-zpd-modal{
  transform:translateY(20px) scale(.95);
  opacity:0;
  animation:cesi-zpd-pop .3s cubic-bezier(.34,1.56,.64,1) .05s forwards;
}
.cesi-zpd-mask,.cesi-zpd-modal{
  will-change:transform,opacity;
}
.cesi-zpd-mask *{
  box-sizing:border-box;
}
.post-actions .cesi-zpd-action count{
  display:none;
}
.fixed-wrap-nav.single-fixed-btns .cesi-zpd-open{
  color:var(--muted-2-color);
}
.fixed-wrap-nav.single-fixed-btns .cesi-zpd-open:hover{
  color:var(--focus-color);
}
.post-actions .cesi-zpd-action{
  background:transparent !important;
}
.cesi-zpd-modal{
  width:min(420px,100%);
  background:#fff;
  border-radius:24px;
  overflow:hidden;
  box-shadow:0 0 0 1px rgba(0,0,0,.04),0 12px 40px rgba(0,0,0,.08),0 32px 80px rgba(0,0,0,.12);
}
.cesi-zpd-head{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:12px;
  padding:20px 20px 18px;
  background:linear-gradient(135deg,#4ade80 0%,#22c55e 50%,#16a34a 100%);
  position:relative;
  overflow:hidden;
}
.cesi-zpd-head:before{
  content:"\f06b";
  font-family:FontAwesome;
  position:absolute;
  right:25px;
  top:8px;
  font-size:38px;
  opacity:.12;
  color:#fef3c7;
  animation:cesi-zpd-icon-1 5s ease-in-out infinite;
  transform:rotate(-12deg);
}
.cesi-zpd-head:after{
  content:"\f004";
  font-family:FontAwesome;
  position:absolute;
  left:30px;
  bottom:6px;
  font-size:32px;
  opacity:.1;
  color:#fecaca;
  animation:cesi-zpd-icon-2 6s ease-in-out infinite;
  transform:rotate(8deg);
}
@keyframes cesi-zpd-icon-1{
  0%,100%{opacity:.12;color:#fef3c7;transform:rotate(-12deg) scale(1);}
  33%{opacity:.15;color:#fcd34d;transform:rotate(-8deg) scale(1.05);}
  66%{opacity:.08;color:#fbbf24;transform:rotate(-15deg) scale(.95);}
}
@keyframes cesi-zpd-icon-2{
  0%,100%{opacity:.1;color:#fecaca;transform:rotate(8deg) scale(1);}
  33%{opacity:.13;color:#f87171;transform:rotate(12deg) scale(1.08);}
  66%{opacity:.07;color:#fb923c;transform:rotate(5deg) scale(.92);}
}
.cesi-zpd-title{
  font-size:18px;
  font-weight:700;
  color:#fff;
  text-shadow:0 1px 2px rgba(0,0,0,.1);
  position:relative;
  z-index:1;
}
.cesi-zpd-sub{
  margin-left:auto;
  color:rgba(255,255,255,.9);
  font-size:12px;
  font-weight:500;
  position:relative;
  z-index:1;
  background:rgba(255,255,255,.15);
  padding:4px 10px;
  border-radius:20px;
}
.cesi-zpd-close{
  border:0;
  background:rgba(255,255,255,.2);
  width:32px;
  height:32px;
  border-radius:50%;
  font-size:18px;
  line-height:1;
  cursor:pointer;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:all .15s;
  position:relative;
  z-index:1;
}
.cesi-zpd-close:hover{
  background:rgba(255,255,255,.35);
  transform:rotate(90deg);
}
.cesi-zpd-body{
  padding:20px;
}
.cesi-zpd-tabs{
  display:flex;
  gap:0;
  border:none;
  border-radius:14px;
  overflow:hidden;
  margin-bottom:16px;
  background:#f1f5f9;
  padding:4px;
}
.cesi-zpd-tab{
  flex:1;
  border:0;
  background:transparent;
  padding:10px 14px;
  cursor:pointer;
  font-weight:600;
  color:#64748b;
  font-size:13px;
  border-radius:10px;
  transition:all .2s;
}
.cesi-zpd-tab:hover{
  color:#334155;
}
.cesi-zpd-tab.is-active{
  background:#fff;
  color:#16a34a;
  box-shadow:0 2px 8px rgba(0,0,0,.08);
}
.cesi-zpd-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  max-height:240px;
  overflow:auto;
  padding:2px;
  margin:0 -2px;
}
@media (max-width:640px){
  .cesi-zpd-grid{grid-template-columns:repeat(3,minmax(0,1fr));}
}
.cesi-zpd-gift{
  border:2px solid transparent;
  border-radius:16px;
  padding:12px 8px 10px;
  cursor:pointer;
  user-select:none;
  position:relative;
  background:linear-gradient(180deg,#fff,#fafbfc);
  transition:all .2s cubic-bezier(.4,0,.2,1);
  box-shadow:0 1px 3px rgba(0,0,0,.04),inset 0 1px 0 rgba(255,255,255,.8);
}
.cesi-zpd-gift:hover{
  transform:translateY(-3px);
  border-color:#86efac;
  box-shadow:0 8px 20px rgba(34,197,94,.15),0 2px 6px rgba(0,0,0,.04);
}
.cesi-zpd-gift.is-active{
  border-color:#22c55e;
  background:linear-gradient(180deg,#f0fdf4,#dcfce7);
  box-shadow:0 0 0 3px rgba(34,197,94,.12),0 8px 20px rgba(34,197,94,.2);
}
.cesi-zpd-gift.is-active .cesi-zpd-gift-name{
  color:#16a34a;
}
.cesi-zpd-gift img{
  width:48px;
  height:48px;
  object-fit:cover;
  border-radius:12px;
  display:block;
  margin:0 auto 8px;
  background:linear-gradient(145deg,#f8fafc,#e2e8f0);
  box-shadow:0 2px 4px rgba(0,0,0,.06);
}
.cesi-zpd-gift-name{
  font-size:11px;
  text-align:center;
  color:#475569;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  font-weight:600;
}
.cesi-zpd-gift-points{
  position:absolute;
  top:6px;
  right:6px;
  font-size:9px;
  background:linear-gradient(135deg,#4ade80,#22c55e);
  color:#fff;
  padding:3px 7px;
  border-radius:20px;
  font-weight:700;
  box-shadow:0 2px 4px rgba(34,197,94,.3);
}
.cesi-zpd-field{
  margin-top:14px;
}
.cesi-zpd-field textarea{
  width:100%;
  min-height:60px;
  border:2px solid #e2e8f0;
  border-radius:14px;
  padding:12px 14px;
  resize:vertical;
  font-size:13px;
  line-height:1.5;
  transition:all .2s;
  background:#fafbfc;
}
.cesi-zpd-field textarea:focus{
  outline:none;
  border-color:#22c55e;
  background:#fff;
  box-shadow:0 0 0 4px rgba(34,197,94,.1);
}
.cesi-zpd-field textarea::placeholder{
  color:#94a3b8;
}
.cesi-zpd-actions{
  margin-top:14px;
  display:flex;
  gap:10px;
}
.cesi-zpd-wallet{
  margin-top:14px;
  border:none;
  border-radius:14px;
  padding:12px 16px;
  background:linear-gradient(135deg,#f0fdf4,#dcfce7);
  position:relative;
  overflow:hidden;
}
.cesi-zpd-wallet:before{
  content:"\f0d6";
  font-family:FontAwesome;
  position:absolute;
  right:14px;
  top:50%;
  transform:translateY(-50%);
  font-size:28px;
  opacity:.06;
  color:#16a34a;
}
.cesi-zpd-wallet-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  color:#475569;
  padding:4px 0;
  font-size:13px;
  position:relative;
  z-index:1;
}
.cesi-zpd-wallet-row + .cesi-zpd-wallet-row{
  border-top:1px dashed rgba(34,197,94,.2);
  margin-top:4px;
  padding-top:8px;
}
.cesi-zpd-wallet-val{
  font-weight:700;
  color:#16a34a;
  font-size:15px;
}
.cesi-zpd-submit{
  flex:1;
  border:0;
  background:linear-gradient(135deg,#4ade80,#22c55e);
  color:#fff;
  font-weight:700;
  border-radius:14px;
  padding:14px 18px;
  cursor:pointer;
  font-size:15px;
  box-shadow:0 4px 16px rgba(34,197,94,.4);
  transition:all .2s cubic-bezier(.4,0,.2,1);
  position:relative;
  overflow:hidden;
}
.cesi-zpd-submit:before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(255,255,255,.2) 0%,transparent 50%);
}
.cesi-zpd-submit:hover{
  transform:translateY(-2px);
  box-shadow:0 8px 24px rgba(34,197,94,.45);
}
.cesi-zpd-submit:active{
  transform:translateY(0);
  box-shadow:0 2px 8px rgba(34,197,94,.3);
}
.cesi-zpd-submit:disabled{
  opacity:.4;
  cursor:not-allowed;
  transform:none;
  box-shadow:none;
}
.cesi-zpd-tip{
  margin-top:12px;
  color:#64748b;
  font-size:11px;
  display:flex;
  align-items:flex-start;
  gap:6px;
  line-height:1.5;
}
.cesi-zpd-tip:before{
  content:"\f05a";
  font-family:FontAwesome;
  color:#94a3b8;
  font-size:12px;
  flex-shrink:0;
}
.cesi-zpd-toast-wrap{
  position:fixed;
  right:20px;
  bottom:20px;
  z-index:100000;
  display:flex;
  flex-direction:column;
  gap:10px;
  pointer-events:none;
}
.cesi-zpd-toast{
  min-width:180px;
  max-width:260px;
  background:linear-gradient(145deg,#1e293b,#0f172a);
  color:#fff;
  border-radius:16px;
  padding:14px 16px;
  box-shadow:0 8px 32px rgba(0,0,0,.3),0 0 0 1px rgba(255,255,255,.05);
  pointer-events:auto;
  transform:translateY(10px);
  opacity:0;
  animation:cesi-zpd-toast-in .25s ease-out forwards;
}
.cesi-zpd-toast-title{
  font-weight:700;
  font-size:13px;
  margin-bottom:4px;
  color:#fff;
}
.cesi-zpd-toast-text{
  font-size:12px;
  opacity:.8;
  line-height:1.45;
}
@keyframes cesi-zpd-fade-in{
  from{opacity:0;}
  to{opacity:1;}
}
@keyframes cesi-zpd-pop{
  to{transform:translateY(0) scale(1);opacity:1;}
}
@keyframes cesi-zpd-toast-in{
  to{transform:translateY(0);opacity:1;}
}
